@import url('common.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #05040e;
    color: white;
    font-family: 'Roxbrough CF', serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}


/* --- 1. HERO SECTION (Static Header + Moving BG) --- */
.hero-back {
    position: relative;
    overflow: hidden;
    /*min-height: 60vh;*/
    
    /* MUST BE FLEX TO PUSH TEXT DOWN */
    display: flex; 
    flex-direction: column;
    
    background: #05040e;
}

.hero-back::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    
    /* Put your image here */
    background: url('../images/sky.png');
    background-size: cover;
    background-position: center;
    
    /* The animation */
    animation: slowZoom 20s ease-in-out infinite;
    z-index: 1; /* Sits behind the content */
}

/* This creates the dark vignette over the moving image */
.hero-back::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, 
                rgba(5, 4, 14, 0.5) 0%, 
                transparent 50%, 
                rgba(5, 4, 14, 1) 100%);
    z-index: 2; /* Sits between the image and the text */
}

header {
    margin-top: 13rem;
    padding: 0 10% 60px;
    position: relative;
    z-index: 3;
    width: 100%;
}

header h1 {
    font-size: 5rem;
    background: linear-gradient(to right, #fff, #A9A3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

header p {
    font-family: 'Latin Modern', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
    color: #A9A3ff;
    max-width: 900px;
}

/* --- 2. CONTENT AREA --- */
.boddery {
    background: linear-gradient(to right, #05040e 0%, #1a1033 100%);
    padding: 80px 10%;
    border-top: 1px solid rgba(169, 163, 255, 0.2);
}

.section-title {
    font-size: 2.2rem;
    color: #A9A3ff;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(169, 163, 255, 0.2);
    padding-bottom: 10px;
}

/* --- 3. SECRETARIAT (STRICT SIDE-BY-SIDE) --- */
.secretariat-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 120px;
}

/* Apply same transition logic as Core Committee */
.member-card.prominent {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(169, 163, 255, 0.3);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    width: 100%;
    transition: all 0.4s ease; /* Added for smooth hover */
}

.member-card.prominent .photo-wrap {
    width: 350px; 
    height: 350px;
    margin: 0 auto 40px;
    border-radius: 50%;
    border: 4px solid #A9A3ff;
    overflow: hidden; /* Clips the zooming image */
    position: relative;
}

.member-card.prominent .photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Smooth zoom for Sec/Asec */
}

/* --- SECRETARIAT SPECIFIC HOVER --- */
.member-card.prominent:hover {
    transform: translateY(-15px); /* Matches the lift of core members */
    border-color: #ffffff; /* Brighter glow on hover */
    background: rgba(169, 163, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.member-card.prominent:hover .photo-wrap img {
    transform: scale(1.1); /* The zoom effect you wanted */
}


/* Shared image hover logic */
.member-card:hover .photo-wrap img {
    transform: scale(1.1);
}

/* --- 4. CORE COMMITTEE (FLEX WRAP + CENTERED LAST) --- */
.core-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the 10th card */
    gap: 40px;
}

.core-grid .member-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    transition: 0.4s ease;
    
    /* Forces roughly 3 per row */
    width: calc(33.333% - 40px); 
    min-width: 320px; 
}

.photo-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

img {
    max-width: 100%;
    height: auto;
}

.photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover States */
.member-card:hover {
    transform: translateY(-15px);
    border-color: #A9A3ff;
    background: rgba(169, 163, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.member-card:hover img {
    transform: scale(1.1);
}

.member-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.role {
    display: block;
    font-family: 'Latin Modern', serif;
    color: #A9A3ff;
    font-size: 1rem;
    text-transform: uppercase;
}

/* --- 5. ANIMATIONS & FOOTER --- */
@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (max-width: 1100px) {
    header {
        margin-top: 9rem;
        padding: 0 8% 50px;
    }

    header h1 {
        font-size: 4rem;
    }

    .boddery {
        padding: 70px 8%;
    }

    .member-card.prominent .photo-wrap {
        width: 280px;
        height: 280px;
    }

    .core-grid .member-card {
        width: calc(50% - 40px);
    }
}

@media (max-width: 800px) {
    .hero-back {
        /*min-height: 50vh;*/
    }

    header {
        margin-top: 7rem;
        padding: 0 6% 40px;
    }

    header h1 {
        font-size: 3.2rem;
    }

    header p {
        font-size: 1.05rem;
    }

    .boddery {
        padding: 60px 6%;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }

    .secretariat-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .member-card.prominent {
        padding: 40px 24px;
        border-radius: 28px;
    }

    .member-card.prominent .photo-wrap {
        width: 240px;
        height: 240px;
        margin-bottom: 24px;
    }

    .core-grid {
        gap: 28px;
    }

    .core-grid .member-card {
        width: 100%;
        min-width: 0;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .member-card h3 {
        font-size: 1.35rem;
    }

    .role {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    header {
        margin-top: 6rem;
        padding: 0 5% 32px;
    }

    header h1 {
        font-size: 2.6rem;
    }

    header p {
        font-size: 1rem;
    }

    .boddery {
        padding: 50px 5%;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .member-card.prominent .photo-wrap {
        width: 200px;
        height: 200px;
    }
}
