/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Celestial North Workshop Palette */
    --primary: #00FF94;
    --secondary: #B026FF;
    --accent: #FFD700;
    --background: #020617;
    --background-alt: rgba(15, 23, 42, 0.4);
    --surface: rgba(15, 23, 42, 0.6);
    --text: #F8FAFC;
    --text-secondary: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Quicksand', sans-serif;
    
    /* Spacing */
    --nav-height: 80px;
    --border-radius: 12px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--background);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    min-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
    word-break: break-word;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   UTILITIES & ANIMATIONS
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 148, 0.3);
}

.btn-primary:hover {
    background: #00cc76;
    box-shadow: 0 0 25px rgba(0, 255, 148, 0.5);
    transform: translateY(-2px);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 148, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 148, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 148, 0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
}

nav a:not(.btn):hover {
    color: var(--primary);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    text-align: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Aurora Animation */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(-45deg, rgba(0,255,148,0.1), rgba(176,38,255,0.1), rgba(0,255,148,0.1));
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    mix-blend-mode: screen;
    pointer-events: none;
}

@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

#hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #e2e8f0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* =========================================
   PLAYGROUND SECTION (LOCKED)
   ========================================= */
section {
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.locked-playground {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    overflow: hidden;
}

/* Grid lines background for tech feel */
.locked-playground::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.lock-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lock-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lock-icon-container i {
    font-size: 2.5rem;
    color: var(--secondary);
}

.locked-playground h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.progress-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 2rem auto 1rem;
    overflow: hidden;
}

.progress-bar {
    width: 85%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 148, 0.5);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* =========================================
   SECTIONS: HOW TO, GALLERY, TESTIMONIALS
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--text);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quote {
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.author .name {
    display: block;
    font-weight: 700;
    color: var(--text);
}

.author .role {
    font-size: 0.85rem;
    color: var(--primary);
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* =========================================
   FOOTER & MODALS
   ========================================= */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

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

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

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: #0f172a;
    position: relative;
    padding: 2.5rem;
    border: 1px solid var(--primary);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

.modal-body h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-body h4 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    html { font-size: 14px; }

    header { padding: 0 1rem; }
    
    .menu-toggle { display: block; }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: none;
    }
    
    nav.active { display: flex; }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    nav li {
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    nav .nav-btn-item {
        margin-top: 1rem;
    }
    
    .hero {
        padding-top: 6rem;
    }

    .steps-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    html { font-size: 15px; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    html { font-size: 16px; }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}