/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --bg-color: #0d0d12;
    --panel-bg: rgba(25, 25, 35, 0.4);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e2e2;
    --text-muted: #9b9ba7;
    --accent-color: #f9a826;
    --accent-hover: #ffc155;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection */
::selection {
    background: var(--accent-color);
    color: #111;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #111;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 168, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

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

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-tracker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.progress-bar-bg {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: translateZ(0); /* Hardware accel */
}

/* Overlay gradient for readability */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,13,18,0.2) 0%, rgba(13,13,18,0.8) 80%, var(--bg-color) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.text-glow {
    background: linear-gradient(135deg, #ffffff 35%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(249, 168, 38, 0.4));
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-overlay {
    position: absolute;
    bottom: -100px; /* Hidden initially */
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-overlay {
    bottom: 1rem;
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Call to Action (CTA) Section
   ========================================================================== */
.cta {
    position: relative;
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.4);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 50%, var(--bg-color) 100%);
    z-index: -1;
}

.cta-content {
    text-align: center;
    padding: 4rem;
    max-width: 700px;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-primary.lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: rgba(10, 10, 13, 0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile initially */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 18, 0.98);
        backdrop-filter: blur(15px);
        padding: 2rem;
        border-bottom: 1px solid var(--panel-border);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Language Toggle & New CTA Buttons
   ========================================================================== */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

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

.footer-email {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-email a {
    color: var(--accent-color);
}
.footer-email a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Gallery Release Groups
   ========================================================================== */
.release-group {
    margin-bottom: 4rem;
}

.release-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text-main);
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.news-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Shader Configurations Section
   ========================================================================== */
.shaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.shader-card {
    padding: 2rem;
    text-align: left;
    transition: var(--transition-normal);
}

.shader-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.shader-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.shader-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Shader Details (Accordion & Insights)
   ========================================================================== */
.community-tips {
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent-color);
}

.community-tips h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.community-tips p {
    color: var(--text-main);
    font-size: 0.95rem;
}

.shader-configs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

details.shader-detail-card {
    padding: 1.5rem 2.5rem;
    cursor: pointer;
}

details.shader-detail-card summary {
    list-style: none; /* Remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

/* For Safari */
details.shader-detail-card summary::-webkit-details-marker {
    display: none;
}

details.shader-detail-card summary .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

details[open].shader-detail-card summary .icon {
    transform: rotate(180deg);
}

details.shader-detail-card h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

details[open].shader-detail-card h3 {
    color: var(--accent-color);
}

details.shader-detail-card h3 span:not(.badge-recommend) {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-recommend {
    font-size: 0.75rem;
    background: rgba(249, 168, 38, 0.15);
    color: var(--accent-color);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(249, 168, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--panel-border);
}

.config-list {
    list-style: none;
}

.config-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-main);
    padding-left: 1.5rem;
    position: relative;
}

.config-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.config-list li strong {
    color: #fff;
}

/* Shader Performance Tabs */
.perf-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
}

.perf-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.perf-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.perf-tab.active {
    color: var(--accent-color);
    background: rgba(249, 168, 38, 0.1);
}

.perf-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.perf-pane.active {
    display: block;
}

/* ==========================================================================
   News Timeline (news.html) - Professional Editorial Design
   ========================================================================== */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2.5rem;
}

/* Glowing Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color) 0%, rgba(249, 168, 38, 0.2) 50%, transparent 100%);
    box-shadow: 0 0 15px rgba(249, 168, 38, 0.4);
    border-radius: 3px;
}

.timeline-item {
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(18, 18, 25, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: rgba(249, 168, 38, 0.3);
}

/* Glowing Node */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.05rem; /* center on the 3px line */
    top: 3rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--bg-color);
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 2;
    transition: background 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.timeline-date {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.timeline-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-blocks { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-pbr { background: rgba(249, 168, 38, 0.15); color: #f9a826; border: 1px solid rgba(249, 168, 38, 0.3); }
.tag-tech { background: rgba(167, 139, 250, 0.15); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }
.tag-launch { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }

.timeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.timeline-content p {
    color: #b4b4c0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Modern Image Grid */
.timeline-images.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.timeline-images.modern-grid img {
    width: 100%;
    height: 160px; /* Larger, more immersive size */
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.timeline-images.modern-grid img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}
