/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Blue Theme */
    --primary-bg: #0a0e1a;
    --secondary-bg: #111827;
    --tertiary-bg: #1f2937;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Watching Eye */
.watching-eye {
    position: fixed;
    top: 50%;
    right: -60px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #1e293b, #0f172a);
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.watching-eye:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    opacity: 1;
}

.eye-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 40% 40%, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.watching-eye.visible {
    right: 20px;
    animation: eyeBlink 4s infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Atmospheric Background Characters */
.atmospheric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-characters {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 800px;
    transform: translateY(-50%);
    opacity: 0.15;
    filter: blur(1px) brightness(0.7);
    transition: all 0.5s ease;
}

.bg-character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 80%);
}

/* Enhanced on scroll */
body.scrolled .bg-characters {
    opacity: 0.25;
    transform: translateY(-50%) scale(1.1);
    filter: blur(0.5px) brightness(0.8);
}

/* Random Shadows System */
.shadow-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.creepy-shadow {
    position: absolute;
    width: 80px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    transform: scale(0.8);
    animation: shadowAppear 8s infinite;
    filter: blur(2px);
}

.creepy-shadow:nth-child(2n) {
    animation-delay: 2s;
    background: radial-gradient(ellipse at center, rgba(20, 20, 50, 0.5) 0%, rgba(10, 10, 30, 0.3) 50%, transparent 100%);
}

.creepy-shadow:nth-child(3n) {
    animation-delay: 4s;
    width: 60px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(50, 20, 20, 0.4) 0%, rgba(30, 10, 10, 0.2) 50%, transparent 100%);
}

.creepy-shadow:nth-child(4n) {
    animation-delay: 6s;
    width: 100px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

@keyframes shadowAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    10% { 
        opacity: 0.6; 
        transform: scale(1) translateY(0); 
    }
    90% { 
        opacity: 0.6; 
        transform: scale(1) translateY(-10px); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(-30px); 
    }
}

/* Moving Shadows */
.moving-shadow {
    position: absolute;
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    animation: shadowMove 12s infinite linear;
}

@keyframes shadowMove {
    0% { 
        opacity: 0; 
        transform: translateX(-10px); 
    }
    5% { 
        opacity: 0.8; 
    }
    95% { 
        opacity: 0.8; 
    }
    100% { 
        opacity: 0; 
        transform: translateX(calc(100vw + 10px)); 
    }
}

/* Creepy Particle Effects */
.creepy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0% { 
        opacity: 0; 
        transform: translateY(100vh) translateX(0); 
    }
    10% { 
        opacity: 0.8; 
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-100px) translateX(50px); 
    }
}

/* Enhanced Glitch Effects */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 128, 0.03) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: glitchOverlay 20s infinite;
}

@keyframes glitchOverlay {
    0%, 95% { opacity: 0; }
    96%, 99% { opacity: 1; }
    100% { opacity: 0; }
}

/* Section Shadow Enhancements */
.section-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

section:hover .section-shadow {
    opacity: 1;
}

/* Enhanced Character Cards with Shadows */
.character-card {
    position: relative;
    background: rgba(17, 24, 39, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.3);
}

/* Jumpscare System */
.jumpscare-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

.jumpscare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
}

.jumpscare-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.jumpscare-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.jumpscare-image {
    max-width: 60vw;
    max-height: 80vh;
    object-fit: contain;
    filter: contrast(1.3) brightness(0.8);
    transform: scale(0);
    animation: jumpscareAppear 0.3s ease-out forwards;
}

@keyframes jumpscareAppear {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.jumpscare-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    animation: jumpscareFlash 0.5s ease-out;
}

@keyframes jumpscareFlash {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0; }
    30% { opacity: 0.6; }
    40% { opacity: 0; }
    50% { opacity: 0.4; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

.jumpscare-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(0, 255, 255, 0.1) 75%, 
        transparent 100%
    );
    opacity: 0;
    animation: jumpscareGlitch 0.8s ease-out;
}

@keyframes jumpscareGlitch {
    0% { opacity: 0; transform: translateX(0); }
    10% { opacity: 0.7; transform: translateX(-5px); }
    20% { opacity: 0; transform: translateX(5px); }
    30% { opacity: 0.5; transform: translateX(-3px); }
    40% { opacity: 0; transform: translateX(3px); }
    50% { opacity: 0.3; transform: translateX(-2px); }
    60% { opacity: 0; transform: translateX(2px); }
    100% { opacity: 0; transform: translateX(0); }
}

/* Jumpscare Fade Out */
.jumpscare-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.jumpscare-overlay.fade-out .jumpscare-image {
    transform: scale(0) rotate(180deg);
    opacity: 0;
    transition: all 0.5s ease;
}

/* Screen Shake Effect */
@keyframes screenShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

/* Static Noise Effect */
.jumpscare-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.3"/></svg>');
    opacity: 0;
    animation: staticNoise 0.6s ease-out;
}

@keyframes staticNoise {
    0% { opacity: 0; }
    20% { opacity: 0.8; }
    40% { opacity: 0.3; }
    60% { opacity: 0.6; }
    80% { opacity: 0.2; }
    100% { opacity: 0; }
}

/* Horror Text Effect */
.horror-text {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    color: #ff0000;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    opacity: 0;
    animation: horrorTextAppear 2s ease-out 0.5s forwards;
}

@keyframes horrorTextAppear {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(50px) scale(0.5);
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0) scale(1.2);
    }
    100% { 
        opacity: 0.8; 
        transform: translateX(-50%) translateY(-10px) scale(1);
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    animation: glitchTitle 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitchBefore 2s infinite;
    color: #ff0080;
    z-index: -1;
}

.glitch-text::after {
    animation: glitchAfter 2s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitchTitle {
    0%, 96%, 100% { transform: translate(0); }
    2% { transform: translate(2px, 0); }
    4% { transform: translate(-2px, 0); }
    60% { transform: translate(-2px, 2px); }
    62% { transform: translate(2px, -2px); }
}

@keyframes glitchBefore {
    0%, 96%, 100% { transform: translate(0); }
    2% { transform: translate(-2px, 0); }
    4% { transform: translate(2px, 0); }
    60% { transform: translate(2px, -2px); }
    62% { transform: translate(-2px, 2px); }
}

@keyframes glitchAfter {
    0%, 96%, 100% { transform: translate(0); }
    2% { transform: translate(2px, 0); }
    4% { transform: translate(-2px, 0); }
    60% { transform: translate(-2px, -2px); }
    62% { transform: translate(2px, 2px); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Brand Logo Styles */
.brand-logo {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    color: var(--text-primary);
    animation: titleSlideIn 1s ease-out;
}

.title-accent {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideIn 1s ease-out 0.2s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-secondary);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Story Section */
.story {
    background: var(--secondary-bg);
    position: relative;
}

.story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.story-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.story-card {
    background: rgba(31, 41, 55, 0.8);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    text-align: center;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.story-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.story-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Characters Section */
.characters {
    background: var(--primary-bg);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.character-card {
    background: var(--tertiary-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-card);
    border-color: rgba(59, 130, 246, 0.3);
}

.character-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.character-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.character-card:hover .character-portrait {
    transform: scale(1.1);
}

.character-placeholder {
    font-size: 3rem;
    opacity: 0.8;
}

.character-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}

.character-card:hover .character-shadow {
    opacity: 0.6;
    animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.mystery-character {
    background: linear-gradient(135deg, var(--tertiary-bg), rgba(139, 92, 246, 0.1));
}

.mystery-character .character-image {
    background: linear-gradient(135deg, var(--accent-purple), var(--tertiary-bg));
    animation: mysteryGlow 3s ease-in-out infinite;
}

@keyframes mysteryGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

.character-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.character-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mini Game Section */
.mini-game-section {
    background: var(--secondary-bg);
    position: relative;
    min-height: 600px;
}

.mini-game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.game-container {
    position: relative;
    z-index: 2;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.game-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.game-arena {
    position: relative;
    width: 100%;
    height: 400px;
    background: 
        linear-gradient(135deg, rgba(10, 14, 26, 0.9), rgba(31, 41, 55, 0.9)),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSg1OSwgMTMwLCAyNDYsIDAuMykiLz4KPHN2Zz4K');
    border-radius: var(--border-radius);
    border: 2px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    cursor: crosshair;
}

.game-arena.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.game-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
}

.game-instructions h3 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.shadow-entity {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(139, 92, 246, 0.3));
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    animation: shadowFloat 2s ease-in-out infinite;
}

.shadow-entity:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
}

.shadow-entity::before {
    content: '👻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

@keyframes shadowFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    z-index: 10;
}

.game-overlay.show {
    display: flex;
}

.game-result {
    text-align: center;
    color: var(--text-primary);
}

.game-result h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.final-score {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--accent-purple);
    font-weight: 700;
}

/* Download Section */
.download {
    background: var(--secondary-bg);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-text {
    text-align: center;
    margin-bottom: 3rem;
}

.download-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.platform-card {
    background: var(--tertiary-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.platform-card.available {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.platform-card.available:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.platform-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.available .status {
    background: var(--gradient-secondary);
    color: white;
}

.coming-soon .status {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

/* About Section */
.about {
    background: var(--primary-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.feature h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.link-group a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .game-info {
        flex-direction: column;
        gap: 1rem;
    }

    .game-stats {
        justify-content: center;
    }

    .watching-eye {
        width: 40px;
        height: 40px;
        right: -50px;
    }

    .watching-eye.visible {
        right: 10px;
    }

    .eye-pupil {
        width: 16px;
        height: 16px;
    }

    /* Logo responsive styles */
    .brand-logo {
        height: 35px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .footer-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .story-content,
    .characters-grid,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 15px;
    }

    .story-card,
    .character-card,
    .platform-card {
        padding: 1.5rem;
    }

    .character-image {
        width: 120px;
        height: 120px;
    }

    .game-arena {
        height: 300px;
    }

    .brand-text {
        display: none; /* Скрываем название на очень маленьких экранах */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .watching-eye {
        animation: none;
    }

    .shadow-entity {
        animation: none;
    }
}

/* Smooth scroll for Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    html {
        scroll-behavior: smooth;
    }
}

/* Hero Logo Styles */
.hero-logo-container {
    margin-bottom: 2rem;
    text-align: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    transition: var(--transition-smooth);
}

.hero-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
} 

/* Mobile Optimization */
@media (max-width: 768px) {
    .jumpscare-image {
        max-width: 80vw;
        max-height: 60vh;
    }
    
    .horror-text {
        font-size: 2rem;
    }
}

/* Debug Panel */
.debug-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 20px;
    z-index: 999999;
    color: white;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.debug-content h3 {
    margin-bottom: 15px;
    color: var(--accent-cyan);
    text-align: center;
}

.debug-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.debug-btn {
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.debug-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.debug-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Hidden Messages */
.hidden-messages {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.hidden-message {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-cyan);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
    max-width: 400px;
    text-align: center;
}

.hidden-message.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden-message[data-trigger="scroll-bottom"] {
    bottom: 50px;
    right: 50px;
}

.hidden-message[data-trigger="idle-long"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hidden-message[data-trigger="multiple-clicks"] {
    top: 100px;
    right: 50px;
}

/* Creepy Cursor Effects */
.creepy-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: cursorGhost 3s infinite;
}

@keyframes cursorGhost {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Page Loading Horror Effect */
.loading-horror {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loading-horror.show {
    opacity: 1;
    pointer-events: all;
}

/* Whisper Text Effect */
.whisper-text {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0;
    animation: whisperAppear 8s infinite;
    pointer-events: none;
    z-index: 100;
}

@keyframes whisperAppear {
    0%, 90% { opacity: 0; }
    5%, 85% { opacity: 0.7; }
}

/* Glitch Text Effect */ 