/* =====================================================
   TACTY STUDIO - Main Stylesheet
   Black & White Aesthetic
   ===================================================== */

/* CSS Variables */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #b3b3b3;
    --color-gray-500: #949494;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;

    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-max: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gray-700) 15%,
        var(--color-white) 50%,
        var(--color-gray-700) 85%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: lineSlide 15s linear infinite;
}

@keyframes lineSlide {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.particles-canvas {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.hero-logo {
    width: min(400px, 80vw);
    height: auto;
    margin: 0 auto 1.5rem auto;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gray-300);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-white);
}

/* =====================================================
   GAMES SHOWCASE - FULLSCREEN ALTERNATING
   ===================================================== */
.games-showcase {
    background: var(--color-black);
}

.game-showcase-item {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    scroll-snap-align: start;
}

.game-showcase-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.game-showcase-video,
.game-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.game-showcase-video {
    position: absolute;
    inset: 0;
}

.game-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: background var(--transition-slow);
}

/* Reverse gradient for right-aligned content */
.game-showcase-item:nth-child(even) .game-showcase-overlay {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.game-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    padding: 4rem;
}

.game-showcase-content.content-left {
    margin-left: 8%;
}

.game-showcase-content.content-right {
    margin-left: auto;
    margin-right: 8%;
    text-align: right;
}

.game-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

.game-showcase-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.game-showcase-tagline {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-300);
    margin-bottom: 1.5rem;
}

.game-showcase-description {
    font-size: 1rem;
    color: var(--color-gray-400);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.game-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.game-showcase-content.content-right .game-showcase-tags {
    justify-content: flex-end;
}

/* Parallax effect on scroll */
.game-showcase-item .game-showcase-img {
    transform: scale(1.1);
    transition: transform 0.8s ease-out;
}

.game-showcase-item:hover .game-showcase-img {
    transform: scale(1.15);
}

/* =====================================================
   LEGACY GAME CARDS (for reference/fallback)
   ===================================================== */
.game-card {
    background: var(--color-gray-900);
    border: 1px solid var(--color-gray-800);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gray-600);
}

.game-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.game-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-video {
    opacity: 1;
}

.game-card:hover .game-cover {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 50%
    );
}

.game-card-content {
    padding: 2rem;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.game-description {
    color: var(--color-gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-700);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-gray-200);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* =====================================================
   ABOUT SECTION - KEY STATS
   ===================================================== */
.about {
    min-height: 100vh;
    background: var(--color-gray-900);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.6fr;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: var(--color-gray-700);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stat-item .stat-number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    display: inline;
}

.stat-item .stat-suffix {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-gray-400);
    margin-left: 0.5rem;
    display: inline;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-top: 1rem;
}

.stat-item.special .stat-number {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(4rem, 10vw, 8rem) !important;
}

.stat-item.special .stat-number-wrapper {
    max-width: none;
}

.stat-item.special .stat-label {
    margin-top: -1rem;
}

.about-tagline {
    margin-top: 4rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    min-height: 100vh;
    padding: 4rem 0 2rem;
    background: var(--color-black);
    text-align: center;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-inline {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.6;
}

.footer-inline .footer-logo {
    height: 24px;
    width: auto;
}

.footer-inline .footer-text {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.footer-legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.footer-legal a {
    font-size: 0.7rem;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-legal .separator {
    font-size: 0.7rem;
    color: var(--color-gray-700);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-gray-900);
    border-top: 1px solid var(--color-gray-800);
    padding: 1.25rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
}

.contact-intro {
    color: var(--color-gray-400);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--color-gray-900);
    border: 1px solid var(--color-gray-800);
    border-radius: 4px;
    transition: all var(--transition-base);
    min-width: 120px;
}

.social-link:hover {
    background: var(--color-gray-800);
    border-color: var(--color-gray-600);
    transform: translateY(-4px);
}

.social-link svg {
    width: 32px;
    height: 32px;
}

.social-link span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 3rem 0;
    background: var(--color-gray-900);
    border-top: 1px solid var(--color-gray-800);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    .nav-toggle {
        display: flex;
    }

    /* Games Showcase Mobile */
    .game-showcase-item {
        min-height: 100vh;
    }

    .game-showcase-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.2) 100%
        ) !important;
    }

    .game-showcase-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem;
        max-width: 100%;
    }

    .game-showcase-content.content-left,
    .game-showcase-content.content-right {
        margin: 0;
        text-align: left;
    }

    .game-showcase-content.content-right .game-showcase-tags {
        justify-content: flex-start;
    }

    .game-showcase-title {
        font-size: 2rem;
    }

    .game-showcase-tagline {
        font-size: 0.875rem;
    }

    .game-showcase-description {
        font-size: 0.875rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* About Stats Mobile */
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 2rem 1rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item .stat-number {
        font-size: 2.5rem;
    }

    .stat-item .stat-suffix {
        font-size: 1.25rem;
    }

    .about-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        margin-top: 2rem;
    }

    .contact {
        padding: 5rem 0;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }
}

/* =====================================================
   ANIMATIONS & UTILITIES
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Selection */
::selection {
    background: var(--color-white);
    color: var(--color-black);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-600);
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
