/* ==========================================================================
   The Right Track — Cartoon / Neo-Brutalism Design System
   ========================================================================== */
:root {
    --bg: #f5eedb;
    /* Warm light tan/beige */
    --bg-card: #ffffff;
    --ink: #1d2d44;
    /* Dark navy ink for all outlines */

    --red: #ff4d4d;
    --red-hover: #ff7676;
    --blue: #3b82f6;
    --blue-hover: #60a5fa;
    --tan: #ead5c3;
    --tan-light: #f5ece3;

    --text: #1d2d44;
    --muted: #576d8c;

    --font-head: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --border-thick: 1px solid rgba(0, 0, 0, 0.05);
    --border-thin: 1px solid rgba(0, 0, 0, 0.05);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #ffffff 0%, #f5eedb 40%, #e3d3b3 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
}

.highlight-red {
    color: var(--red);
}

.highlight-blue {
    color: var(--blue);
}

.highlight-red-text {
    color: var(--red);
    font-weight: 800;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.section-container {
    width: min(90%, 1160px);
    margin-inline: auto;
    padding-block: 90px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.align-center {
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.section-line {
    width: 64px;
    height: 7px;
    background: var(--red);
    border: var(--border-thin);
    border-radius: 4px;
    margin: 12px auto 0;
    transform: rotate(-1deg);
}

.section-header:not(.align-center) .section-line {
    margin-left: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--r-sm);
    border: var(--border-thick);
    cursor: pointer;
    transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--tan);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--tan-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #09325d;
}

.nav-container {
    width: min(96%, 1800px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s var(--ease-out);
}

.nav-link:hover {
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    border-bottom: 2px solid #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

.bar {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.2s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    overflow: hidden;
    padding-top: 60px;
    /* Space for header */
}

.hero-container {
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 96%;
    max-width: 1800px;
    margin-inline: auto;
    padding-block: 40px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #09325d;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border-bottom: 6px solid var(--red);
    text-align: left;
}

.hero-team-img {
    border: 6px solid #CC0000;
    border-radius: 12px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 60vh;
    object-fit: cover;
    height: auto;
    margin-bottom: 20px;
}

.hero-text {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
    color: #09325d;
    margin-bottom: 24px;
    text-align: left;
}

.inertial-text {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: bolder;
    line-height: 1.5;
    color: var(--red);
    margin-bottom: 24px;
    font-style: italic;
    text-align: left;
}

.btn-blue {
    background: #0056b3;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    border: none;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-blue:hover {
    background: #004494;
    transform: translateY(-2px);
}

.hero-right {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scroll-indicator {
    display: none;
}

/* ==========================================================================
   Game Showcase Section
   ========================================================================== */
.game-section {
    background: #d9e0eb;
    min-height: 100vh;
}

.game-showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Carousel */
.carousel {
    border: var(--border-thick);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink);
    position: relative;
}

.carousel-inner {
    display: flex;
    transition: transform 0.4s var(--ease-out);
    width: 300%;
}

.carousel-item {
    width: 33.333%;
    position: relative;
    aspect-ratio: 16/10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: var(--border-thin);
    border-radius: var(--r-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}

.carousel-caption h3 {
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 3px;
}

.carousel-caption p {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: var(--border-thin);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all 0.15s;
}

.carousel-btn:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: var(--shadow-sm);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-indicators {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    gap: 6px;
    z-index: 11;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: all 0.2s;
}

.indicator.active {
    background: var(--red);
    width: 22px;
    border-radius: 5px;
}

/* Game info panel */
.game-info-wrapper {
    display: flex;
    flex-direction: column;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.game-tag-pill {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
    background: var(--tan);
    color: var(--ink);
    border: var(--border-thin);
    box-shadow: var(--shadow-sm);
}

.game-headline {
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.game-body-text {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

.game-specs {
    background: var(--bg-card);
    border: var(--border-thick);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.spec-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.spec-value {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}

.game-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg-card);
    border: var(--border-thin);
    border-radius: var(--r-sm);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--blue);
    border: var(--border-thin);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-desc h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.feature-desc p {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
}

/* ==========================================================================
   Team Section — Trading Cards
   ========================================================================== */
.team-section {
    background: white;
    border-top: var(--border-thick);
    padding: 0px;
}

.team-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    background: var(--bg-card);
    border: var(--border-thick);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s var(--ease-bounce);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s var(--ease-out);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-name,
.team-role,
.team-tidbit {
    padding: 0 18px;
}

.team-name {
    font-size: 1.3rem;
    margin-top: 16px;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.team-tidbit {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.team-connect-btn {
    margin: 0 18px 18px;
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 16px;
}


.card-content {
    padding: 22px;
}

.member-role {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--tan-light);
    border: var(--border-thin);
    border-radius: var(--r-sm);
    padding: 3px 10px;
    margin-bottom: 10px;
}

.member-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.member-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--bg-card);
    border: var(--border-thin);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
}

.social-link:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background: var(--bg);
    min-height: 90vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact-card {
    background: var(--bg-card);
    border: var(--border-thick);
    border-radius: var(--r-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s var(--ease-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--red);
    margin-bottom: 20px;
}

.contact-name {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.contact-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
}

.contact-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-link:hover {
    color: var(--red);
}

.contact-linkedin {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 18px;
    padding-top: 18px;
    background-color: #09325d;
    color: white;

}

.footer-container {
    width: min(90%, 1160px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 14px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4,
.footer-socials h4 {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--red);
    transform: translateX(4px);
    display: inline-block;
}

.footer-socials {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: var(--border-thin);
    border-radius: var(--r-sm);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 var(--ink);
    transition: all 0.15s;
}

.social-icons a:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 3px 5px 0 var(--ink);
}

.footer-bottom {
    border-top: 2px solid rgba(29, 45, 68, .15);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-grid .team-card:nth-child(2) {
    transition-delay: 0.1s;
}

.team-grid .team-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 110px 80px;
    }

    .hero-image-side {
        max-width: 520px;
        margin-inline: auto;
        width: 100%;
    }

    .game-showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 0.85rem;
    }

    .nav-logo-img {
        height: 10px;
        margin-right: 4px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 4%;
        right: 4%;
        background: var(--bg-card);
        border: var(--border-thick);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 24px;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        transition: all 0.25s var(--ease-bounce);
        z-index: 999;
    }

    .nav-menu .nav-link {
        color: var(--ink);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        border-bottom: 2px solid var(--red);
        color: var(--red);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 16px;
        padding-top: 20px;
    }

    .hero-text-side {
        padding: 28px 22px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .hero-text {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .inertial-text {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding-block: 60px;
    }

    .hero-container {
        padding-block: 30px 70px;
    }

    .game-specs {
        grid-template-columns: 1fr;
    }

    .carousel-caption {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* ==========================================================================
   Team Section
   ========================================================================== */


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    background: var(--bg);
    border: var(--border-thick);
    border-radius: var(--r-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.team-card:hover,
.team-card:focus {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.team-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: var(--border-thick);
    box-shadow: 4px 4px 0 var(--ink);
    background: #fff;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.team-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 15px;
}

.team-tidbit {
    font-size: 1rem;
    color: var(--text);
}

/* ==========================================================================
   Modal Overlay
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(29, 45, 68, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: var(--border-thick);
    border-radius: var(--r-lg);
    width: 90%;
    max-width: 800px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-bounce);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--red);
    color: #fff;
    border: var(--border-thick);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 var(--ink);
    transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: var(--red-hover);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.modal-img-container {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: var(--r-md);
    border: var(--border-thick);
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--ink);
    background: #fff;
}

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

.modal-info {
    flex-grow: 1;
}

.modal-info h3 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.modal-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 20px;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-line;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-img-container {
        width: 180px;
        height: 180px;
    }
}