:root {
    --primary-bg: #0A1121;
    --text-color: #F0E9DA;
    --accent-gold: #E5BB5A;
    --accent-teal: #39D4C7;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-color);
    overflow: hidden; /* Handle via scroll container */
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 17, 33, 0.95);
    padding: 1.25rem 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.dot-teal {
    width: 8px;
    height: 8px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--accent-teal);
}

.cta-nav {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-nav:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.panel {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

/* Parallax Background */
.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 33, 0.6);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    padding: 0 10%;
    width: 100%;
    max-width: 1600px;
}

/* Hero Section specifics */
.hero-overlay {
    background: linear-gradient(90deg, rgba(10, 17, 33, 0.95) 0%, rgba(10, 17, 33, 0.7) 40%, rgba(10, 17, 33, 0.2) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 5rem;
}

.hero-text-block {
    max-width: 800px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.teal-line {
    width: 40px;
    height: 2px;
    background-color: var(--accent-teal);
}

.eyebrow-text {
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.hero-text-block h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: italic;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-subheading {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

.cta-solid {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border: 1px solid var(--accent-gold);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cta-solid:hover {
    background: transparent;
    color: var(--accent-gold);
}

.cta-outline {
    background: transparent;
    color: var(--accent-teal);
    border: 1px solid var(--accent-teal);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cta-outline:hover {
    background: var(--accent-teal);
    color: var(--primary-bg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--text-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections General */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    font-style: normal;
}

/* Split Layouts */
.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.split.reverse { flex-direction: row-reverse; }

.text-col { flex: 1; }
.img-col {
    flex: 1;
    height: 50vh;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(57, 212, 199, 0.3);
}

/* Terminal Styling */
.terminal-section .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-window {
    width: 100%;
    max-width: 1200px;
    background: rgba(10, 17, 33, 0.85);
    border: 1px solid rgba(57, 212, 199, 0.2);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #111a2e;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-header .title {
    margin-left: auto;
    margin-right: auto;
    color: #888;
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-body {
    padding: 30px;
    min-height: 300px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.terminal-text p {
    margin-bottom: 10px;
}
.prompt::before { content: '$ '; color: var(--accent-gold); }
.success { color: var(--accent-teal); }
.info { color: #888; }
.warning { color: var(--accent-gold); }

.split-terminal {
    display: flex;
    gap: 30px;
}
.split-terminal .terminal-text { flex: 1; }
.split-terminal .terminal-img-box {
    flex: 1;
    overflow: hidden;
    border: 1px solid #333;
}
.split-terminal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* E-Commerce Storefront */
.ecommerce-section .content {
    display: flex;
    flex-direction: column;
}

.ecommerce-content .section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.ecommerce-content .section-header p {
    font-size: 1.1rem;
    color: #bbb;
    max-width: 600px;
    margin: 0 auto;
}

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

.product-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(229, 187, 90, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.product-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-teal);
    color: var(--primary-bg);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    text-align: center;
}
.product-info h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
}
.product-info .price {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.cta-add {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-color);
    padding: 8px 20px;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.cta-add:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
}

/* Gallery Terminal Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}
.gallery-item {
    height: 200px;
    overflow: hidden;
    border: 1px solid rgba(57, 212, 199, 0.2);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.3s ease, transform 0.4s ease;
}
.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Terminal output animations */
.terminal-line {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: termLineFade 0.3s forwards;
}

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

/* General Animations */
.reveal-text, .reveal-fade, .reveal-slide {
    opacity: 0;
    will-change: transform, opacity;
}
.reveal-text { transform: translateY(50px); }
.reveal-fade { transform: translateY(30px); }
.reveal-slide { transform: translateX(100px); }

.is-visible.reveal-text { animation: slideUpFade 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.is-visible.reveal-fade { animation: fadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.is-visible.reveal-slide { animation: slideSideFade 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards; }

@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideSideFade { to { opacity: 1; transform: translateX(0); } }

/* =========================================
   Responsive Media Queries
   ========================================= */

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 101;
}

/* Tablet / Small Desktop (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .content {
        padding: 0 5%;
    }
    .hero-text-block h1 {
        font-size: 3.5rem;
    }
    .split {
        gap: 2rem;
    }
    .storefront-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .navbar {
        padding: 1.5rem 3rem;
    }
    .navbar.scrolled {
        padding: 1rem 3rem;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Navbar & Mobile Menu */
    .menu-toggle {
        display: block;
    }
    .desktop-only {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 17, 33, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
        z-index: 99;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .navbar {
        padding: 1rem 2rem;
    }
    
    .navbar.scrolled {
        padding: 0.8rem 2rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero-text-block h1 {
        font-size: 2.5rem;
    }
    .hero-subheading {
        font-size: 1rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }
    .cta-solid, .cta-outline {
        width: 100%;
        text-align: center;
    }

    /* General Layout */
    .panel {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px 0;
    }
    .scroll-container {
        scroll-snap-type: none; /* Disable scroll snapping on mobile */
        overflow-y: auto;
    }

    /* Split Sections */
    .split, .split.reverse {
        flex-direction: column;
    }
    .img-col {
        width: 100%;
        height: 300px;
        order: -1; /* Image always on top */
    }

    /* Terminal Sections */
    .terminal-window {
        margin-top: 1rem;
    }
    .split-terminal {
        flex-direction: column;
    }
    .split-terminal .terminal-img-box {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* E-Commerce */
    .storefront-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
