/* ========================================
   GAME STUDIO LANDING PAGE STYLES
   Modern, Professional UI/UX Design
   ======================================== */

/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
    /* Color Palette - Original Radical Graphics Brand */
    --primary: #e21919;
    --primary-dark: #c41515;
    --primary-light: #ff3333;
    --secondary: #ff6b6b;
    --accent: #ffa500;
    --success: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e21919 0%, #ff3333 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #e21919 100%);
    --gradient-accent: linear-gradient(135deg, #ffa500 0%, #ff6b6b 100%);
    --gradient-dark: linear-gradient(135deg, #070707 0%, #111 50%, #1a1a1a 100%);

    /* Neutrals */
    --dark: #111;
    --dark-secondary: #0a0a0a;
    --dark-tertiary: #1a1a1a;
    --gray-dark: #474747;
    --gray: #999;
    --gray-light: #e5e5e5;
    --white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography - Gaming Bold */
    --font-primary: 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Russo One', sans-serif;

    /* Transitions - Optimized */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.4s ease-out;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keyboard Navigation Focus Styles */
body.keyboard-nav *:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-dark);
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    /* background: radial-gradient(circle, rgba(226, 25, 25, 0.2) 0%, transparent 70%); */
    background: radial-gradient(circle, rgba(25, 52, 226, 0.2) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 80%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 70%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 40%;
    animation-delay: 12s;
}

.particle:nth-child(6) {
    width: 160px;
    height: 160px;
    top: 20%;
    left: 50%;
    animation-delay: 15s;
}

.particle:nth-child(7) {
    width: 280px;
    height: 280px;
    top: 70%;
    left: 60%;
    animation-delay: 18s;
}

.particle:nth-child(8) {
    width: 190px;
    height: 190px;
    top: 40%;
    left: 15%;
    animation-delay: 21s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: rgba(10, 10, 15, 0);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    height: 65px;
    width: auto;
    filter: brightness(1.2);
    transition: filter var(--transition-base);
}

.logo-img:hover {
    filter: brightness(1.5) drop-shadow(0 0 20px rgba(226, 25, 25, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    color: var(--gray-light);
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Rotating Text Animations */
.rotating-text {
    display: inline-block;
    position: relative;
}

/* Safari-compatible: explicit classes per animation (CSS vars in animation-name are not supported in Safari) */
.rotating-text.anim-fadeOut     { animation: fadeOut     0.5s ease forwards; }
.rotating-text.anim-fadeIn      { animation: fadeIn      0.5s ease forwards; }
.rotating-text.anim-slideUpOut  { animation: slideUpOut  0.5s ease forwards; }
.rotating-text.anim-slideUpIn   { animation: slideUpIn   0.5s ease forwards; }
.rotating-text.anim-slideDownOut { animation: slideDownOut 0.5s ease forwards; }
.rotating-text.anim-slideDownIn { animation: slideDownIn 0.5s ease forwards; }
.rotating-text.anim-zoomOut     { animation: zoomOut     0.5s ease forwards; }
.rotating-text.anim-zoomIn      { animation: zoomIn      0.5s ease forwards; }
.rotating-text.anim-rotateOut   { animation: rotateOut   0.5s ease forwards; }
.rotating-text.anim-rotateIn    { animation: rotateIn    0.5s ease forwards; }

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpOut {
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownOut {
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(1.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateOut {
    to {
        opacity: 0;
        transform: rotateX(90deg);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateX(-90deg);
    }

    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(226, 25, 25, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(226, 25, 25, 0.6);
}

.btn-primary:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    animation: fadeInRight 1s ease 0.4s backwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
}

.hero-image-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image-glow {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 1s ease 1.5s backwards;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.arrow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arrow span {
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    display: block;
    animation: arrowMove 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes arrowMove {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    max-width: 100%;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--dark-secondary);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(226, 25, 25, 0.5);
    transform: translateY(-3px);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    padding: 12px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--gray-light);
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.parallax-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 0.1s ease-out;
    will-change: transform, opacity;
}

.parallax-image.active {
    opacity: 1;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(226, 25, 25, 0.5);
    transform: translateY(-3px);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    padding: 15px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games {
    padding: var(--spacing-xl) 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.view-all-projects {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Game Card - Outer Wrapper (No 3D perspective needed) */
.game-card {
    margin: 0;
    cursor: pointer;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-card:hover .game-info p,
.game-card:hover .game-description,
.game-card:hover .game-tags,
.game-card:hover .game-link {
    opacity: 1;
}

.game-card:hover .game-info,
.game-card:hover .game-info p,
.game-card:hover .game-description,
.game-card:hover .game-tags,
.game-card:hover .game-link {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.game-card:hover .game-info::after {
    transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover .game-image img {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.15);
}

.game-card:hover .game-image {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        rgba(226, 25, 25, 0.3) 0 0 40px 5px,
        rgba(226, 25, 25, 0.5) 0 0 0 1px,
        rgba(0, 0, 0, 0.66) 0 30px 60px 0,
        inset #333 0 0 0 5px,
        inset rgba(226, 25, 25, 0.5) 0 0 0 6px;
}

/* Inner Card - No transforms applied */
.game-image {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #111;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px, inset rgba(226, 25, 25, 0.3) 0 0 0 6px;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

/* Background Image with Parallax */
.game-image img {
    opacity: 0.5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none;
}

/* Overlay Container */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

/* Game Info - Content Layer (like .cardhoverparallax-info) */
.game-info {
    padding: 2rem;
    position: absolute;
    bottom: 0;
    color: #fff;
    transform: translateY(40%);
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.game-info p,
.game-description,
.game-tags,
.game-link {
    opacity: 0;
    text-shadow: black 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.game-info * {
    position: relative;
    z-index: 1;
}

.game-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    background-blend-mode: overlay;
    opacity: 0;
    transform: translateY(100%);
    transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.game-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.game-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.game-description {
    color: var(--gray-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.game-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 600;
    transition: gap var(--transition-fast), color var(--transition-fast);
    pointer-events: none;
}

.game-card:hover .game-link {
    gap: 0.75rem;
    color: var(--white);
}

.game-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   STUDIO EXPERTISE SECTION
   ======================================== */
.studio-expertise {
    background: var(--dark-secondary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(226, 25, 25, 0.5);
    transform: translateY(-5px);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base);
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
}

.expertise-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.expertise-card p {
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.expertise-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.expertise-tags span {
    padding: 0.4rem 0.8rem;
    background: rgba(226, 25, 25, 0.1);
    border: 1px solid rgba(226, 25, 25, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.expertise-card:hover .expertise-tags span {
    background: rgba(226, 25, 25, 0.2);
    border-color: rgba(226, 25, 25, 0.5);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--dark-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-greeting {
    color: var(--gray-light);
    line-height: 1.8;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-image {
    position: relative;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem 3rem;
    margin-top: 10rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    /* height: 60px; */
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: var(--gray);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--gray);
    transition: color var(--transition-fast);
    cursor: pointer;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-column a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    color: var(--gray-light);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-social a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: left var(--transition-base);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 3rem;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-text {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .contact-title {
        font-size: 2rem;
    }
}

/* ========================================
   AWARDS SECTION
   ======================================== */
.awards {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.awards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.awards-showcase {
    text-align: center;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
}

.awards-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.awards-image:hover {
    transform: scale(1.02);
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners {
    padding: var(--spacing-xl) 0;
    background: var(--dark-secondary);
    overflow: hidden;
    position: relative;
}

.partners::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.partners-carousel {
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: var(--spacing-sm);
    animation: scroll-partners 60s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    flex-shrink: 0;
    width: 200px;
    height: 133px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.partner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: filter var(--transition-base);
}

.partner-item:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Responsive Awards & Partners */
@media (max-width: 768px) {
    .partner-item {
        width: 150px;
        height: 100px;
    }

    .partners-track {
        gap: var(--spacing-xs);
    }
}

@media (max-width: 640px) {
    .awards-image {
        border-radius: var(--radius-sm);
    }
}