/* Reset styles */
* {
    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 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero-content {
    background-image: url('https://i.postimg.cc/8zQrPmJG/background-4518359-1280.jpg'); /* Replace with your image file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 100px 20px; /* Adjust padding as needed */
    text-align: center;
    color: white; /* Adjust text color if needed */
    border-radius: 7px; /* Optional: for rounded corners */
}
.hero-content h1 {
    font-size: 40px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content p {
    font-size: 18px;
    margin: 15px 0;
    animation: fadeIn 2s ease-in-out;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: yellowgreen;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease-in-out;
}

.cta-button:hover {
    background: #8cc63f;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* What We Do */
.what-we-do {
    padding: 0px 6%;
    position: relative;
}

/* What We Do Title */
.section-title {
    color: black;
    text-align: left; /* Keeps it in the right corner on larger screens */
    margin-bottom: 40px; /* Adds gap between heading & cards */
    font-size: 25px;
    font-weight: bold;
}

/* Service Container */
.service-container {
    display: flex;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
}

/* Service Card */
.service-card {
    width: 300px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}
.service-card h3 {
    margin-top: 25px; /* Adjusts space above the heading */
    font-size: 20px; /* Adjust heading size */
    font-weight: bold; /* Makes it stand out */
    margin-right: 40px;
}
.service-card p {
    margin-top: 30px; /* Adjusts space above the heading */
    font-size: 15px; /* Adjust heading size */
    font-style: ; /* Makes it stand out */
    text-align: center; /* Centers text */
    line-height: 1.9; /* Improves text readability */
}
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Service Card Image */
.service-card img {
    width: 100%;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        text-align: center; /* Centers heading on mobile */
        font-size: 24px;
    }

    .service-container {
        flex-direction: column; /* Stacks services vertically */
        align-items: center;
    }

    .service-card {
        width: 90%; /* Makes cards take most of the screen */
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Why choose us */
.why-choose-us {
    text-align: center;
    padding: 50px 6%;
    background: #f5f5f5;
    margin-top: 80px;
}

.section-title {
    color: black;
    margin-bottom: 30px;
    margin-top: 25px; /* Adjusts space above the heading */
    font-size: 20px; /* Adjust heading size */
    font-weight: bold; /* Makes it stand out */
    margin-right: 20%;
}

.choose-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    row-gap: 40px; /* Ensures spacing between rows in mobile view */
}

/* Card Container */
.choose-card {
    width: 280px;
    height: 200px;
    perspective: 1000px; /* Adds depth for 3D effect */
    margin-bottom: 20px; /* Adds space between cards */
}

/* Inner Card - Used for Flip Effect */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip Effect on Hover */
.choose-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Styling */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%; /* Fixed height issue */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    backface-visibility: hidden; /* Hides back when front is visible */
}

/* Front Side */
.card-front {
    font-size: 18px;
    font-weight: 600;
    color: black;
}

/* Back Side */
.card-back {
    font-size: 16px;
    color: #333;
    padding: 5px;
    transform: rotateY(180deg); /* Flip the back initially */
    line-height: 1.9;
}

/* Responsive Fix for Mobile */
@media screen and (max-width: 768px) {
    .section-title {
        text-align: center; /* Ensures it's centered */
        margin-right: 0; /* Removes extra margin */
        font-size: 18px; /* Adjusts size for better readability */
        margin-bottom: 20px; /* Adds spacing below */
    }
    .choose-container {
        gap: 30px;
        row-gap: 30px; /* More spacing between stacked cards */
    }

    .choose-card {
        width: 90%; /* Make cards take more space */
        height: 220px; /* Adjust height */
        margin-bottom: 30px; /* Add more spacing */
    }
}
/*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;
    }
}

