/* CSS Variables enforcing authentic authentic GhillieGuide identity */
:root {
    /* Retro N64 Silhouette Black/Brown Base */
    --bg-base: hsl(30, 20%, 6%);
    /* Warm Jungle / Sunset Glass */
    --glass-bg: hsla(30, 15%, 12%, 0.7);
    --glass-border: hsla(30, 20%, 25%, 0.4);
    
    /* Channel Dominant: Deep Sunset Orange */
    --accent: #FF8C00;
    /* Identity Colors: Soft Pink and Light Blue */
    --accent-secondary: #FFB6C1;
    --accent-tertiary: #ADD8E6;
    
    --accent-patreon: #FF8C00;
    --accent-gumroad: #FFB6C1;
    
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(30, 30%, 80%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Golden Yellow Shadow (from Avatar) */
    --shadow-soft: 0 8px 32px 0 hsla(45, 100%, 50%, 0.15);
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

/* Ambient Background Glow */
.ambient-glow {
    position: fixed;
    top: -20vh;
    left: 50vw;
    width: 60vw;
    height: 60vh;
    /* GhillieGuide Tropical Sunset Silhouette Lighting */
    background: radial-gradient(circle, var(--accent) 0%, var(--accent-secondary) 50%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    /* GPU Acceleration to stop repaints on mobile */
    will-change: filter, transform;
    transform: translateZ(0);
}

/* Glassmorphism Classes */
.glass-nav {
    background: hsla(220, 20%, 8%, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.nav-logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 5rem;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem 8rem 1rem;
    animation: fadeUp 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-base);
    box-shadow: 0 4px 15px hsla(210, 100%, 60%, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(210, 100%, 60%, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background-color: hsla(0, 0%, 100%, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    margin-top: 1.5rem;
}
.btn-outline:hover {
    background-color: hsla(210, 100%, 60%, 0.1);
    transform: translateY(-2px);
}

/* Grids & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: hsla(220, 20%, 12%, 0.8);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Micro-Animations */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: hsla(210, 100%, 60%, 0.4);
}

/* Integrations: Patreon & Gumroad */
.integration-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
}
.integration-card h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.integration-card.patreon h4 { color: var(--accent-patreon); }
.integration-card.gumroad h4 { color: var(--accent-gumroad); }

.integration-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 2rem;
}
.feature-list li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-list li::before {
    content: "✓";
    color: var(--accent);
}

.btn-fake {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}
.patreon .btn-fake {
    background-color: hsla(10, 80%, 60%, 0.1);
    color: var(--accent-patreon);
}
.gumroad .btn-fake {
    background-color: hsla(300, 70%, 60%, 0.1);
    color: var(--accent-gumroad);
}

.integration-card:hover.patreon { border-color: var(--accent-patreon); }
.integration-card:hover.gumroad { border-color: var(--accent-gumroad); }

/* Hardware Section */
.hardware-box p {
    color: var(--text-secondary);
}

.accent-text {
    color: var(--accent);
}

footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay staggered sections slightly */
#tutorials { animation-delay: 0.1s; }
#services { animation-delay: 0.2s; }
#hardware { animation-delay: 0.3s; }

/* ========================================= */
/* ACCORDION & CAROUSEL UI SYSTEMS          */
/* ========================================= */
.accordion-group { margin-top: 2rem; }
.accordion-item {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: hsla(220, 20%, 6%, 0.4);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header:after { content: '\002B'; font-size: 2rem; color: var(--accent); }
.accordion-header.active:after { content: '\2212'; }
.accordion-header:hover { background: hsla(220, 20%, 20%, 0.5); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

/* Horizontal Carousel */
.carousel-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}
.carousel-wrapper::-webkit-scrollbar { height: 8px; }
.carousel-wrapper::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* 50/50 Banner Layout */
.lesson-banner {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: hsla(0,0%,0%,0.3);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
}

.banner-media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
}
.banner-media iframe {
    width: 100%;
    height: 100%;
}

.banner-text {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}
.banner-text::-webkit-scrollbar { width: 6px; }
.banner-text::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

.lesson-title { color: var(--accent); margin-bottom: 1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
.lesson-notes { list-style: none; color: var(--text-secondary); }
.lesson-notes li { margin-bottom: 0.75rem; display: flex; gap: 0.5rem; }
.lesson-notes li::before { content: "►"; color: var(--accent-secondary); font-size: 0.8rem; margin-top: 0.2rem; }

/* ========================================= */
/* STRICT MOBILE RESPONSIVENESS ITERATION   */
/* ========================================= */
@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 2rem 1rem;
    }

    .lesson-banner { grid-template-columns: 1fr; }
    .banner-text { max-height: max-content; }
}
