/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add scroll-padding-top to prevent content from being hidden by sticky header */
html {
    scroll-padding-top: 150px; /* Adjust this value based on your header's actual height */
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #003366;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex; /* Keep desktop header elements aligned */
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 144px; /* 120 * 1.6 */
    max-width: 360px; /* 300 * 1.6 */
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 25px;
    margin-top: 0; /* Adjusted for flex container */
    align-items: center; /* Vertically align nav items */
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Language Switcher */
.language-switcher {
    position: absolute; /* Positioned relative to the header */
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.lang-link {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.lang-link:hover .flag-wrapper,
.lang-link.active .flag-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
}

.flag-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Base width for desktop */
    height: 20px; /* Fixed height */
    overflow: hidden;
    background-color: transparent;
    border-radius: 2px;
    box-sizing: border-box;
}

.flag-wrapper img {
    width: 100%;
    height: auto;
    max-height: 20px; /* Ensure image fits */
    object-fit: contain;
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #003366, #ff6600);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.7rem;
    line-height: 1.7;
    max-width: 800px;
    margin: auto;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #003366;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #e0e0e0;
}

/* Get in Touch button 50% larger */
.btn[href="#contact"] {
    font-size: 24px;
    padding: 12px 30px;
}

/* Sections */
.section {
    padding: 60px 20px;
    background: #fff;
}

/* Reduced margin between About Us and Our Services */
#services { /* Assuming 'Our Services' section has id="services" */
    padding-top: 30px; /* Half of default 60px */
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #003366;
    font-size: 2.2rem;
    font-weight: bold;
}

/* About Us */
.about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.highlight-text {
    font-size: 1.7rem;
    line-height: 1.6;
    font-weight: 600;
    color: #003366;
    margin-bottom: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
    justify-items: center;
    grid-auto-flow: dense;
}

.service-card {
    background: #003366;
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: left;
}

.service-card:hover {
    background: #002244;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Services List (for other lists if needed) */
.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.services-list li {
    background: #003366;
    color: white;
    padding: 6px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
    font-size: 1.7rem; /* Large font size for list items */
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: pre-line;
}

.services-list li .emoji {
    font-size: 2.2em;
    vertical-align: middle;
    margin-right: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:nth-child(1):hover,
.gallery img:nth-child(2):hover,
.gallery img:nth-child(3):hover {
    transform: scale(3); /* Dramatic zoom for first three */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.gallery img:hover {
    transform: scale(1.05); /* Standard hover for others */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Project List */
.project-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.project-list li {
    display: flex;
    align-items: flex-start;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 8px;
}

.project-list li .emoji {
    font-size: 1.3em;
    margin-right: 10px;
}

/* Contact Section */
.section#contact p {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #003366;
    max-width: 700px;
    margin: auto;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #003366;
    outline: none;
}

/* Send Message button larger text */
.btn[type="submit"] {
    font-size: 18px;
    padding: 12px 20px;
}

/* Footer */
.footer {
    background: #003366;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer a {
    color: #ff6600;
    text-decoration: none;
}

/* Burger Menu for Mobile */
.burger {
    display: none; /* Hidden by default on desktop */
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for perfect centering */
    z-index: 1001;
}

/* --- Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .header .container {
        flex-direction: column;
        align-items: flex-start;
        position: relative; /* Needed for absolute positioning of children */
    }

    /* Burger menu visibility on mobile */
    .burger {
        display: block; /* Show burger on mobile */
        right: 12px; /* Adjust positioning on small screens */
        top: 20px; /* Align to header top */
        transform: translateY(0); /* Remove vertical centering as top is fixed */
    }

    /* Hide desktop navigation and style mobile navigation */
    .nav {
        display: none; /* Initially hidden */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Position below header */
        left: 12px;
        right: 12px;
        background-color: #003366;
        padding: 15px 10px;
        border-radius: 8px;
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        gap: 15px; /* Spacing for mobile nav links */
    }

    .nav.active {
        display: flex; /* Show when active */
        opacity: 1;
        transform: translateY(0);
    }

    .nav a {
        font-size: 1rem;
        padding: 10px 15px;
        width: 100%; /* Make links full width */
        text-align: left;
    }

    /* Language switcher positioning on mobile */
    .language-switcher {
        position: absolute;
        top: 20px; /* Align with header top */
        right: 50px; /* Position to the left of the burger */
        gap: 8px; /* Slightly reduced gap */
    }

    .flag-wrapper {
        width: 22px; /* Smaller flags */
        height: 14px;
    }

    .flag-wrapper img {
        max-height: 14px;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn[href="#contact"] {
        font-size: 16px;
        padding: 8px 16px;
    }

    .btn[type="submit"] {
        font-size: 14px;
    }

    /* Gallery adjustments */
    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery img {
        border-radius: 8px;
        /* Disable dramatic zoom on mobile to prevent layout issues */
        transform: none !important; /* Override any hover transforms */
        box-shadow: none !important; /* Override any hover shadows */
    }
    /* Ensure no specific nth-child hover causes issues on small screens */
    .gallery img:nth-child(1):hover,
    .gallery img:nth-child(2):hover,
    .gallery img:nth-child(3):hover {
        transform: none;
        box-shadow: none;
        z-index: auto;
        position: static;
    }
    .gallery img:hover {
        transform: none;
        box-shadow: none;
    }


    /* Contact Form adjustments */
    #contact-form input,
    #contact-form textarea {
        font-size: 0.95rem;
        padding: 10px;
    }

    /* Services List adjustments */
    .services-list li {
        font-size: 1rem;
        min-height: auto;
        padding: 10px;
    }

    .services-list li .emoji {
        font-size: 1.8em; /* Slightly smaller on mobile */
        margin-right: 8px;
    }

    /* About Us adjustments */
    .highlight-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .project-list li .emoji {
        font-size: 1.5em;
        margin-right: 8px;
    }
}
