:root {
    --dark-blue: #0a0a0f;
    --mid-blue: #1a1a2e;
    --light-blue: #16213e;
    --accent-blue: #0f3460;
    --white: #e8e8e8;
    --off-white: #c9c9c9;
    --red-accent: #8b2635;
    --text-muted: #8a8a8a;
    --border-color: #2a2a3e;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1000;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 15, 0.4) 100%);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9), transparent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--white);
}

.logo .subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white), var(--off-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--accent-blue), transparent 70%);
    opacity: 0.4;
    animation: mysticalFloat 15s ease-in-out infinite;
}

@keyframes mysticalFloat {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg) scale(0.9);
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-40px) rotate(270deg) scale(1.2);
        opacity: 0.7;
    }
    100% { 
        transform: translateY(0) rotate(360deg) scale(1);
        opacity: 0.4;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about {
    padding: 8rem 0;
    background: var(--mid-blue);
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--white);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--off-white);
    margin-bottom: 2rem;
    text-align: center;
}

.games {
    padding: 8rem 4rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--mid-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.game-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.diary-bg {
    background: linear-gradient(135deg, var(--red-accent), var(--light-blue));
}

.electric-bg {
    background: linear-gradient(135deg, var(--accent-blue), var(--red-accent));
}

.game-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.game-tag {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--white);
}

.game-content {
    padding: 2rem;
}

.game-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.game-description {
    color: var(--off-white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.game-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.game-cta {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-cta:hover {
    background: var(--white);
    color: var(--dark-blue);
}

footer {
    background: var(--dark-blue);
    padding: 4rem 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--off-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1rem;
    }
    
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--white);
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
        padding: 0.5rem;
        margin: 0;
        position: relative;
    }
    
    .hero {
        padding: 0 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .games {
        padding: 4rem 2rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Footer links vertical and centered on mobile */
@media (max-width: 600px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
    .footer-content {
        align-items: center;
        text-align: center;
    }
}

