/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0f2e;
    --bg-secondary: #1a1f3a;
    --accent-blue: #89cff0;
    --accent-silver: #f8f4ff;
    --accent-ice: #c4e1ff;
    --text-primary: #ffffff;
    --text-secondary: #b8c6db;
    --gradient-primary: linear-gradient(135deg, #89cff0 0%, #c4e1ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1f3a 0%, #2a2f4a 100%);
    --shadow-glow: 0 0 20px rgba(137, 207, 240, 0.3);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stars Background Animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-silver);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.stars::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.stars::after {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(137, 207, 240, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(137, 207, 240, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.cta-button:hover::before {
    width: 200px;
    height: 200px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(137, 207, 240, 0.1) 0%, rgba(196, 225, 255, 0.05) 100%),
        radial-gradient(circle at 20% 80%, rgba(137, 207, 240, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 225, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 100px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Games Section */
.games-section {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(137, 207, 240, 0.2);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

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

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-info {
    padding: 1.5rem;
    text-align: center;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.game-play-btn {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.game-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(137, 207, 240, 0.4);
}

/* Lore Section */
.lore-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
}

.timeline-item {
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker,
.timeline-item:hover .timeline-marker {
    background: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    transform: scale(1.2);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    max-width: 250px;
}

.characters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.character-card {
    background: var(--gradient-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(137, 207, 240, 0.2);
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.character-card h4 {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.disclaimer {
    background: rgba(137, 207, 240, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
}

.disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(137, 207, 240, 0.2);
}

.footer-content {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Game Page Styles */
.game-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.game-header {
    text-align: center;
    padding: 2rem 0;
}

.game-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.game-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.game-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    border: 1px solid rgba(137, 207, 240, 0.2);
    box-shadow: var(--shadow-glow);
}

.game-iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-ice);
    transform: translateX(-5px);
}

/* Contact Page */
.contact-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-primary);
}

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

.contact-form {
    background: var(--gradient-secondary);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(137, 207, 240, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(137, 207, 240, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(137, 207, 240, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Legal Pages */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-primary);
}

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

.legal-content {
    background: var(--gradient-secondary);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(137, 207, 240, 0.2);
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.legal-content h3 {
    font-family: var(--font-heading);
    color: var(--accent-ice);
    margin: 2rem 0 1rem;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline {
        flex-direction: column;
        gap: 2rem;
    }
    
    .timeline::before {
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        height: auto;
        transform: translateX(-50%);
    }
    
    .characters {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-iframe {
        height: 500px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        margin: 0 auto;
        max-width: 320px;
    }
    
    .contact-form,
    .legal-content {
        padding: 2rem;
    }
    
    .game-iframe {
        height: 400px;
    }
}