/* ============================================================
   GLOBAL RESETS
============================================================ */
* {
    padding: 0;
    margin: 0;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(to right, #a8c8d8, #e0e6ed, #ffffff, #e0e6ed, #a8c8d8);
    font-family: Trebuchet MS, sans-serif;
}

/* ============================================================
   HEADER / NAVBAR
============================================================ */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000; /* increased for layering */
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative; /* ensures child absolute elements (like toggle) position correctly */
}
.logo-left, .logo-right {
    width: 200px;
    padding-right: 20px;
}
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}
.menu {
    list-style: none;
    display: flex;
    gap: 60px;
    font-weight: 600;
}
.menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color .3s;
}
.menu li a:hover {
    color: #4dc1e7;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 2100; /* ensures it’s clickable */
}

/* ============================================================
   SECTION: ACM MEMBERS (ALL)
============================================================ */
#acm-members {
    padding-top: 140px;
    padding-bottom: 50px;
}
#acm-members h1 {
    text-align: center;
    font-size: 39px;
    font-weight: 800;
    color: #000;
}
#acm-members h1 span,
#acm-members h2 span {
    color: #25b4e8;
}
#acm-members h2 {
    margin: 35px 0 20px 0;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #000;
}

/* ============================================================
   OFFICERS / FACULTY CARDS (NAVY THEME + BADGES + ANIMATION)
============================================================ */
.member-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.member-tile {
    background: linear-gradient(to bottom right, #eef3ff, #ffffff);
    border: 1px solid #c7d7e8;
    border-radius: 14px;
    padding: 18px 15px;
    margin: 15px;
    text-align: center;
    width: 220px;
    transition: all .35s ease;
    opacity: 0;
    animation: fadeUp .7s ease forwards;
}
.member-tile:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,.14), 0 0 10px #25b4e8;
    border-color: #25b4e8;
    background: #fff;
}
.member-tile img {
    width: 180px;
    height: 230px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
.member-tile h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ------- BADGE STYLE (OFFICERS / FACULTY) ------- */
.badge {
    display: inline-block;
    background: #304c7a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Officer fade stagger */
.member-tile:nth-child(1) { animation-delay: .05s; }
.member-tile:nth-child(2) { animation-delay: .10s; }
.member-tile:nth-child(3) { animation-delay: .15s; }
.member-tile:nth-child(4) { animation-delay: .20s; }
.member-tile:nth-child(5) { animation-delay: .25s; }
.member-tile:nth-child(6) { animation-delay: .30s; }
.member-tile:nth-child(7) { animation-delay: .35s; }

/* ============================================================
   ACTIVE MEMBERS CARDS (LIGHT THEME)
============================================================ */
.active-members-wrapper {
    background: linear-gradient(to bottom right, #eaf5ff, #ffffff);
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 0 14px rgba(0,0,0,.08);
    max-width: 1050px;
    margin: 0 auto 50px auto;
}
.active-members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}
.active-card {
    flex: 0 1 230px;
    max-width: 260px;
    background: #f9fbff;
    border: 1px solid #c7d7e8;
    border-radius: 14px;
    padding: 18px 15px;
    text-align: center;
    transition: all .35s ease;
    opacity: 0;
    animation: fadeUp .65s ease forwards;
}
.active-card h3 {
    font-size: 18px;
    font-weight: 650;
    margin-bottom: 4px;
    color: #0b0b0b;
}
.active-card p {
    font-size: 14px;
    font-weight: 500;
    color: #546e8a;
    opacity: 0.95;
}
.active-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,.14), 0 0 10px #25b4e8;
    border-color: #25b4e8;
    background: #fff;
}

/* Active Member Images — smaller than officers */
.active-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #c7d7e8;
    opacity: 0.92;
    transition: all 0.3s ease;
}

.active-card:hover img {
    transform: scale(1.05);
    border-color: #25b4e8;
    opacity: 1;
}

/* Optional: uniform height for cards */
.active-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Active stagger delays */
.active-card:nth-child(1) { animation-delay: .05s; }
.active-card:nth-child(2) { animation-delay: .11s; }
.active-card:nth-child(3) { animation-delay: .17s; }
.active-card:nth-child(4) { animation-delay: .23s; }
.active-card:nth-child(5) { animation-delay: .29s; }
.active-card:nth-child(6) { animation-delay: .35s; }
.active-card:nth-child(7) { animation-delay: .41s; }
.active-card:nth-child(8) { animation-delay: .47s; }
.active-card:nth-child(9) { animation-delay: .53s; }
.active-card:nth-child(10) { animation-delay: .59s; }
.active-card:nth-child(11) { animation-delay: .65s; }
.active-card:nth-child(12) { animation-delay: .71s; }
.active-card:nth-child(13) { animation-delay: .77s; }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(25px) scale(.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background-color: #020202;
    color: white;
    text-align: center;
}
.icons {
    background-color: #181616;
    padding: 5px 0;
}
.icons a {
    margin: 10px;
}
.text {
    display: flex;
    justify-content: space-around;
    padding: 30px 0 20px 0;
}
.column {
    width: 30%;
    line-height: 30px;
    font-size: 15px;
}

/* ============================================================
   MOBILE RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    main { padding-top: 140px; }
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
    }
    .logo-left, .logo-right {
        width: 120px;
        margin-bottom: 5px;
    }

    /* ✅ Ensure hamburger menu shows and works */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 28px;
        color: white;
        background: none;
        border: none;
        z-index: 2100;
        cursor: pointer;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 60px;
        right: 0;
        padding: 20px;
        gap: 20px;
        z-index: 2050;
    }

    .show-menu {
        display: flex !important;
    }

    .menu li {
  width: 100%;
  border-top: 1px solid #fff;
  text-align: center;    /* centers the text */
  padding: 15px 0;       /* equal top and bottom padding */
}


    .member-tile img { width: 120px; height: 160px; }
    #acm-members h1 { font-size: 28px; }
    #acm-members h2 { font-size: 20px; }
    footer .text {
        flex-direction: column;
        max-width: 80%;
        align-items: center;
        text-align: center;
    }
    footer .column {
        width: 80%;
        font-size: 11px;
        padding: 10px;
        line-height: 20px;
    }
    footer .icons img { width: 25px; }
}
