/* Treknoa.Quest - Modern Geometric Gaming Theme */
/* Typography: Poppins + Inter (Different from all previous sites) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors - Geometric Theme */
    --primary-dark: #4a0258f2;
    --primary-blue: #16213e;
    --accent-cyan: #4a0258f2;
    --accent-bright: #00d4ff;
    --accent-purple: #7209b7;
    --accent-orange: #ff6b35;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --dark-gray: #334155;
    
    /* Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--accent-cyan) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-purple) 100%);
    --gradient-warm: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-purple) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(114, 9, 183, 0.1) 100%);
    
    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--light-gray);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons - Geometric Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--accent-bright);
}

.btn-secondary:hover {
    background: var(--accent-bright);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation - Minimal Geometric Style */
.navbar {
    background: #4a0258f2;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
}

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

.logo:hover::after {
    width: 100%;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-display);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--accent-bright);
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section - Modern Geometric Layout */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

/* General Section Spacing */
section {
    display: block;
    position: relative;
    clear: both;
}

/* Game Section - Card Grid Layout */
.games-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.games-section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

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

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--light-gray);
}

/* About Section - Split Layout */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(0, 212, 255, 0.05) 100%);
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px dashed var(--accent-bright);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

/* Features Section - Modern Grid */
.features {
    padding: 4rem 0;
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-top: 6rem;
}

.features h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 1rem;
}

.features > .container > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-item {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: static;
    overflow: visible;
}


/* No hover or before effects for static layout */

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.feature-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Footer - Horizontal Layout */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-section ul li a:hover {
    color: var(--accent-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-disclaimer {
    background: var(--accent-cyan);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    border-top: 2px solid var(--accent-bright);
}

/* Age Verification Modal */
.age-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4a0258f2;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.age-modal {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent-bright);
    position: relative;
    overflow: hidden;
}

.age-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.age-modal h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

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

.age-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-display);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.age-accept {
    background: var(--gradient-accent);
    color: var(--white);
}

.age-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.age-decline {
    background: var(--medium-gray);
    color: var(--white);
}

.age-decline:hover {
    background: var(--dark-gray);
    transform: translateY(-2px);
}

.modal-open {
    overflow: hidden;
}

/* Animation Classes */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form Styles */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-bright);
    background: var(--white);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .age-modal {
        padding: 2rem;
        margin: 1rem;
    }
    
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .age-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
    }
}