* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body{
    
}
/*Pre-loader*/

.logo img {
    height: 50px; /* Adjust size as needed */
    width: 80%;
    border-radius: 60%;
}
.logo {
    display: flex;
    align-items: center; /* Align logo and text */
    gap: 10px; /* Space between logo and text */
    
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    font-family: Arial, sans-serif;
    white-space: nowrap; /* Prevents text wrapping */
}

/* Adjust font size for mobile */
@media (max-width: 768px) {
    .company-name {
        font-size: 14px !important; /* Slightly smaller for mobile */
    }
}/* Navbar */
nav {
    position: fixed;
    top: 0; /* Change from -100px to 0 */
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: top 0.5s ease-in-out;
    z-index: 1000;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    
}

.nav-links li a {
    text-decoration: none;
    color: black;  /* Changed to blue */
    font-size: 18px;
    font-family: Belanosima;
    transition: color 0.3s ease;
}
.nav-links li a:hover {
    color: yellowgreen;
}
/* Responsive Navbar */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
}
.mobile-text {
    display: none;
}


/* Mobile View */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    

    .nav-links {
        position: fixed;
        top: 0;
        left: -250px; /* Hidden initially */
        width: 160px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease-in-out;
    }

    .nav-links li {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #ddd; /* Adds a line */
    }
    .nav-links li:last-child {
        border-bottom: none; /* Removes line from the last link */
    }

    .nav-links li a {
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .nav-links.active {
       left: 0;
    }
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }
}
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Reduced height */
    overflow: hidden;
    margin-top: 50px;
}

.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.image-container img {
    position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 1.5s ease-in-out;
}

.image-container img.active {
    opacity: 1;
    
}

/* Overlay for better text visibility */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Text Content */
.content {
    position: absolute;
    top: 55%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 700px;
}

.what-we-do {
    font-size: 22px;
    font-weight: bold;
}

.underline {
    width: 120px;
    height: 3px;
    background-color: white;
    margin: 10px 0;
}

.quote {
font-size: 36px;
font-weight: bold;
max-width: 600px;
margin: 20px 0;
opacity: 1;
transition: opacity 1s ease-in-out; /* Smooth fade effect */
}


.contact-btn {
    padding: 12px 25px;
font-size: 18px;
font-weight: bold;
border: none;
background: linear-gradient(145deg, #007bff, #0056b3);
color: white;
cursor: pointer;
transition: all 0.3s ease-in-out;
border-radius: 8px;
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.2);
transform: translateY(2px);
}

.contact-btn:hover {
    background: linear-gradient(145deg, #0056b3, #00408a);
transform: translateY(0);
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4), -2px -2px 6px rgba(255, 255, 255, 0.3);
}
.contact-btn:active {
transform: translateY(4px);
box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Slideshow Controls */
.controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.controls button {
    padding: 10px;
    font-size: 16px;
    margin: 5px;
    cursor: pointer;
    border: none;
    background-color: white;
    color: black;
    transition: 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.controls button:hover {
    background-color: gray;
    color: white;
}
/*trust Section*/
.trust-section {
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    flex-wrap: wrap;
}

.trust-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-text {
    flex: 1;
    max-width: 50%;
    font-size: 18px;
    line-height: 1.6;
    z-index: 2;
    position: relative;
}

.trust-heading {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 0px; /* Reduce this value */
    color: #333;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.trust-heading.show {
    opacity: 1;
    transform: translateY(0);
}

.trust-para {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    margin-top: 0px; /* Reduce the gap between paragraphs */
}

.trust-para.show {
    opacity: 1;
    transform: translateY(0);
}

.trust-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.trust-section.visible .trust-image {
    opacity: 1;
    transform: translateY(0);
}

.trust-image img {
    width: 90%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ✅ Mobile View - Text First, Image Below */
@media (max-width: 768px) {
    .trust-section {
        flex-direction: column; /* Stack items */
        text-align: center;
        gap: 20px;
    }

    .trust-text {
        max-width: 100%; /* Full width */
    }

    .trust-image {
        max-width: 100%; /* Full width */
    }

    .trust-image img {
        width: 100%;
        height: auto;
    }
}
/* Services Section */
.services-section {
    background: black;
    color: white;
    padding: 60px 10%;
    text-align: center;
    width: 100%;
}

.services-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    background: #1c1c1c;
    color: white;
    width: 30%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.service-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
}

.service-card p {
    font-size: 16px;
}

/* Initially hide extra services */
.hidden-services {
    display: none;
}

.view-all-btn {
    margin-top: 40px;
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 50px; /* Makes it round */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.view-all-btn:hover {
    background: white;
    color: black;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 100%;
    }
}
/*Footer*/
.footer {
    background: #222;
    color: white;
    padding: 20px 6%;
    text-align: center;
}

/* Top Section - Company Name & Social Icons */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Metagran Technology */
.company-name {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}

.company-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: inline-block;
    text-align: left;
    transition: color 0.3s;
}

/* Default: Show full name, hide short name */
.full-name {
    display: block;
}
.short-name {
    display: none;
}

.company-link p {
    margin: 0;
    line-height: 1.6;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4CAF50;
}

/* Copyright */
.copyright {
    margin-top: 10px;
    font-size: 14px;
}

/* Page Links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

/* ✅ Responsive Fix */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .company-name {
        margin-bottom: 10px;
    }

    .social-links {
        margin-top: 10px;
    }

    /* Mobile View: Show "MT", Hide "Metagran" */
    .full-name {
        display: none;
    }
    .short-name {
        display: block;
    }

    /* ✅ Ensure Page Links Stay in One Line Properly */
    .footer-links {
        justify-content: center;
        flex-wrap: wrap; /* Allows wrapping but keeps alignment */
        gap: 10px;
    }
}


