/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-bg-dark: #0a0e17;
    --color-purple: #4c2a85;
    --color-cyan: #00d2ff;
    --color-text-light: #f0f0f0;
    --color-slate: #2a3a4c;
    --color-slate-light: #3a4a5c;
    
    /* Gradients */
    --gradient-mana: linear-gradient(135deg, #4c2a85 0%, #00d2ff 100%);
    --gradient-mana-hover: linear-gradient(135deg, #5c3a95 0%, #10e2ff 100%);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: rgba(10, 14, 23, 0.3);
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-mana);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.8);
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-mana);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-mana);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 2rem;
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-mana);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-mana);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.6);
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-mana);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   GAMES SECTION
   ======================================== */

.games-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(42, 58, 76, 0.1) 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.game-card {
    background: rgba(42, 58, 76, 0.3);
    border: 1px solid var(--color-slate);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-cyan);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.2);
}

.game-card.featured {
    grid-column: span 1;
}

.game-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.game-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-screenshot:hover {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 42, 133, 0.4) 0%, rgba(0, 210, 255, 0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--color-cyan);
    opacity: 0.8;
}

.image-placeholder span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-text-light);
}

.image-placeholder.mystery {
    background: linear-gradient(135deg, rgba(42, 58, 76, 0.6) 0%, rgba(10, 14, 23, 0.8) 100%);
}

.game-content {
    padding: 2rem;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-cyan);
}

.working-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    opacity: 0.7;
    font-family: var(--font-body);
}

.game-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.game-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--color-cyan);
    border-radius: 25px;
    color: var(--color-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.game-link:hover {
    background: var(--color-cyan);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: rgba(76, 42, 133, 0.3);
    border: 1px solid var(--color-purple);
    border-radius: 25px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
}

.about-content {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.about-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-paragraph strong {
    color: var(--color-cyan);
    font-weight: 700;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.philosophy-card {
    background: rgba(42, 58, 76, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-slate);
    transition: var(--transition-smooth);
    text-align: center;
}

.philosophy-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-cyan);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.2);
}

.philosophy-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-mana);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.philosophy-card p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
}

.code-string { color: #ce9178; }
.code-number { color: #b5cea8; }

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: rgba(20, 24, 33, 0.8);
    border-top: 1px solid var(--color-slate);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-cyan);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.contact-email a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-email a:hover {
    color: var(--color-cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(42, 58, 76, 0.4);
    border: 1px solid var(--color-slate);
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--gradient-mana);
    border-color: var(--color-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.press-kit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(42, 58, 76, 0.3);
    border: 1px solid var(--color-slate);
    border-radius: 25px;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.press-kit-link:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-slate);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero {
        min-height: 90vh;
        padding: 0 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.85rem;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .game-content {
        padding: 1.5rem;
    }
    
    .game-links {
        flex-direction: column;
    }
    
    .window-content {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-cyan);
    outline-offset: 3px;
}
