* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0; /* Ensure no browser-default margins/paddings */
}

/* Page-specific background images on body with fade effect */
.body-home {
    background-image: url('../images/ai-generated-8952416.jpg'); /* Swapped with Education */
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-it-services {
    background-image: url('../images/pexels-freestockpro-12932191.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-it-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-graphic-design {
    background-image: url('../images/ai-generated-8988762.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-graphic-design::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-portfolio {
    background-image: url('../images/ai-generated-8952422_1920.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-education {
    background-image: url('../images/web-3706551.jpg'); /* Swapped with Home */
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-about {
    background-image: url('../images/ai-generated-9088888.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-contact {
    background-image: url('../images/pexels-freestockpro-12932191.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.body-audio-visual {
    background-image: url('../images/1920x1174_SoundOfMusic.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.body-audio-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Header */
header {
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px 8px 80px; /* Reduced top padding to 10px */
    position: relative; /* Positioning context for header-logo */
    margin: 0; /* Ensure no inherited margins */
    display: flex; /* Flexbox for layout */
    align-items: center; /* Vertically center logo and navbar */
    min-height: 60px; /* Ensure header is tall enough */
    border-bottom: 4px solid #1DA1F2; /* Match color of blue footer rule */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%; /* Ensure container spans full width */
}

.header-logo {
    position: absolute;
    left: 0px; /* Align with footer copyright text, per manual test */
    top: -1px; /* Moved up 2px from 1px */
    width: 356.91975px; /* 110% of 324.4725px */
    height: auto;
    z-index: 1001; /* Bring logo to the front, above the header background */
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #00FF00;
    cursor: pointer;
    z-index: 200;
    position: absolute;
    right: 20px;
}

/* Page-specific header classes (no background images anymore) */
.header-home,
.header-it-services,
.header-graphic-design,
.header-portfolio,
.header-education,
.header-about,
.header-contact,
.header-audio-visual {
    /* No background styles needed */
}

/* Subnav Links */
.subnav {
    background-color: #000000;
    padding: 0;
    z-index: 50;
}

.subnav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-left: 377px; /* Adjusted for 356.91975px logo width + 20px left offset */
    padding-left: 20px; /* Extra padding to avoid overlap */
    padding-top: 24px; /* Total 24px downward adjustment */
    white-space: nowrap; /* Prevent text wrapping within links */
}

.subnav ul li {
    position: relative;
}

.subnav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: #00FF00;
}

.subnav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem; /* Reduced to 95% of 1rem */
    padding: 0;
    transition: color 0.3s ease;
    text-transform: uppercase; /* Set to all caps */
}

.subnav ul li a:hover {
    color: #00FF00;
}

.subnav ul li.active a {
    color: #1DA1F2 !important;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 20px auto 50px auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Ensure hero text is above the background fade */
}

.hero h1 {
    font-size: 3rem;
    color: #FFFFFF; /* Reverted to white as per request */
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    position: relative;
    max-width: 1200px;
}

.hero h1 img {
    width: 461px !important;
    max-width: 100%;
    max-height: 218px !important;
    vertical-align: middle;
}

.hero p {
    font-size: 1.2rem;
    color: #FFFFFF; /* Reverted to white as per request */
    margin: 15px 0;
}

.cta-button {
    background-color: #00FF00;
    color: #000000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 0 15px 0;
    display: inline-block;
}

.cta-button:hover {
    background-color: #00CC66;
}

/* Services Section */
.services {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2; /* Ensure services section is above background fade */
}

.service-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 4px solid #1DA1F2;
    color: #000000;
}

.service-card h3 {
    color: #1DA1F2;
    margin-bottom: 10px;
}

.service-card p {
    color: #000000;
    font-weight: 500;
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0 10px;
}

.social-icons img {
    max-width: 20.48px; /* 80% of 25.6px */
    width: 20.48px;
    height: 20.48px;
    margin: 0 5px;
    filter: invert(100%);
    vertical-align: middle;
}

.social-icons .youtube-icon {
    max-width: 27.008px; /* 80% of 33.76px */
    width: 27.008px;
    height: 27.008px;
}

/* Footer */
footer {
    background: #000000;
    border-top: 4px solid #1DA1F2;
    padding: 8px 20px 8px 80px; /* Increased left padding to 80px */
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 0.8rem; /* 80% of default 16px (12.8px) */
    text-align: left;
}

/* Mobile Responsiveness */
@media (max-width: 800px) {
    .header-logo {
        width: 237.9465px; /* 110% of 216.315px */
        left: 0px; /* Align with footer copyright text */
        top: -1px; /* Moved up 2px from 1px */
        z-index: 1001; /* Bring logo to the front, above the header background */
    }

    .subnav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-left: 258px; /* Adjusted for 237.9465px logo width + 20px left offset */
        padding-left: 20px; /* Extra padding to avoid overlap */
    }

    .subnav ul.active {
        display: flex;
    }

    .subnav ul li:not(:last-child)::after {
        display: none;
    }

    .hero {
        margin: 20px auto 50px auto;
        position: relative;
        z-index: 2; /* Ensure hero text is above the background fade */
    }

    .hero h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 3px;
    }

    .hero h1 img {
        width: 306px !important;
        max-height: 173px !important;
    }

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

    .social-icons {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        padding: 0 10px;
    }

    .social-icons img {
        max-width: 16.64px; /* 80% of 20.8px */
        width: 16.64px;
        height: 16.64px;
        vertical-align: middle;
    }

    .social-icons .youtube-icon {
        max-width: 21.952px; /* 80% of 27.44px */
        width: 21.952px;
        height: 21.952px;
    }

    .hamburger {
        display: block;
    }

    footer {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        padding: 8px 20px 8px 80px; /* Increased left padding to 80px */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}