/* GLOBAL STYLES */
html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: linear-gradient(180deg, #100829 0%, #100829 30%, #4500AD 65%, #100829 100%);
    background-size: 100% 250vh;
    background-repeat: repeat-y;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
}



h2 {
    font-size: 55px;
}

h1 {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 65px;
    font-weight: 800 !important;
    color: #F4F4F4 !important;
    letter-spacing: -0.02em;
    margin: 40px auto;
    text-align: center;
    padding: 25px;

    /* Simple layout entry animation parameters */
    opacity: 0;
    animation: titleFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: .75s; /* Brief pause so font imports settle cleanly first */
}

/* Keyframes mapping out a smooth slide up entry window */
@keyframes titleFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO TITLE LETTER ANIMATION */
.hero-title {
    opacity: 1 !important;
    animation: none !important;
    overflow: visible;
}

.hero-title .word {
    display: inline-block;
    white-space: nowrap;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: letterRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letterRise {
    0% {
        opacity: 0;
        transform: translateY(30px);
        color: #6B1CE3;
    }
    60% {
        color: #4500AD;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        color: #F4F4F4;
    }
}

/* HERO SUBTITLE ENTRANCE */
.hero-subtitle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.hero-accent-bar {
    display: block;
    width: 0;
    height: 3px;
    border-radius: 999px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #4500AD, #6B1CE3);
    box-shadow: 0 0 12px rgba(107, 28, 227, 0.6);
    animation: accentGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.2s;
}

@keyframes accentGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(18px);
    text-align: center;
    line-height: 1.7;
    animation: subtitleFadeUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.3s;
}

@keyframes subtitleFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.footer {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #F4F4F4;
    font-size: 15px;
    opacity: 75%;
    box-sizing: border-box;
    border: 1px solid #F4F4F4;
    border-radius: 25px;
    padding: 10px;
}

/* FOOTNOTES */
.footnotes {
    font-size: 0.9em;
    margin-top: 2rem;
    color: #F4F4F4;
}

.footnotes p {
    margin: 0.3rem 0;
}

.footnotes a {
    text-decoration: none;
    margin-left: 6px;
}

.mapcaption {
    text-align: center;
}

/* IBM PLEX FONTS */
.plexbold {
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #F4F4F4;
}

.plexmed {
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #F4F4F4;
    text-align: center;
}

.plexlight {
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #F4F4F4;
}

p {
    font-family: "IBM Plex Sans";
    color: #F4F4F4;
}

a:link,
a:visited {
    color: inherit;
}

.image-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 25px;
}

.image-row img {
    flex-shrink: 0;
    max-width: 100%;
    height: auto;
}

.image-row p {
    margin: 0;
}

.dobetter {
    text-align: center;
    padding: 10%;
}

.text-container {
    position: relative;
}

.overlay-number {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 6rem;
    opacity: 0.15;
    z-index: 1;
}

.logoimg {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.openingvid {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* MARQUEE GALLERY */

.marquee-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 30px 32px 30px;
    overflow: visible;
    width: 80%;
    margin: 0 auto;
}

.marquee-row {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 60s linear infinite;
}

.marquee-track.reverse {
    animation: scroll-right 60s linear infinite;
}

/* PAUSE ENTIRE ROW ON HOVER */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

/* CARD */
.card {
    position: relative;
    width: 30vh;
    height: 38vh;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    object-position: top;
    border-radius: 8px 8px 0 0;
    display: block;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

/* BRAD ZUMWALT MARQUEE PHOTO POSITION */
.shift-right-brad {
    object-position: right top;
}

/* DERRICK HUNTER MARQUEE PHOTO FIX (source photo is a tighter face crop than the others) */
.card-img-zoomout {
    width: 100%;
    height: 30vh;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: rgba(244, 244, 244, 0.08);
}

.card-img-zoomout .zoom-out-hunter {
    width: 100%;
    height: 30vh;
    object-fit: contain;
    object-position: center top;
}

.card:hover .card-img-zoomout .zoom-out-hunter {
    filter: grayscale(0%) opacity(1);
}

.card:hover img {
    filter: grayscale(0%) opacity(1);
}

.card-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background-color: transparent;
    border: none;
    padding: 8px 4px 0 4px;
    white-space: normal;
    opacity: 1;
    pointer-events: none;
    z-index: 999;
}

.card-name {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: #F4F4F4;
    margin: 0 0 2px 0;
}

.card-title {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    font-size: 0.74rem;
    color: rgba(244, 244, 244, 0.65);
    margin: 0;
}

/* ANIMATIONS */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .card {
        width: 20vw;
        height: 20vw;
    }

    .marquee-track {
        animation-duration: 14s;
    }

    .card-overlay {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}



/* THEMES */
.themes {
    width: 80%;
    margin: 0 auto;
    padding: 40px 0;
}

.theme-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 24px 0 40px 0;
}

.theme-card {
    display: flex;
    flex-direction: column;
    flex: 0 1 calc((100% - 40px) / 3);
    max-width: 280px;
    min-width: 200px;
    color: #F4F4F4;
    text-decoration: none;
    background-color: rgba(244, 244, 244, 0.08);
    border: 1px solid rgba(244, 244, 244, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.theme-card:hover {
    background-color: rgba(244, 244, 244, 0.15);
    border-color: rgba(244, 244, 244, 0.4);
    box-shadow: 0 0 12px rgba(244, 244, 244, 0.1);
    transform: translateY(-4px);
}

.theme-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: rgba(244, 244, 244, 0.05);
}

.theme-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.theme-card:hover .theme-card-img img {
    opacity: 0.85;
}

.theme-card-title {
    font-size: 0.95rem;
    margin: 12px 12px 6px 12px;
}

.theme-card-preview {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0 12px 14px 12px;
    opacity: 0.85;
}

/* THEME PAGE (individual theme pages) */
.theme-page {
    width: 80%;
    max-width: 900px;
    margin: 60px auto;
}

.theme-page h1 {
    text-align: center;
    margin-bottom: 12px;
}

.theme-video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 24px auto;
    overflow: hidden;
    border-radius: 8px;
}

.theme-page .plexlight {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
    text-align: center;
}

/* ABOUT US PAGE */
.about-page {
    width: 80%;
    max-width: 1100px;
    margin: 60px auto;
}

.about-title {
    text-align: center;
    margin-bottom: 40px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 1 calc((100% - 72px) / 4);
    min-width: 200px;
    background-color: rgba(244, 244, 244, 0.08);
    border: 1px solid rgba(244, 244, 244, 0.15);
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.team-card:hover {
    background-color: rgba(244, 244, 244, 0.15);
    border-color: rgba(244, 244, 244, 0.4);
    box-shadow: 0 0 12px rgba(244, 244, 244, 0.1);
    transform: translateY(-4px);
}

.team-headshot {
    width: 160px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 25%;
    margin-bottom: 16px;
    overflow: hidden;
}

.team-headshot-wrap {
    width: 160px;
    height: 200px;
    border-radius: 25%;
    overflow: hidden;
    margin-bottom: 16px;
}

.team-headshot-wrap .team-headshot {
    margin-bottom: 0;
    border-radius: 0;
}

.zoom-zane {
    transform: scale(2);
    object-position: center 80%;
}

.team-name {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.team-detail {
    font-size: 0.85rem;
    margin: 2px 0;
    opacity: 0.85;
}

.scholarship-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.scholarship-section .plexlight {
    line-height: 1.7;
    margin-top: 16px;
}

.scholarship-section a,
.scholarship-section a:link,
.scholarship-section a:visited {
    color: #F4F4F4 !important;
}

#tagline {
    padding: 5px;
    text-align: center;
}

/* HAMBURGER MENU */
.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(244, 244, 244, 0.08);
    border: 1px solid rgba(244, 244, 244, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.25s ease;
}

.hamburger-btn:hover {
    background-color: rgba(244, 244, 244, 0.15);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #F4F4F4;
    border-radius: 2px;
}

/* SIDE MENU PANEL */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: #1a0f38;
    border-right: 1px solid rgba(244, 244, 244, 0.15);
    z-index: 1002;
    transition: left 0.35s ease;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #F4F4F4;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    line-height: 1;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 50px;
}

.nav-link,
.nav-link:link,
.nav-link:visited {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #F4F4F4 !important;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(244, 244, 244, 0.08);
}

/* DROPDOWN */
.nav-dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-toggle {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #F4F4F4;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(244, 244, 244, 0.08);
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
}

.dropdown-toggle.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 16px;
}

.dropdown-content.open {
    max-height: 45vh;
    overflow-y: auto;
}

.dropdown-content a,
.dropdown-content a:link,
.dropdown-content a:visited {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(244, 244, 244, 0.8);
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(244, 244, 244, 0.08);
    color: #F4F4F4;
}

/* OVERLAY BACKDROP */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.menu-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.sectiontext {
    background-color: #6B1CE333;
    border-radius: 12px;
    padding: 15px;
    margin: 5px auto;
    box-sizing: border-box;
}

.sectiontext p {
    color: #F4F4F4;
}

.sectiontext p a {
    color: #FFFFFF;
    text-decoration: underline;
}

.quote-style {
    margin: 24px 0;
    padding: 8px 0 8px 16px;
    border-left: 4px solid #F4F4F4;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #F4F4F4;
}

.namealign {
    text-align: right;
}


/* MOBILE */
@media (max-width: 600px) {
    .image-row {
        flex-direction: column;
    }

    .image-row img {
        width: 100%;
    }

    .overlay-number {
        font-size: 3rem;
    }
}


/* BIO PAGE */
.back-home,
.back-home:link,
.back-home:visited {
    position: fixed;
    top: 24px;
    right: 24px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #F4F4F4;
    text-decoration: none;
    background-color: rgba(244, 244, 244, 0.08);
    border: 1px solid rgba(244, 244, 244, 0.15);
    border-radius: 999px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    z-index: 999;
}

.back-home:hover {
    background-color: rgba(244, 244, 244, 0.15);
    border-color: rgba(244, 244, 244, 0.4);
}

/* THEME PAGE NAVIGATION */
.theme-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 48px auto 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(244, 244, 244, 0.15);
}

.theme-nav-link {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #F4F4F4;
    text-decoration: none;
    background-color: rgba(244, 244, 244, 0.08);
    border: 1px solid rgba(244, 244, 244, 0.15);
    border-radius: 999px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.theme-nav-link:hover {
    background-color: rgba(244, 244, 244, 0.15);
    border-color: rgba(244, 244, 244, 0.4);
}

.bio-page {
    display: flex;
    gap: 48px;
    max-width: 1100px;
    margin: 100px auto 60px auto;
    padding: 0 24px;
    align-items: flex-start;
}

.bio-left {
    flex-shrink: 0;
    width: 320px;
}

.bio-headshot {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    display: block;
}

.bio-right {
    flex: 1;
}

.bio-name {
    font-size: 2.2rem;
    margin: 0 0 4px 0;
    padding: 0;
    text-align: left;
}

.bio-title {
    font-size: 1.1rem;
    margin: 0 0 24px 0;
    opacity: 0.7;
}

.bio-quote {
    font-size: 1.3rem;
    border-left: 3px solid #6B1CE3;
    padding-left: 20px;
    margin: 0 0 28px 0;
    text-align: left;
    line-height: 1.5;
}

.bio-paragraph {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 32px 0;
}

.bio-video {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

/* ============================
   MAP WRAPPER
   ============================ */
.map-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

#ward-leaflet-map {
    width: 100%;
    height: 850px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(244, 244, 244, 0.15);
}

/* ============================
   LEAFLET THEME OVERRIDES
   ============================ */
.leaflet-control-attribution {
    background: rgba(16, 8, 41, 0.85) !important;
    color: #F4F4F4 !important;
}

.leaflet-control-attribution a {
    color: #F4F4F4 !important;
}

.leaflet-control-zoom a {
    background-color: rgba(16, 8, 41, 0.85) !important;
    color: #F4F4F4 !important;
    border-color: rgba(244, 244, 244, 0.15) !important;
}

.leaflet-control-zoom a:hover {
    background-color: rgba(69, 0, 173, 0.85) !important;
}

/* ============================
   WARD POLYGONS (Leaflet)
   ============================ */
.ward-polygon {
    cursor: pointer;
    transition: fill-opacity 0.25s ease;
}

@media (max-width: 600px) {
    #ward-leaflet-map {
        height: 420px;
    }
}

/* ============================
   TOOLTIP
   ============================ */
.tooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-9999px, -9999px);
    pointer-events: none;
    background-color: rgba(26, 15, 56, 0.95);
    border: 1px solid rgba(244, 244, 244, 0.15);
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 150px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tooltip.visible {
    opacity: 1;
}

.tooltip h2 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    color: #F4F4F4;
}

.tooltip p {
    margin: 0;
    font-size: 1rem;
    color: #C9A9FF;
}

#title{
    text-align: center;
    margin: auto;
    font-size: 50px;
}

/* MOBILE */
@media (max-width: 700px) {
    .bio-page {
        flex-direction: column;
        margin-top: 90px;
    }

    .bio-left {
        width: 100%;
    }

    .bio-headshot {
        height: 320px;
    }

    .bio-name,
    .bio-title,
    .bio-quote,
    .bio-paragraph {
        text-align: center;
    }

    .bio-quote {
        border-left: none;
        border-top: 3px solid #6B1CE3;
        padding-left: 0;
        padding-top: 16px
    }
}



@media (max-width: 600px) {
    h2 {
        font-size: 32px;
    }

    .tooltip {
        padding: 10px 16px;
        min-width: 120px;
    }

    .tooltip h2 {
        font-size: 1.15rem;
    }
}

/* ============================
   GLOBAL MOBILE RESPONSIVENESS
   ============================ */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    h1 {
        font-size: 38px;
        padding: 16px;
        margin: 24px auto;
    }

    .logoimg {
        max-width: 110px !important;
    }

    .openingvid {
        max-width: 100%;
    }

    .marquee-section {
        width: 92%;
        padding: 16px 12px 24px 12px;
    }

    .themes,
    .about-page,
    .theme-page {
        width: 92%;
    }

    .theme-cards,
    .team-grid {
        gap: 16px;
    }

    .theme-card,
    .team-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .theme-nav {
        gap: 10px;
    }

    .theme-nav-link {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .back-home {
        top: 16px;
        right: 16px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .bio-headshot {
        height: 260px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .card {
        width: 28vw;
        height: 36vw;
    }

    .marquee-track {
        gap: 12px;
    }

    .footer {
        font-size: 13px;
        padding: 8px;
    }
}