/* ==========================================================================
   1. CSS VARIABLES & FONTS
   ========================================================================== */
@font-face {
    font-family: 'MyHeadingFont';
    src: url('../fonts/Futura-Boo.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MyBodyFont';
    src: url('../fonts/Karu-Regular.ttf') format('truetypefont');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-blue: #001133;
    --accent-red: #bb0000;
    --accent-green: #004D40;
    --warm-grey: #B0A89B;
    --off-white-bg: #F5F5F0;
    --light-neutral-bg: #EAE0D5;
    --white: #FFFFFF;
    --dark-text: #333333;
    --medium-text: #5F5F5F;
    --blueprint-line-color: rgba(0, 51, 102, 0.08);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --transition-speed: 0.3s;

    /* Typography */
    --font-heading: 'MyHeadingFont', sans-serif;
    --font-body: 'MyBodyFont', sans-serif;

    /* Layout */
    --container-width: 1160px;
    --gutter: 20px;
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    background-color: var(--off-white-bg);
    line-height: 1.65;
    overflow-x: hidden;

    /* Blueprint Background Effect */
    /* Primary grid - lighter, more frequent lines */
    background-image:
        /* Thin horizontal lines */
        linear-gradient(rgba(0, 51, 102, 0.03) 1px, transparent 1px),
        /* Thin vertical lines */
        linear-gradient(to right, rgba(0, 51, 102, 0.03) 1px, transparent 1px),
        /* Medium horizontal lines (every 5 units) */
        linear-gradient(rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        /* Medium vertical lines (every 5 units) */
        linear-gradient(to right, rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        /* Thick horizontal lines (every 25 units) */
        linear-gradient(rgba(0, 51, 102, 0.08) 1px, transparent 1px),
        /* Thick vertical lines (every 25 units) */
        linear-gradient(to right, rgba(0, 51, 102, 0.08) 1px, transparent 1px);

    /* Set different grid sizes */
    background-size:
        20px 20px,
        /* Thin lines every 10px */
        20px 20px,
        /* Thin lines every 10px */
        100px 100px,
        /* Medium lines every 50px */
        100px 100px,
        /* Medium lines every 50px */
        500px 500px,
        /* Thick lines every 250px */
        500px 500px;
    /* Thick lines every 250px */

    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;

    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 0;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2.8rem;
    text-align: center;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
    color: var(--medium-text);
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    font-weight: 600;
}

a:hover {
    color: var(--primary-blue);
}

/* Global heading underlines for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    position: relative;
    padding-bottom: 12px;
    /* Consistent padding for all headings */
}

h1::after,
h2::after,
h3::after,
h4::after,
h5::after,
h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 1.5px;
}

/* Adjust width based on heading level for visual hierarchy */
h1::after {
    width: 120px;
}

h2::after {
    width: 100px;
}

h3::after {
    width: 60px;
}

h4::after,
h5::after,
h6::after {
    width: 40px;
}

/* Left-aligned underlines for text that's typically left-aligned */
.content-block h3::after,
footer h4::after,
footer h5::after,
footer h6::after {
    left: 0;
    transform: none;
}

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 80px 0;
    overflow-x: hidden;
}


.section-intro-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: -1.5rem auto 3.5rem auto;
    color: var(--medium-text);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Placeholders */
.placeholder-section {
    text-align: center;
    padding: 45px;
    border: 1px dashed var(--warm-grey);
    color: var(--medium-text);
    margin-top: 2rem;
    border-radius: var(--border-radius);
    background-color: #fafafa;
}

/* ==========================================================================
   5. HEADER & NAVIGATION - UPDATED WITH TRANSFORMATION
   ========================================================================== */
header {
    background-color: transparent;
    padding: 40px 0;
    /* Increased top padding */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.logo {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    /* Increased space between logo and nav */
}

.logo img {
    max-height: 150px;
    /* Larger logo */
    width: auto;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Navigation */
nav {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.8rem;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav a {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    /* White text initially for contrast */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-speed) ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-red);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Scrolled state */
header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    /* Slightly increased from before */
}

header.scrolled .header-container {
    flex-direction: row;
    /* Change to row layout */
    justify-content: space-between;
}

header.scrolled .logo {
    margin-bottom: 0;
    /* Remove margin */
}

header.scrolled .logo img {
    max-height: 48px;
    /* Smaller logo when scrolled */
}

header.scrolled nav a {
    color: var(--primary-blue);
    /* Change text color when scrolled */
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    /* Start with white */
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

header.scrolled .mobile-nav-toggle span {
    background-color: var(--primary-blue);
    /* Change to blue when scrolled */
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    background-image: linear-gradient(rgba(0, 17, 51, 0.75), rgba(0, 17, 51, 0.75)), url('../images/image.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    /* Remove padding */
    text-align: center;
    color: var(--white);
    min-height: 100vh;
    /* Make it full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* To position content correctly */
    padding-top: 220px;
    /* Account for header height + extra space */
    box-sizing: border-box;
    /* Include padding in height calculation */
}

.hero h1 {
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-size: 3.5rem;
    /* Larger heading */
    margin-bottom: 1.5rem;
    /* More space below heading */
}

.hero p {
    font-size: 1.3rem;
    /* Larger paragraph text */
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    /* Slightly wider */
    margin: 0 auto 3rem auto;
    /* More space below paragraph */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.hero .cta-button {
    padding: 1rem 2.8rem;
    /* Larger button */
    font-size: 1.1rem;
}

/* ==========================================================================
   7. CONTENT SECTIONS
   ========================================================================== */
/* About Section */
#about .content-block.about-card {
    position: relative;
    background-color: var(--primary-blue);
    border: none;
    color: var(--white);
    padding: 2.5rem 2rem;
    z-index: 1;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

#about .about-card h3,
#about .about-card p {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 3;
    position: relative;
    text-align: center;
}

#about .about-card h3 {
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

#about .about-card .icon-container {
    margin-bottom: 1rem;
    z-index: 3;
    position: relative;
    display: flex;
    justify-content: center;
}

#about .about-card .icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 3rem;
}

#about .about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 17, 51, 0.75), rgba(0, 17, 51, 0.75));
    z-index: 1;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 1;
}

#about #about-card-1::before {
    background-image: linear-gradient(rgba(0, 17, 51, 0.7), rgba(0, 17, 51, 0.8)), url('../images/About/Picture1.png');
}

#about #about-card-2::before {
    background-image: linear-gradient(rgba(0, 17, 51, 0.7), rgba(0, 17, 51, 0.8)), url('../images/About/Picture2.png');
}

#about #about-card-3::before {
    background-image: linear-gradient(rgba(0, 17, 51, 0.7), rgba(0, 17, 51, 0.8)), url('../images/About/Picture4.jpg');
}

#about .about-card:hover::before {
    transform: scale(1.05);
    opacity: 0.9;
}

#about .content-block.about-card {
    background-color: transparent;
}

/* Services Section */
#clients {
    background-color: var(--white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

#services .service-card {
    position: relative;
    border: none;
    color: var(--white);
    padding: 0;
    z-index: 1;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#services .service-card .card-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#services .service-card h3,
#services .service-card p {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#services .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#services .service-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

#services .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 17, 51, 0.75), rgba(0, 17, 51, 0.75));
    z-index: 1;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 1;
    border-radius: var(--border-radius);
}

#services .service-grid .service-card:nth-child(1)::before {
    background-image: linear-gradient(rgba(0, 17, 51, 0.7), rgba(0, 17, 51, 0.8)), url('../images/About/Picture1.png');
}

#services .service-grid .service-card:nth-child(2)::before {
    background-image: linear-gradient(rgba(0, 17, 51, 0.7), rgba(0, 17, 51, 0.8)), url('../images/About/Picture6.jpg');
}

#services .service-grid .service-card:nth-child(3)::before {
    background-image: linear-gradient(rgba(0, 17, 51, 0.7), rgba(0, 17, 51, 0.8)), url('../images/About/Picture7.png');
}

#services .service-grid .service-card:nth-child(1) {
    animation-delay: 0.1s;
}

#services .service-grid .service-card:nth-child(2) {
    animation-delay: 0.2s;
}

#services .service-grid .service-card:nth-child(3) {
    animation-delay: 0.3s;
}

#services .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
}

#services .service-card:hover::before {
    transform: scale(1.05);
    opacity: 0.9;
}

#services .service-card .card-image {
    display: none;
}

#services .service-card .icon-container {
    margin-bottom: 1rem;
    z-index: 3;
    position: relative;
    display: flex;
    justify-content: center;
}

#services .service-card .icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 3rem;
}

/* Client Section */
/* Client Carousel */
.client-carousel-container {
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
    position: relative;
}

.client-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.client-logo {
    min-width: 200px;
    height: 80px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;

    transition: all var(--transition-speed) ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 8 - 4rem * 8));
        /* Adjust based on number of original logos */
    }
}

/* Add pause on hover */
.client-carousel-container:hover .client-carousel {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-logo {
        min-width: 160px;
        margin: 0 1.5rem;
    }

    .client-logo img {
        max-height: 50px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-160px * 8 - 3rem * 8));
            /* Adjusted for smaller screens */
        }
    }
}

/* ==========================================================================
   8. CARDS & COMPONENTS
   ========================================================================== */
.content-block {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #f0f0f0;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.section:not(.section-alt-bg) .content-block {
    background-color: var(--off-white-bg);
    border-color: #e0e0e0;
}

.section-alt-bg .content-block {
    background-color: var(--white);
    border-color: #f0f0f0;
}

.content-grid .content-block:nth-child(1) {
    animation-delay: 0.1s;
}

.content-grid .content-block:nth-child(2) {
    animation-delay: 0.2s;
}

.content-grid .content-block:nth-child(3) {
    animation-delay: 0.3s;
}

.content-grid.project-grid .content-block:nth-child(4) {
    animation-delay: 0.4s;
}

.content-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
}

.content-block .icon-placeholder {
    font-size: 2.3rem;
    color: var(--accent-green);
    margin-bottom: 1.25rem;
    display: block;
    font-weight: normal;
    background: #eee;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
}

.content-block h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.content-block p {
    flex-grow: 1;
}

/* Card Specific Styles */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 1.5rem;
}

.content-block.service-card,
.content-block.project-card {
    padding: 0;
}

.content-block.service-card .card-content,
.content-block.project-card .card-content {
    padding: 1.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-red);
    align-self: flex-start;
}

.card-link:hover {
    color: var(--primary-blue);
}

.content-block:not(.about-card) h3,
.content-block:not(.about-card) p {
    text-align: left;
}

.content-block:not(.about-card) .icon-container {
    justify-content: flex-start;
}

/* ==========================================================================
   9. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.cta-button {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--white) !important;
    padding: 0.9rem 2.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(187, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #a00000;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(187, 0, 0, 0.3);
    text-decoration: none;
}

.cta-button.secondary {
    background-color: var(--accent-green);
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2);
}

.cta-button.secondary:hover {
    background-color: #00382d;
    box-shadow: 0 7px 18px rgba(0, 77, 64, 0.3);
    transform: translateY(-3px);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-blue);
    color: #ccc;
    padding: 60px 0 30px 0;
    margin-top: 80px;
    font-size: 0.95rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

footer h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.2rem;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
}

footer p,
footer li {
    color: #ccc;
    margin-bottom: 0.8rem;
}

footer a {
    color: var(--warm-grey);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: #aaa;
}

/* ==========================================================================
   11. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   12. MEDIA QUERIES
   ========================================================================== */
/* Tablet */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0;
        min-height: 50vh;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    footer .container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 60px 0;
        min-height: 40vh;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .header-container {
        padding: 0 15px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-grid .content-block {
        animation-delay: 0.1s !important;
    }

    .client-logos-container {
        gap: 2rem;
    }

    .client-logos-container img {
        max-height: 45px;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer h4 {
        margin-bottom: 0.8rem;
    }

    footer div {
        margin-bottom: 1.5rem;
    }

    footer ul {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo img {
        max-height: 40px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 0;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        width: 100%;
    }

    nav a {
        color: var(--primary-blue);
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    header:not(.scrolled) nav a {
        color: var(--primary-blue);
    }

    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
        /* Reduced padding on mobile */
    }

    .logo {
        margin-bottom: 0;
    }

    .logo img {
        max-height: 40px;
    }

    .hero {
        min-height: 100vh;
        padding-top: 120px;
        /* Adjusted for mobile header */
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
}