@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #050510;
    --bg-darker: #02020a;
    --text-color: #e0e0e0;
    --text-muted: #9494a8;
    --primary-color: #7000ff;
    --secondary-color: #00d4ff;
    --accent-color: #ff007a;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition-slow: 0.5s ease;
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Backgrounds */
.gradient-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(112, 0, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(0, 212, 255, 0.08) 0%, transparent 45%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnPjxmaWx0ZXIgaWQ9J25vaXNlJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC42NScgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNub2lzZSknIG9wYWNpdHk9JzAuMDQnLz48L3N2Zz4=');
    opacity: 0.3;
    /* Biraz azalttım ki animasyon net görünsün */
    z-index: -1;
    pointer-events: none;
}

#ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Gradient'in arkasında değil, önünde ama noise'un arkasında */
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(120deg, var(--secondary-color), #fff, var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.section-subtitle {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.4s ease;
}

.glass-header.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Old icon style removed or kept as fallback */
.box-icon {
    width: 40px;
    height: 40px;
    background: rgba(112, 0, 255, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:not(.btn-primary-nav):hover::after {
    width: 100%;
}

.btn-primary-nav {
    background: var(--primary-color);
    padding: 10px 24px;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.25);
}

.btn-primary-nav:hover {
    background: #5e00d6;
    transform: translateY(-2px);
}

.btn-primary.small:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

#snake-game {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 140px 10% 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 20px 0 30px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8f00ff);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(112, 0, 255, 0.4);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-secondary i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-secondary:hover i {
    background: var(--secondary-color);
    color: #000;
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-indicators span {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos {
    display: flex;
    gap: 25px;
    font-size: 1.5rem;
    color: #666;
}

.logos i {
    transition: color 0.3s;
}

.logos i:hover {
    color: #fff;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.ai-orb-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.ai-orb {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-core {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(112, 0, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.ring-1 {
    width: 240px;
    height: 240px;
    border-color: rgba(0, 212, 255, 0.3);
    animation: rot 20s linear infinite;
}

.ring-2 {
    width: 340px;
    height: 340px;
    border-color: rgba(112, 0, 255, 0.2);
    animation: rot-rev 25s linear infinite;
}

.ring-3 {
    width: 440px;
    height: 440px;
    border-color: rgba(255, 0, 122, 0.1);
    animation: rot 30s linear infinite;
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-card i {
    color: var(--secondary-color);
}

.c1 {
    top: 20%;
    left: -20px;
    animation: float 5s ease-in-out infinite 0.5s;
}

.c2 {
    bottom: 20%;
    right: -20px;
    animation: float 5s ease-in-out infinite 1s;
}

/* Animations Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes rot {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rot-rev {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Section Styles */
.timeline-section,
.features-section,
.dictionary-section,
.newsletter-section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 3px;
}

/* Cards & Grid */
.cards-grid,
.dict-grid {
    display: grid;
    gap: 30px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.dict-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.glass-card,
.dict-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition-fast);
}

.glass-card:hover,
.dict-item:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    text-transform: uppercase;
}

.card-badge.future {
    background: rgba(255, 0, 122, 0.1);
    color: #ff007a;
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 30px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(to right, rgba(112, 0, 255, 0.05), transparent);
    border-radius: 30px;
    text-align: center;
    margin: 50px 10%;
    padding: 60px;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.input-group {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 5px 20px;
}

.input-group i {
    color: var(--text-muted);
    margin-right: 10px;
}

.input-group input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    height: 40px;
}

.newsletter-form button {
    padding: 12px 25px;
    font-size: 0.9rem;
}

/* Footer */
.glass-footer {
    background: #020205;
    border-top: 1px solid var(--glass-border);
    padding: 80px 10% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.social-links a {
    color: inherit;
}

.social-links a:hover {
    color: #fff;
}

/* Reveal Animations Classes */
.reveal,
.fade-in-up,
.fade-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active,
.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive & Mobile */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 110px;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
    }

    .ai-orb-container {
        width: 300px;
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* AI Games Section */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .game-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        /* Reduced padding */
        min-height: auto;
        /* Removed fixed height */
    }

    .game-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .game-board {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin: 10px 0;
        width: 100%;
        max-width: 260px;
        /* Smaller board */
    }

    .memory-card {
        height: 60px;
        /* Smaller cards */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        /* Smaller icon */
        color: transparent;
        transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
        position: relative;
        user-select: none;
    }

    .memory-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .memory-card.flipped {
        background: var(--secondary-color);
        color: #050510;
        transform: rotateY(0);
        box-shadow: 0 0 10px var(--secondary-color);
        animation: flipIn 0.3s;
    }

    .memory-card.matched {
        background: var(--primary-color);
        color: #fff;
        cursor: default;
        box-shadow: 0 0 10px var(--primary-color);
        opacity: 0.7;
    }

    @keyframes flipIn {
        0% {
            transform: scale(0.8);
            opacity: 0.5;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .reflex-area {
        width: 100%;
        max-width: 260px;
        height: 120px;
        /* Much smaller height */
        background: rgba(255, 65, 54, 0.8);
        border-radius: 12px;
        margin: 15px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s;
        user-select: none;
        letter-spacing: 1px;
    }

    .reflex-area.wait {
        background: #FF4136;
        /* Red: Wait */
        box-shadow: 0 0 20px rgba(255, 65, 54, 0.4);
    }

    .reflex-area.go {
        background: #2ECC40;
        /* Green: Go! */
        box-shadow: 0 0 30px rgba(46, 204, 64, 0.6);
        transform: scale(1.02);
    }

    .reflex-area:active {
        transform: scale(0.98);
    }

    .game-controls {
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        font-family: var(--font-heading);
        color: var(--secondary-color);
    }

    /* Responsive Games */
    @media (max-width: 500px) {
        .games-grid {
            grid-template-columns: 1fr;
        }

        .memory-card {
            height: 60px;
            font-size: 1.5rem;
        }
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* --- VIDEO MODAL STYLES (Entegre) --- */