@font-face {
    font-family: "gilroy";
    src: url(../fonts/Weekend-BF6896069112561.ttf);
}
@font-face {
    font-family: "memphis";
    src: url(../fonts/Memphis\ River.otf);
}
@font-face {
    font-family: "poster";
    src: url(../fonts/Gilroy-Medium.ttf);
}
@font-face {
    font-family: "titled";
    src: url(../fonts/Compass-Point-Demo.ttf);
}

:root {
    --primary-text: #e6edf3;
    --secondary-text: #a3a3b1;
    --accent: #ff37b3;
    --accent-glow: rgba(255, 55, 179, 0.2);
    --accent-dark: #e02097;
    --bg-dark: #0a0a0a;
    --bg-medium: #0D1117;
    --bg-light: #161B22;
    --border-color: rgba(255, 55, 179, 0.2);
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--primary-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 85%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, var(--accent-glow) 0%, transparent 40%);
}

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: background-color 0.3s, height 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.additional-logos {
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-title {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.ecell-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.vpkbiet-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: -8px;
    letter-spacing: 1px;
}

.small-logo {
    height: 45px;
    transition: all 0.3s ease;
}

.small-logo:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.2);
}

.hi:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

nav .nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

nav .nav-link {
    color: var(--primary-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

nav .nav-link:hover, nav .nav-link.active {
    color: #fff;
    background: var(--accent);
}

.nav-toggle { 
    display: none; 
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's clickable */
}

/* --- HOME SECTION & MAIN LOGO --- */
section#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Default padding for fixed header */
    min-height: 100vh;
}

section#home .section-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
}

.main-logo-section {
    margin-bottom: 20px;
}

.center-logo {
    width: clamp(150px, 20vw, 180px);
    height: auto;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* --- SECTIONS & BOXES --- */
main {
    padding-top: 0; /* Changed dynamically for mobile */
}

section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px;
    position: relative;
}

.section-box {
    width: 100%;
    max-width: 950px;
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(5px);
    padding: 40px 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* --- TYPOGRAPHY & CONTENT --- */
h1, h2 {
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary-text);
}

p {
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto 20px auto;
}

.tagline {
    color: var(--accent);
    letter-spacing: 1.5px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.intro {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 25px var(--accent-glow);
    border: none;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px var(--accent-glow);
}

/* --- SPECIFIC SECTIONS --- */
.mission-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    padding-left: 0;
    position: relative;
}
.mission-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}
.mission-list li::before {
    content: "➔";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.event-card {
    background: var(--bg-medium);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.event-card h3 { color: var(--accent); font-size: 1.3rem; margin-bottom: 10px; }
.event-card p { font-size: 1rem; color: var(--secondary-text); margin-bottom: 0; }
.event-highlight-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-dark));
    border-color: var(--accent);
}
.event-highlight-card p { margin-bottom: 20px; }

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
}
.member-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    width: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-grow: 1;
    max-width: 220px;
}
.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: var(--accent);
}
.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent);
}
.member-card h3 { font-size: 1.2rem; margin: 0 0 5px; }
.member-card .role { color: var(--accent); font-weight: 600; }

.team-photo {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 20px auto 40px auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.contact-list { list-style: none; }
.contact-list li { font-size: 1.15rem; margin-bottom: 10px; }
.contact-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.enroll-box { border-color: var(--accent); }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
}

/* --- ANIMATIONS --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.has-notification { position: relative; }
.notification-dot {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse {
    0%, 100% { transform: scale(0.9); box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px transparent; }
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
    .additional-logos {
        gap: 15px;
    }
    .small-logo {
        height: 40px;
    }
}


/* ---- START: MOBILE FIX FOR 992px AND BELOW ---- */
@media (max-width: 992px) {
    header {
        padding: 0 20px; /* Adjust padding for mobile */
        height: 70px; /* Set a fixed height for the mobile header */
    }

    main {
        padding-top: 70px; /* Add padding to push content below the fixed header */
    }

    /* Hide the partner logos on mobile for a cleaner look */
    .additional-logos .small-logo {
        display: none;
    }

    /* --- MODIFIED FOR HORIZONTAL MENU --- */
    nav .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: row; /* MODIFIED: Display items in a row */
        flex-wrap: wrap; /* MODIFIED: Allow items to wrap to the next line */
        justify-content: center; /* MODIFIED: Center the items */
        position: absolute;
        top: 70px; /* Position below the header */
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px; /* Adjusted padding */
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Show menu when it has the .open class (toggled by JS) */
    nav .nav-menu.open {
        display: flex;
    }

    /* Style individual links in the dropdown */
    .nav-menu li {
        width: auto; /* MODIFIED: Allow items to take their own width */
    }
    .nav-link {
        display: block;
        padding: 10px 15px; /* MODIFIED: Adjusted padding for horizontal items */
        width: auto; /* MODIFIED: Allow links to take their own width */
    }
    /* --- END OF MODIFICATIONS --- */


    /* Display the hamburger toggle button */
    .nav-toggle {
        display: block;
    }

    /* General layout adjustments for smaller screens */
    section {
        min-height: auto;
        padding: 80px 15px;
    }

    .section-box {
        padding: 30px 25px;
    }
}
/* ---- END: MOBILE FIX ---- */


@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .intro {
        font-size: 1rem;
    }
    .section-box {
        padding: 25px 15px;
    }
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .mission-list li {
        font-size: 1rem;
        padding-left: 30px;
    }
    .member-card {
        width: 100%;
        max-width: none;
    }
    .ecell-text {
        font-size: 1.4rem;
    }
    .vpkbiet-text {
        font-size: 0.75rem;
    }
}
