/* =============================================
   VARIABLES & RESET
============================================= */
:root {
    --bg:       #050510;
    --bg2:      #080818;
    --surface:  rgba(255, 255, 255, 0.04);
    --surface-h:rgba(255, 255, 255, 0.08);
    --border:   rgba(255, 255, 255, 0.08);
    --cyan:     #00d4ff;
    --purple:   #7c3aed;
    --text:     #e2e8f0;
    --muted:    #94a3b8;
    --radius:   16px;
    --nav-h:    68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   LAYOUT UTILITIES
============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg2);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
    padding: 5px 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.05);
}

.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--cyan);
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 38px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.18;
}

.hero-glow-left {
    background: var(--cyan);
    top: -100px;
    left: -200px;
}

.hero-glow-right {
    background: var(--purple);
    bottom: -100px;
    right: -200px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    max-width: 820px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
    padding: 5px 16px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.07);
}

.hero h1 {
    font-size: clamp(0.85rem, 1.6vw, 1.15rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    white-space: nowrap;
}

.scroll-cta {
    position: absolute;
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.scroll-cta:hover {
    color: var(--cyan);
}

.scroll-cta-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scroll-cta-arrow {
    width: 22px;
    height: 22px;
    animation: chevron-bounce 1.8s ease-in-out infinite;
}

@keyframes chevron-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 36px rgba(0, 212, 255, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--surface-h);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn-card {
    background: rgba(0, 212, 255, 0.07);
    color: var(--cyan);
    border-color: rgba(0, 212, 255, 0.18);
    font-size: 0.82rem;
    padding: 10px 18px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-card:hover {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.38);
    transform: translateY(-2px);
}

/* =============================================
   GAMES GRID
============================================= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 52px;
}

.game-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.07);
}

/* Image section */
.game-img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
    flex-shrink: 0;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.game-card:hover .game-img {
    transform: scale(1.06);
}

.game-img-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    transition: background 0.2s;
}

.game-img-link:hover {
    background: rgba(0, 212, 255, 0.06);
}

.game-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 5, 16, 0.95) 0%,
        rgba(5, 5, 16, 0.4) 50%,
        transparent 100%
    );
}

.game-img-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
}

.game-img-meta h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-top: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.game-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

/* Sale badge top-right of image */
.sale-badge-float {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 4px 11px;
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(239,68,68,0.4);
}

/* Card body */
.game-body {
    padding: 16px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.rating-val small {
    opacity: 0.7;
}

.btn-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.btn-meta:hover {
    background: #0f65d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
}

.meta-cta {
    text-align: center;
}

@media (max-width: 860px) {
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =============================================
   ABOUT
============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.75;
}


.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tech-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.tech-card:hover {
    background: var(--surface-h);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.tech-card span {
    font-size: 1.8rem;
    display: block;
    margin: 0 auto 10px;
}

.tech-card img {
    display: block;
    margin: 0 auto 10px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tech-card p {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}

/* =============================================
   CONTACT
============================================= */
.contact-box {
    text-align: center;
    padding: 40px 0;
}

.contact-inline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.contact-email-addr {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: color 0.2s;
}

.contact-email-addr:hover {
    color: var(--cyan);
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: var(--cyan);
    border-color: rgba(0, 212, 255, 0.3);
}

.copy-btn.copied {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
}

.check-icon { display: none; }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }

/* =============================================
   FOOTER
============================================= */
.footer {
    position: sticky;
    bottom: 0;
    z-index: 900;
    background: rgba(8, 8, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 13px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer p {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-icon-link {
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.footer-icon {
    width: 22px;
    height: 22px;
}

.footer-social-icon {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 5px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.footer-icon-link:hover .footer-social-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-meta-icon {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.footer-icon-link:hover .footer-meta-icon {
    opacity: 1;
}

.footer-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted) !important;
    font-size: 0.82rem !important;
    transition: border-color 0.2s, background 0.2s, color 0.2s !important;
    animation: email-pulse 3.5s ease-in-out infinite;
}

.footer-email-btn:hover {
    border-color: rgba(0, 212, 255, 0.3) !important;
    background: var(--surface-h) !important;
    color: var(--cyan) !important;
    animation: none;
}

.email-letter-anim {
    animation: letter-slide 2.2s ease-in-out infinite;
}

@keyframes email-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); border-color: var(--border); }
    50%       { box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.07); border-color: rgba(0, 212, 255, 0.2); }
}

@keyframes letter-slide {
    0%, 20%   { transform: translateY(0); }
    50%, 70%  { transform: translateY(-6px); }
    100%      { transform: translateY(0); }
}

/* =============================================
   NAV CTA PILL
============================================= */
.nav-cta {
    color: var(--cyan) !important;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 100px;
    padding: 5px 16px !important;
    background: rgba(0, 212, 255, 0.07);
    transition: background 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: rgba(0, 212, 255, 0.55) !important;
    color: var(--cyan) !important;
}

/* =============================================
   SWOTGEN IFRAME
============================================= */
#validate {
    padding-bottom: 0;
}

.swotgen-wrap {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.06);
    background: var(--surface);
}

.swotgen-wrap iframe {
    display: block;
    width: 100%;
    height: 780px;
    border: none;
}

@media (max-width: 720px) {
    .swotgen-wrap iframe {
        height: 900px;
    }
}

/* =============================================
   SCROLL ANIMATIONS
============================================= */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: none;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(5, 5, 16, 0.97);
        flex-direction: column;
        align-items: center;
        padding: 28px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(20px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 72px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        white-space: normal;
        font-size: 0.9rem;
    }
}
