/* ============================================================
   IRONFORGED STUDIOS — Main Stylesheet
   Design: Dark gaming aesthetic, cyan/purple neon accents
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    --bg-primary:    #07090f;
    --bg-secondary:  #0c1220;
    --bg-card:       #0f1825;
    --bg-card-hover: #131f30;
    --bg-input:      #0a1018;

    --accent-cyan:   #f97316;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-green:  #10b981;
    --accent-red:    #ef4444;

    --text-primary:  #e8edf5;
    --text-secondary:#94a3b8;
    --text-muted:    #475569;
    --text-on-accent:#000000;

    --border:        rgba(249, 115, 22, 0.12);
    --border-hover:  rgba(249, 115, 22, 0.40);
    --border-card:   rgba(255, 255, 255, 0.06);

    --glow-cyan:     0 0 30px rgba(249, 115, 22, 0.22);
    --glow-purple:   0 0 30px rgba(139, 92, 246, 0.25);
    --glow-orange:   0 0 30px rgba(249, 115, 22, 0.25);

    --font-display:  'Orbitron', 'Space Grotesk', sans-serif;
    --font-heading:  'Space Grotesk', sans-serif;
    --font-body:     'Inter', sans-serif;

    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow:   0 0 40px rgba(249, 115, 22, 0.14);

    --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1280px;
    --header-height: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.display-font { font-family: var(--font-display); letter-spacing: 0.04em; }

.section-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-cyan);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-title .highlight {
    color: var(--accent-cyan);
    position: relative;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
}

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

.section-header.centered {
    text-align: center;
}
.section-header.centered .section-label {
    justify-content: center;
}
.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--text-on-accent);
    border-color: var(--accent-cyan);
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}
.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--text-on-accent);
    box-shadow: var(--glow-cyan);
    text-decoration: none;
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: var(--border-card);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

.btn-purple {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}
.btn-purple:hover {
    background: transparent;
    color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    text-decoration: none;
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-display);
}
.badge-alpha   { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge-beta    { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.badge-released{ background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-dev     { background: rgba(0,212,255,0.10); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.25); }
.badge-cancelled{ background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-news    { background: rgba(0,212,255,0.10); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.2); }

/* === FORMS === */
.input-field {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius);
    padding: 13px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.input-field:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.10);
}
.input-field::placeholder { color: var(--text-muted); }
.input-sm { padding: 9px 14px; font-size: 0.87rem; border-radius: var(--radius-sm); }

textarea.input-field { resize: vertical; min-height: 140px; }

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-msg {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-top: 14px;
    display: none;
}
.form-msg.success { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.3); display: block; }
.form-msg.error   { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); display: block; }

/* === HEADER / NAV === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(7, 9, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img { height: 36px; width: auto; }
.logo-img-sm { height: 28px; width: auto; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}
.logo-accent { color: var(--accent-cyan); }
.nav-logo:hover { text-decoration: none; }
.nav-logo:hover .logo-text { color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav-link {
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.02em;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}
.nav-link.active { color: var(--accent-cyan); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 50%, rgba(0,212,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,92,246,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(249,115,22,0.04) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-logo-watermark {
    position: absolute;
    left: 65%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(360px, 52vw, 720px);
    z-index: 1;
    pointer-events: none;
    animation: logoFloat 10s ease-in-out infinite;
}
.hero-logo-watermark img {
    width: 100%;
    opacity: 0.42;
    filter: saturate(0.8) brightness(1.2);
    animation: logoPulse 10s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50%       { transform: translate(-50%, -53%); }
}
@keyframes logoPulse {
    0%, 100% { opacity: 0.42; filter: saturate(0.8) brightness(1.2); }
    50%       { opacity: 0.55; filter: saturate(1.0) brightness(1.4); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 24px 100px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent-cyan);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-title .line-accent {
    display: block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.65s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}
.hero-scroll svg { width: 18px; height: 18px; }

/* Hero with game background */
.hero-game {
    min-height: 80vh;
}
.hero-game .hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-game .hero-bg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7,9,15,0.95) 0%,
        rgba(7,9,15,0.75) 50%,
        rgba(7,9,15,0.3) 100%
    );
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-cyan), var(--shadow-card);
    transform: translateY(-4px);
}

/* Game card */
.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
}
.game-card:hover { text-decoration: none; color: var(--text-primary); }

.game-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.game-card:hover .game-card-thumb img { transform: scale(1.05); }

.game-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,9,15,0.95) 0%, rgba(7,9,15,0.5) 45%, rgba(7,9,15,0.1) 100%);
    opacity: 1;
    transition: opacity var(--transition);
}
.game-card:hover .game-card-overlay { opacity: 0.7; }

.game-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.game-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}
.game-card-genre {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.game-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* News card */
.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
}
.news-card:hover { text-decoration: none; color: var(--text-primary); }

.news-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.news-card:hover .news-card-thumb img { transform: scale(1.05); }

.news-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}
.news-card-thumb-placeholder svg { opacity: 0.15; width: 48px; height: 48px; }

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.news-card-cat { color: var(--accent-cyan); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.news-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition);
}
.news-card:hover .news-card-title { color: var(--accent-cyan); }
.news-card-excerpt {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.news-card-link svg { width: 14px; height: 14px; }
.news-card:hover .news-card-link { gap: 10px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Feature card */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent-cyan);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { font-weight: 600; margin-bottom: 8px; font-family: var(--font-heading); }
.feature-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* === STAT STRIP === */
.stats-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}
.stat-item + .stat-item {
    border-left: 1px solid var(--border-card);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === FEATURED GAME (homepage) === */
.featured-game {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    transition: border-color var(--transition);
}
.featured-game:hover { border-color: var(--border-hover); }

.featured-game-img {
    position: relative;
    overflow: hidden;
}
.featured-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.featured-game:hover .featured-game-img img { transform: scale(1.04); }

.featured-game-content {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-game-tag {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.featured-game-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    color: #fff;
}
.featured-game-tagline {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 20px;
}
.featured-game-desc {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 32px;
}
.featured-game-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* === SCREENSHOT GALLERY === */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
}
.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.screenshot-item:hover img { transform: scale(1.06); }
.screenshot-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,212,255,0.08);
    opacity: 0;
    transition: opacity var(--transition);
}
.screenshot-item:hover::after { opacity: 1; }

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 14px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav svg { width: 20px; height: 20px; }

/* === TEAM GRID === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}
.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}
.team-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid var(--border);
}
.team-photo-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(139,92,246,0.15));
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
}
.team-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--accent-cyan); margin-bottom: 6px; font-weight: 500; }
.team-dept { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.team-socials { display: flex; justify-content: center; gap: 10px; }
.team-socials a { color: var(--text-muted); transition: color var(--transition); }
.team-socials a:hover { color: var(--accent-cyan); }
.team-socials svg { width: 16px; height: 16px; }

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: start;
}
.contact-info-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.contact-info-text { color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--border-card);
}
.contact-detail:last-child { border-bottom: 1px solid var(--border-card); }
.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(0,212,255,0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-detail-value { color: var(--text-primary); font-size: 0.92rem; }

/* === NEWSLETTER CTA === */
.newsletter-cta {
    background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
}
.newsletter-cta h2 { margin-bottom: 12px; }
.newsletter-cta p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 32px; }
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-form .input-field { flex: 1; }
.newsletter-msg {
    margin-top: 12px;
    font-size: 0.87rem;
    min-height: 20px;
    color: var(--accent-green);
}

/* === PAGE HERO (sub pages) === */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(0,212,255,0.06) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .page-hero-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-card);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(139,92,246,0.06));
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.75;
    font-size: 0.97rem;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.value-item {
    padding: 20px;
    background: rgba(0,212,255,0.04);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: var(--radius);
}
.value-item h4 { font-size: 0.9rem; color: var(--accent-cyan); margin-bottom: 6px; font-family: var(--font-display); letter-spacing: 0.05em; }
.value-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* === DIVIDER === */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-card), transparent);
    margin: 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-card);
    padding-top: 72px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.8fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-decoration: none;
    margin-bottom: 16px;
}
.footer-logo:hover { color: #fff; text-decoration: none; }
.footer-tagline {
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.social-link:hover {
    background: rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.25);
    color: var(--accent-cyan);
    text-decoration: none;
}
.social-link svg { width: 15px; height: 15px; }

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-cyan); text-decoration: none; }

.footer-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.newsletter-form { display: flex; gap: 8px; }

.footer-bottom {
    border-top: 1px solid var(--border-card);
    padding: 22px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-contact-info a { color: var(--text-muted); }
.footer-contact-info a:hover { color: var(--accent-cyan); text-decoration: none; }

/* === LOGIN PAGE === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0,212,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 50%, rgba(139,92,246,0.06) 0%, transparent 55%),
        var(--bg-primary);
    padding: 100px 24px;
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
}
.login-logo {
    text-align: center;
    margin-bottom: 36px;
}
.login-logo img { height: 40px; margin: 0 auto 12px; }
.login-logo h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.login-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; text-align: center; }
.login-sub { text-align: center; color: var(--text-muted); font-size: 0.87rem; margin-bottom: 32px; }
.login-footer { text-align: center; margin-top: 20px; font-size: 0.83rem; color: var(--text-muted); }

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}
.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.87rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}
.page-btn:hover { border-color: var(--border-hover); color: var(--accent-cyan); text-decoration: none; }
.page-btn.active { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #000; font-weight: 700; }

/* === ALERTS === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-success { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.alert-error   { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.alert-info    { background: rgba(0,212,255,0.08); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.2); }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === UTILITY === */
.text-cyan   { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-orange { color: var(--accent-orange); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.gap-16  { gap: 16px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.separator { display: inline-block; width: 1px; height: 12px; background: var(--border-card); margin: 0 6px; vertical-align: middle; }

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0,212,255,0.2); }
    50%       { box-shadow: 0 0 24px rgba(0,212,255,0.5); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item + .stat-item { border-left: none; }
    .stat-item:nth-child(2n+1) { border-right: 1px solid var(--border-card); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img-wrap { max-height: 360px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .featured-game { grid-template-columns: 1fr; }
    .featured-game-img { max-height: 300px; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .screenshot-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .section { padding: 72px 0; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(7,9,15,0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-card);
        flex-direction: column;
        padding: 16px 24px;
        gap: 2px;
    }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .nav-toggle { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
    .newsletter-form { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .games-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .values-grid { grid-template-columns: 1fr; }
    .screenshot-gallery { grid-template-columns: 1fr 1fr; }
    .newsletter-cta { padding: 44px 28px; }
    .login-card { padding: 36px 28px; }
    .page-hero { padding: 130px 0 60px; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .screenshot-gallery { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none !important; }
}
