body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
html { overflow-x: hidden; }
body { overflow-x: clip; }
.developers-page {
    --grad-light: #1F5E2C;
    --grad-dark: #094024;
    --accent-yellow: var(--gnc-gold, #EABA3B);
}

/* Hero Section Wrapper */
.hero-section {
    background-color: var(--grad-dark);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* --- BACKGROUND IMAGE PLACEHOLDER --- */
.bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography */
.serif-font {
    font-family: 'Playfair Display', serif;
}

.text-accent {
    color: var(--gnc-gold);
}

.text-ivory {
    color: #F9F6F1;
}

/* --- LAYOUT & CARD --- */
.content-container {
    position: relative;
    z-index: 10;
}

.quote-wrapper {
    position: relative;
    margin-top: 3rem;
}

/* Yellow offset rectangle behind the card */
.quote-bg-rect {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--gnc-gold);
    z-index: 1;
}

/* Main gradient card */
.quote-card {
    position: relative;
    background: linear-gradient(-114deg, var(--grad-light), var(--grad-dark));
    padding: 3.5rem;
    z-index: 2;
    color: #F9F6F1;
}

/* --- CSS SHAPES --- */
.shape {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

/* Yellow Star Shape */
.star-shape {
    width: 35px;
    height: 35px;
    background-color: var(--gnc-gold);
    clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
    margin-bottom: 2rem;
}

/* Yellow Solid Circle */
.circle-solid {
    width: 300px;
    height: 300px;
    background-color: var(--gnc-gold);
    border-radius: 50%;
    top: -75px;
    left: -75px;
}

/* Yellow Outline Circles (Holes) */
.circle-hole {
    border: 25px solid var(--gnc-gold);
    border-radius: 50%;
    background: transparent;
}

.hole-top {
    width: 350px;
    height: 350px;
    top: -175px;
    left: 42%;
}

.hole-bottom {
    width: 300px;
    height: 300px;
    bottom: -175px;
    right: -75px;
}

/* --- IMAGE ASSET PLACEHOLDERS FOR 3D GREEN SPHERES --- */
.sphere {
    position: absolute;
    z-index: 6;
    pointer-events: none;
}

.sphere-top-left {
    top: 8%;
    left: 5%;
    width: 180px;
}

.sphere-bottom-left {
    bottom: -5%;
    left: 5%;
    width: 350px;
}

.sphere-bottom-right {
    bottom: 15%;
    right: 5%;
    width: 150px;
    z-index: 11;
}

/* --- ANIMATIONS --- */
.anim-float {
    animation: float 6s ease-in-out infinite;
}

.anim-float-delayed {
    animation: float 7s ease-in-out infinite 2s;
}

.anim-spin-slow {
    animation: spin 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

    .hero-section .col-lg-6 {
        text-align: center;
        padding-right: var(--bs-gutter-x, 0.75rem) !important;
    }

    .hero-section h1 {
        font-size: 2.35rem;
    }

    .hero-section p {
        font-size: 1.05rem;
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
    }

    .quote-wrapper {
        margin: 3rem auto 2rem;
        max-width: 520px;
        width: calc(100% - 20px);
    }

    .quote-card {
        padding: 2.25rem 2rem;
    }

    .quote-card h3 {
        font-size: 1.45rem;
        margin-bottom: 2rem !important;
    }

    /* Keep all decorative shapes behind text on mobile */
    .shape,
    .sphere {
        pointer-events: none;
        z-index: 1 !important;
    }

    /* Reposition and resize decorative circles away from hero text */
    .circle-solid {
        width: 140px;
        height: 140px;
        top: -45px;
        left: -45px;
        opacity: 0.55;
    }

    .hole-top {
        width: 170px;
        height: 170px;
        border-width: 16px;
        top: -40px;
        right: -35px;
        left: auto;
        opacity: 0.65;
    }

    .hole-bottom {
        width: 140px;
        height: 140px;
        border-width: 14px;
        bottom: -40px;
        right: -30px;
        opacity: 0.65;
    }

    /* Scale and reposition 3D spheres so they do not obscure content */
    .sphere-top-left {
        width: 75px;
        top: 25px;
        left: -20px;
        opacity: 0.8;
    }

    .sphere-bottom-left {
        width: 160px;
        bottom: -35px;
        left: -35px;
        opacity: 0.85;
    }

    .sphere-bottom-right {
        width: 85px;
        bottom: 2%;
        right: -15px;
        opacity: 0.85;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }

    .hero-section h1 {
        font-size: 1.95rem;
        line-height: 1.25;
    }

    .hero-section p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .quote-wrapper {
        margin: 2.25rem auto 1.5rem;
        width: calc(100% - 14px);
    }

    .quote-bg-rect {
        top: 14px;
        left: 14px;
    }

    .quote-card {
        padding: 1.75rem 1.4rem;
    }

    .quote-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.45;
    }

    .star-shape {
        width: 26px;
        height: 26px;
        margin-bottom: 1.25rem;
    }

    /* Small phone adjustments */
    .circle-solid {
        width: 105px;
        height: 105px;
        top: -30px;
        left: -30px;
    }

    .hole-top {
        width: 125px;
        height: 125px;
        border-width: 12px;
        top: -25px;
        right: -25px;
    }

    .hole-bottom {
        width: 105px;
        height: 105px;
        border-width: 10px;
        bottom: -25px;
        right: -20px;
    }

    .sphere-top-left {
        width: 55px;
        top: 20px;
        left: -15px;
    }

    .sphere-bottom-left {
        width: 110px;
        bottom: -25px;
        left: -20px;
    }

    .sphere-bottom-right {
        width: 65px;
        bottom: 1%;
        right: -10px;
    }
}

@media (max-width: 575px) {
    .team-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- TEAM SECTION --- */
.team-section {
    background-color: #F9F6F1; /* Light beige/off-white background matching the image */
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-header {
    max-width: 700px;
}

.team-section-title {
    color: #1F5E2C;
}

.text-dark-green {
    color: #1F5E2C;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Team Card Styling */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Placeholder styling for images before they are loaded */
.team-img {
    background-color: #E2E2E2; 
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    /* Optional: uncomment below if you want subtle borders on the images */
    /* border: 4px solid white; */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
}

/* Typography for Roles and Names */
.team-role {
    font-size: 0.75rem;
    color: #1F5E2C;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.team-name {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    font-weight: 600;
}

/* --- ADVISER / THANK YOU SECTION --- */
.adviser-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
    z-index: 1;
    background-color: var(--grad-dark); /* Fallback */
}

/* Background Image Container */
.adviser-bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.adviser-bg-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Photo Wrapper & Image styling */
.adviser-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.adviser-img {
    min-height: 450px;         
    object-fit: cover;
}

/* Yellow Overlapping Name Card */
.adviser-name-card {
    position: absolute;
    bottom: 20px;
    right: -15%;
    background-color: var(--accent-yellow);
    padding: 1.5rem 2rem;
    z-index: 3;
    min-width: 320px;
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .adviser-name-card {
        right: 0;
        bottom: -20px;
        width: 90%;
        margin: 0 auto;
        left: 0;
        min-width: auto;
    }
}

/* --- GALLERY SECTION --- */
.gallery-section {
    background-color: #F9F6F1; /* Matches the Team section off-white background */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Gallery Image Wrapper ensures all images stretch to fill their grid cells properly */
.gallery-image-wrapper {
    height: 100%;
    min-height: 350px; /* Gives structure before images load */
    background-color: #E2E2E2; /* Placeholder background */
}

/* Image styling */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the grid space without distortion */
    object-position: center;
    display: block;
}

/* Responsive height adjustment for smaller screens */
@media (max-width: 767px) {
    .gallery-image-wrapper {
        min-height: 250px;
    }
}

/* --- SPACE BEFORE FOOTER --- */
.footer-spacer {
    display: none;
}
