/* TryEskra.top - Magical Gaming Theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Teal Palette */
    --primary-color: #0B6E68; /* Teal */
    --primary-rgb: 11,110,104;
    --secondary-color: #00D4B4; /* Bright Teal */
    --secondary-rgb: 0,212,180;
    --accent-color: #1FB6B5; /* Accent Teal */
    --accent-rgb: 31,182,181;
    --accent-secondary: #FF9F6B; /* Coral Accent */
    --accent-secondary-rgb: 255,159,107;
    --background-dark: #041826; /* Deep Ocean */
    --background-light: #072A2F; /* Lighter Ocean */
    --card-background: #0B2730; /* Card Shade */
    --text-primary: #FFFFFF;
    --text-secondary: #DFF6F2; /* Pale Teal */
    --text-muted: #9EDCC8; /* Muted Teal */
    --border-color: #0B6E68;
    --shadow-color: rgba(var(--primary-rgb), 0.25);
    --glow-color: rgba(var(--secondary-rgb), 0.35);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Magical Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--secondary-rgb), 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: rgba(4, 24, 38, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px var(--glow-color);
    transition: var(--transition);
}

.logo:hover {
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--glow-color);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mysticalGlow 3s ease-in-out infinite alternate;
}

@keyframes mysticalGlow {
    0% { filter: drop-shadow(0 0 5px var(--glow-color)); }
    100% { filter: drop-shadow(0 0 15px var(--glow-color)); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(var(--secondary-rgb), 0.08));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(4, 24, 38, 0.9) 0%, rgba(7, 42, 47, 0.9) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--glow-color);
    line-height: 1.2;
}

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

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--card-background), rgba(7, 34, 36, 0.82));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* Game Section */
.game-container {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: linear-gradient(135deg, var(--card-background), rgba(11, 39, 48, 0.9));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--secondary-rgb), 0.08), transparent);
    transition: var(--transition);
}

.game-card:hover::before {
    left: 100%;
}

.game-card h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: var(--background-dark);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--secondary-color);
}

.cta-button:hover::before {
    left: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-background);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Disclaimer Cards */
.disclaimer-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-secondary-rgb), 0.12));
    border: 1px solid var(--accent-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
}

.disclaimer-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--background-dark) 0%, #070b0d 100%);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--glow-color);
}

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

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, var(--card-background), var(--background-light));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    max-width: 450px;
    margin: 1rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.5);
}

.age-modal-content h2 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.age-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.modal-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-button.confirm {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
}

.modal-button.confirm:hover {
    box-shadow: 0 5px 15px var(--shadow-color);
    transform: translateY(-2px);
}

.modal-button.reject {
    background: linear-gradient(135deg, var(--accent-secondary), #ff6b5a);
    color: var(--text-primary);
}

.modal-button.reject:hover {
    box-shadow: 0 5px 15px rgba(255, 107, 90, 0.36);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 8, 40, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: var(--transition);
        border-top: 2px solid var(--primary-color);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu[aria-hidden="false"] {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .game-iframe {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .age-modal-content {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .feature-card,
    .game-card {
        padding: 1.5rem;
    }

    .game-iframe {
        height: 250px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Magical Sparkle Animation */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: sparkle 2s infinite;
}