/* ============================================
   ICARUS INTERACTIVE — Gaming Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-deep: #07070f;
    --bg-primary: #0a0a1a;
    --bg-card: rgba(15, 15, 40, 0.6);
    --brand: #3333CC;
    --brand-light: #5555ee;
    --brand-glow: rgba(51, 51, 204, 0.35);
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --neon: #818cf8;
    --text-primary: #e8eaf6;
    --text-secondary: #94a3b8;
    --text-muted: #5a5e78;
    --border: rgba(99, 102, 241, 0.12);
    --border-glow: rgba(99, 102, 241, 0.3);
    --font-heading: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --container: 1100px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ───────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(7, 7, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo {
    height: 45px; border-radius: 8px;
    transition: var(--transition);
}
.logo:hover { transform: scale(1.05); filter: drop-shadow(0 0 12px var(--brand-glow)); }

.main-nav { display: flex; gap: 0.5rem; }
.nav-link {
    font-family: var(--font-heading); font-size: 0.72rem; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    padding: 0.5rem 1rem; border-radius: 6px;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--accent); transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
    font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.6rem;
    border-radius: 4px; text-decoration: none;
    color: var(--text-muted); letter-spacing: 1px;
    transition: var(--transition); border: 1px solid transparent;
}
.lang-btn:hover { color: var(--text-primary); border-color: var(--border); }
.lang-btn.active {
    color: var(--neon); background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span {
    width: 24px; height: 2px; background: var(--text-secondary);
    transition: var(--transition);
}

/* ── HERO ─────────────────────────────────── */
.hero {
    position: relative; padding: 10rem 0 4rem;
    text-align: center; overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, rgba(51, 51, 204, 0.12) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; }
.hero-logo {
    width: 220px; border-radius: 16px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 40px var(--brand-glow));
    animation: float 4s ease-in-out infinite;
}
.hero-tagline {
    font-family: var(--font-heading); font-size: 0.85rem;
    color: var(--text-secondary); letter-spacing: 3px;
    text-transform: uppercase;
}
.hero-particles {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── GAMES SECTION ────────────────────────── */
.games-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(51, 51, 204, 0.03) 50%, transparent 100%);
}
.section-title {
    font-family: var(--font-heading); font-size: 1.3rem;
    text-align: center; margin-bottom: 3rem;
    color: var(--neon); letter-spacing: 4px;
    text-transform: uppercase;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 1px;
    background: var(--accent);
    margin: 0.6rem auto 0;
    transition: width 0.4s ease;
}
.section-title:hover::after {
    width: 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.game-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);

}

.game-image-wrap {
    position: relative; overflow: hidden;
    aspect-ratio: 16/9;
}
.game-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.game-card:hover .game-image { transform: scale(1.08); }

.game-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(7, 7, 15, 0.95) 0%, rgba(7, 7, 15, 0.6) 60%, transparent 100%);
}
.game-title {
    font-family: var(--font-heading); font-size: 1rem;
    color: #fff; letter-spacing: 1.5px; text-transform: uppercase;

}
.game-desc {
    font-size: 0.82rem; color: var(--text-secondary);
    margin-top: 0.4rem; line-height: 1.4;
}

.game-platforms {
    display: flex; justify-content: center; gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(200, 210, 240, 0.12);
    border-top: 1px solid var(--border);
}
.platform-link {
    color: var(--text-secondary); transition: var(--transition);
    display: flex; align-items: center;
}
.platform-link img {
    width: 44px; height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    opacity: 0.85;
    transition: var(--transition);
}
.platform-link:hover img {
    opacity: 1;
}
.platform-link:hover {
    transform: scale(1.15);
}

/* ── CONTACT SECTION ──────────────────────── */
.contact-section {
    text-align: center; padding: 4rem 0 2rem;
}
.contact-email-link {
    font-family: var(--font-heading); font-size: 1rem;
    color: var(--neon); text-decoration: none;
    letter-spacing: 2px;
    padding: 0.8rem 2rem; border-radius: 8px;
    border: 1px solid var(--border);
    display: inline-block; margin-top: 1rem;
    transition: var(--transition);
}
.contact-email-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);

}

/* ── GAME CARD LINK ───────────────────────── */
.game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── GAME DETAIL ─────────────────────────── */
.game-detail {
    max-width: 900px;
    margin: 0 auto;
}
.game-detail-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.game-detail-cover img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* ── SLIDER ──────────────────────────────── */
.game-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.slider-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(10, 10, 30, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: #6366f1;
    transform: scale(1.2);
}
.game-detail-info {
    margin-bottom: 2rem;
}
.game-detail-platforms {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    margin-bottom: 1rem;
}

/* ── PAGES ────────────────────────────────── */
.page-section { padding: 8rem 0 4rem; }
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 2.5rem;
}
.page-title {
    font-family: var(--font-heading); font-size: 1.5rem;
    color: var(--neon); letter-spacing: 2px;
    margin-bottom: 1.5rem; text-transform: uppercase;
}
.page-body { color: var(--text-secondary); line-height: 1.8; }
.page-body h2 { color: var(--text-primary); margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.page-body p { margin-bottom: 1rem; }
.page-body a { color: var(--neon); }
.page-body ul, .page-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-body li { margin-bottom: 0.3rem; }

/* ── FOOTER ───────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    background: rgba(7, 7, 15, 0.95);
}
.footer-content {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo { height: 50px; border-radius: 8px; opacity: 0.7; }
.footer-contact h3 {
    font-family: var(--font-heading); font-size: 0.75rem;
    color: var(--text-muted); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 0.5rem;
}
.contact-email {
    color: var(--neon); text-decoration: none;
    font-size: 0.9rem; transition: var(--transition);
}
.contact-email:hover { color: #fff; }
.social-links { display: flex; gap: 1rem; margin-top: 0.75rem; }
.social-link {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.8rem; transition: var(--transition);
}
.social-link:hover { color: var(--neon); }
.footer-bottom {
    text-align: center; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ── COOKIE BAR ───────────────────────────── */
.cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(13, 13, 36, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-content {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
}
.cookie-content p { font-size: 0.85rem; color: var(--text-secondary); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie {
    padding: 0.5rem 1.25rem; border: none; border-radius: 8px;
    font-size: 0.82rem; cursor: pointer; font-family: inherit;
    transition: var(--transition);
}
.btn-cookie.accept {
    background: var(--accent); color: #fff;
}
.btn-cookie.accept:hover { background: var(--brand-light); }
.btn-cookie.decline {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-cookie.decline:hover { border-color: var(--text-muted); color: var(--text-secondary); }

/* ── ANIMATIONS ───────────────────────────── */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
    .site-header .container { height: 60px; }
    .logo { height: 35px; }
    .main-nav {
        display: none; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: rgba(7, 7, 15, 0.98); backdrop-filter: blur(20px);
        padding: 1rem; border-bottom: 1px solid var(--border);
    }
    .main-nav.open { display: flex; }
    .mobile-toggle { display: flex; }
    .hero { padding: 7rem 0 3rem; }
    .hero-logo { width: 150px; }
    .games-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .cookie-content { flex-direction: column; text-align: center; }
    .section-title { font-size: 1rem; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .lang-switcher { gap: 2px; }
    .lang-btn { padding: 0.25rem 0.4rem; font-size: 0.65rem; }
    .game-platforms { gap: 0.6rem; }
    .platform-link svg { width: 18px; height: 18px; }
}
