/* Reset and base styles */
:root {
    /* Primary red scale */
    --primary-100: #f0d6d2;
    --primary-300: #b96b60;
    --primary-500: #691a16; /* base */
    --primary-700: #3f0f0c;
    --primary-900: #1f0504;

    --primary: var(--primary-500);

    /* Secondary yellow scale */
    --secondary-100: #ffe7a6;
    --secondary-300: #ffc24d;
    --secondary-500: #eb9f14;

    --secondary: var(--secondary-500);

    /* === NEW: Dark Theme Variables === */
    --bg-dark: #0d0d0f;
    --bg-card: #141417;
    --bg-card-hover: #1a1a1f;

    /* Gold accent palette */
    --gold-100: #f9e8c9;
    --gold-300: #e8c97a;
    --gold-500: #c9a55c;          /* Primary gold */
    --gold-700: #9a7d3c;
    --gold-glow: rgba(201, 165, 92, 0.4);

    /* Text colors for dark theme */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Animation timing */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Card dimensions */
    --card-width-desktop: 280px;
    --card-width-tablet: 240px;
    --card-width-mobile: 85vw;
    --card-height-desktop: 360px;
    --card-aspect-ratio: 16/9;

    --black: #000000;
    --white: #FFFFFF;
}

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

@font-face {
    font-family: 'Quango';
    src: url('assets/fonts/quango.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary);
    color: var(--white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 1rem 2rem;
    z-index: 10000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Header */
header.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    height: 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    flex: 1;
}

.header-nav .logo {
    flex-shrink: 0;
    padding-left: 2rem;
}

.logo img {
    width: 160px;
    height: auto;
    min-height: 60px;
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    flex: 1;
}

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile navigation overlay */
.mobile-nav-overlay {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Mobile navigation menu */
.nav-links.active {
    transform: translateX(0);
}

.social-container {
    background: var(--black);
    width: 332px;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-content: center;
    gap: 1.5rem;
}

.social-links img,
.social-links svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    header.main-header {
        height: 80px;
    }

    .header-nav .logo {
        padding-left: 1rem;
    }

    .logo img {
        width: 120px;
    }

    /* Hamburger menu - positioned absolutely to ensure visibility */
    .hamburger-menu {
        display: flex;
        order: 3;
        position: absolute;
        right: 100px; /* Position between logo and where social was */
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 5rem 2rem 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .social-container {
        display: none;
    }

    main {
        margin-top: 80px;
    }

    /* Section title responsive sizing */
    .section-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.8rem;
    }

    /* Hero responsive sizing */
    .hero-logo .ninju-logo {
        width: min(90%, 500px);
        height: auto;
        max-width: 500px;
    }

    /* Team section - horizontal scroll on mobile */
    .team-roles {
        display: flex;
        justify-content: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .team-role {
        flex: 0 0 auto;
    }

    .team-card {
        border-radius: 12px;
    }

    .team-card-icon-box {
        width: 80px;
        height: 80px;
        border-radius: 8px;
    }

    .team-icon {
        width: 90%;
        height: 90%;
    }

    .team-card-name-box {
        padding: 0.8rem 1.25rem;
        margin-top: -4rem;
        width: 160px;
        min-height: 6.4rem;
        border-radius: 6px;
        align-items: flex-end;
    }

    .team-role-name {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }

    /* Description card - independent on mobile */
    .team-description-card {
        max-width: 100%;
        margin: 2rem 0.75rem 0;
        padding: 1.25rem 1.5rem;
        border-radius: 10px;
    }

    .team-role-title {
        font-size: 1.1rem;
    }

    .team-role-copy {
        font-size: 0.9rem;
    }

    /* Mobile carousel button positioning */
    .games-carousel .prev-btn {
        left: 10px;
    }

    .games-carousel .next-btn {
        right: 10px;
    }

    .games-carousel .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
}

.social-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary);
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}


/* Main Content */
main {
    margin-top: 100px;
}

/* Hero Section */
.hero.primary-bg {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: var(--primary);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(105, 26, 22, 0.92), var(--primary)),
        url('assets/hero-bg.svg');
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 6% 6%;
    background-position: center, center;
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    animation: hero-slash-in 0.4s cubic-bezier(0.3, 0.7, 0.4, 1.6) forwards;
}

@keyframes hero-slash-in {
    0% {
        opacity: 0;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
        transform: translateY(10px) skewX(-8deg);
    }
    60% {
        opacity: 1;
        transform: translateY(0) skewX(2deg);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 900px;
    height: 70vh;
}

.ninju-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: hero-slash-in 0.4s cubic-bezier(0.3, 0.7, 0.4, 1.6) forwards;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    color: var(--white);
    letter-spacing: 0.12em;
    text-transform: none;
    margin-top: 3rem;
    margin-bottom: 4rem;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: hero-slash-in 0.5s cubic-bezier(0.3, 0.7, 0.4, 1.4) forwards;
    animation-delay: 0.12s;
}


.tagline .text-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero-tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-family: 'Quango', 'Quantico', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vision Section */
.vision-container {
    background: var(--primary-700);
    position: relative;
}

.vision-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 66% 0);
}

.vision-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 4rem 2rem 3rem;
}

.vision-block .section-title {
    text-align: left;
}


.vision-block p {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-container.primary-bg {
    background: var(--primary);
    position: relative;
    padding: 6rem 0 6rem;
}

/* Separator after Team into Games - Sharp peak on right */
.team-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0 100%);
}

.team-container .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.team-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.team-roles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.team-role {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: transparent; /* No background color */
}

/* Golden icon box - full square, top element */
.team-card-icon-box {
    width: 100px;
    height: 100px;
    padding: 0;
    background: var(--secondary); /* Yellow box */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
    border-radius: 10px;
}

.team-icon {
    width: 90%; /* Icon covers 90% of yellow box */
    height: 90%;
    filter: brightness(0);
    transition: transform 0.3s ease;
}

/* Black name box - overlaps from below, aligned to bottom */
.team-card-name-box {
    padding: 1rem 1.5rem;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: end; /* Align to bottom */
    margin-top: -5rem; /* Significant overlap from below */
    width: 200px;
    min-height: 8rem;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-role-name {
    font-family: 'Quango', 'Quantico', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Golden icon box - full square, top element, IN FRONT */
.team-card-icon-box {
    width: 100px;
    height: 100px;
    padding: 0;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2; /* IN FRONT of name box */
    transition: background 0.3s ease;
    border-radius: 10px;
}

.team-icon {
    width: 90%; /* Icon covers 90% of yellow box */
    height: 90%;
    filter: brightness(0);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Black name box - overlaps from below */
.team-card-name-box {
    padding: 1rem 1.5rem;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align text to bottom */
    margin-top: -5rem;
    width: 200px;
    min-height: 8rem;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-role-name {
    font-family: 'Quango', 'Quantico', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Hover state - subtle */
.team-role:hover .team-card-icon-box {
    background: #ffd470;
}

.team-role:hover .team-icon {
    transform: scale(1.03);
    filter: brightness(0.1);
}

.team-role:hover .team-role-name {
    color: rgba(255, 255, 255, 0.8);
}

/* Active state */
.team-role.active .team-card-icon-box {
    background: var(--secondary);
}

.team-role.active .team-icon {
    transform: scale(1);
    filter: brightness(0);
}

.team-role.active .team-role-name {
    color: var(--white);
}

/* Connection line to description box */
.team-card-connection {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--secondary), rgba(235, 159, 20, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-role.active .team-card-connection {
    opacity: 1;
}

/* Description card - connected to role when active */
.team-description-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--black);
    border-top: 1px solid rgba(235, 159, 20, 0.2);
    border-radius: 10px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: none;
    min-height: 180px;
}

.team-role.active + .team-description-card {
    border-top-color: var(--secondary); /* Golden line when connected */
    border-top-width: 2px;
}

.team-role-title {
    font-family: 'Quango', 'Quantico', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
}

.team-role-copy {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Games Section */
.games-section {
    background: linear-gradient(to bottom, var(--primary) 0%, var(--black) 100%);
    position: relative;
    padding: 6rem 0 4rem;
}

/* Top separator - peak on right (polygon clip-path) */
.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 66% 0);
    z-index: 1;
}

/* Bottom separator - different polygon pattern */
.games-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--black);
    clip-path: polygon(0 0, 34% 100%, 100% 100%, 0 100%);
    z-index: 1;
}

/* Remove the grid pattern background */
.games-background {
    display: none;
}

.games-section .section-content {
    position: relative;
    z-index: 2;
}

.games-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* === Carousel Container === */
.games-carousel {
    position: relative;
    width: 100%;
}

.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2rem calc(50% - 160px); /* Center cards in viewport */
    margin: -2rem 0;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content; /* Ensure track expands for all cards */
    padding: 0 1rem; /* Minimal padding at edges */
}

/* === Game Card (Team Section Inspired) === */
.game-card {
    flex: 0 0 280px;
    width: 280px; /* Explicit width */
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: transparent;
    scroll-snap-align: center;
    transition: none;
}

/* Golden accent box (like team-card-icon-box) */
.game-card-image-box {
    width: 100%;
    height: 200px;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: none;
    border: none;
    border-radius: 12px;
}

/* Game tag positioned in image box */
.game-card-image-box .game-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: var(--secondary);
    border: none;
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    opacity: 1;
    transform: none;
    z-index: 3;
}

/* Game title inside image box overlay */
.game-image-title {
    font-family: 'Quango', 'Quantico', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    padding: 0 1rem;
    margin: 0;
    z-index: 2;
}

/* Black info box (like team-card-name-box) */
.game-card-info-box {
    width: 100%;
    min-height: 100px;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    transition: none;
}

/* Game title (removed from info box - now in image box) */
/*
.game-title {
    font-family: 'Quango', 'Quantico', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 0.75rem;
}
*/

/* Game description */
.game-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* === Hover Effects - Golden Details Only === */

/* Focus visible - simple indication */
.game-card:focus-visible {
    outline: 2px solid rgba(235, 159, 20, 0.5);
    outline-offset: 4px;
}

/* === Navigation Buttons === */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(201, 165, 92, 0.3);
    background: rgba(13, 13, 15, 0.8);
    color: var(--gold-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--gold-500);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--gold-glow);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 4px;
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

/* Hide arrows on very small screens */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn { left: 0.5rem; }
    .next-btn { right: 0.5rem; }
}

/* === Dot Indicators === */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold-500);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.dot:hover {
    background: rgba(201, 165, 92, 0.3);
}

.dot.active {
    background: var(--gold-500);
    box-shadow: 0 0 10px var(--gold-glow);
}

.dot:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 6px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .games-section {
        padding: 5rem 0;
    }
    
    .games-section .section-content {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .carousel-track {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .game-card {
        flex: 0 0 85vw;
        height: 340px;
    }
    
    .game-card-info-box {
        min-height: 100px;
        padding: 1rem 1.25rem;
    }

    .game-image-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    
    .game-description {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .game-card {
        flex: 0 0 240px;
        height: 340px;
    }
    
    .carousel-track {
        padding: 0 2rem;
        gap: 1.25rem;
    }

    .game-image-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .game-description {
        font-size: 0.8rem;
    }
}

/* Contact Section */
.contact-container {
    background: var(--black);
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-container a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
}

.contact-container a:hover {
    text-decoration: underline;
}

.contact-container .social-links {
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: #000000 !important;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.site-footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer .footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.site-footer .footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.site-footer .footer-social-links a:hover {
    opacity: 1;
}

.site-footer .footer-social-links img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.site-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    border: 2px solid var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.1);
}

.scroll-to-top:hover img {
    filter: brightness(0);
}



@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }

    .games-carousel {
        padding: 2rem 0;
    }

    .carousel-container {
        padding: 1rem 0.5rem;
        margin: -0.5rem;
    }

    .game-card {
        flex: 0 0 150px;
        margin: 0 0.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .games-carousel .carousel-btn {
        display: flex;
    }

    .icon-square {
        width: 100px;
        height: 100px;
    }

    .ninja-icon {
        width: 60px;
        height: 60px;
    }

    /* Adjust hamburger for very small screens */
    .hamburger-menu {
        right: 80px;
    }

    /* Team section adjustments for very small screens */
    .team-roles {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .team-card-icon-box {
        width: 65px;
        height: 65px;
        border-radius: 6px;
    }

    .team-icon {
        width: 90%;
        height: 90%;
    }

    .team-card-name-box {
        padding: 0.6rem 1rem;
        margin-top: -3.2rem;
        width: 130px;
        min-height: 5.2rem;
        border-radius: 5px;
        align-items: flex-end;
    }

    .team-role-name {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .team-description-card {
        margin: 2rem 0.5rem 0;
        padding: 1rem 1.25rem;
        border-radius: 8px;
    }

    .team-role-title {
        font-size: 0.95rem;
    }

    .team-role-copy {
        font-size: 0.85rem;
    }
}
