/* ==========================================================================
   LATERAL SOUND - DESIGN SYSTEM & STYLING
   ========================================================================== */

/* Custom Font Declarations */
@font-face {
    font-family: 'Eurostile';
    src: url('fonts/EUROSTILE.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eurostile';
    src: url('fonts/EUROSTILEBOLD.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silom';
    src: url('fonts/Silom.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom Variables */
:root {
    --font-heading: 'Eurostile', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-accent: 'Silom', monospace;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --color-bg-dark: #121212;
    --color-bg-light: #f7f7f7;
    --color-text-dark: #181818;
    --color-text-light: #ffffff;
    --color-accent: #ff5e00; /* Boutique Orange */
    --color-accent-hover: #ff7c2b;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-overlay: rgba(255, 255, 255, 0.85); /* Clean light overlay */
    --color-overlay-dark: rgba(18, 18, 18, 0.9); /* Dark overlay for about slide */
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow: hidden; /* Scroller handles scroll */
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   GLOBAL ELEMENTS (FIXED OVERLAYS)
   ========================================================================== */

/* Local Logo Branding (Top Right on Slides 1 & 2) */
.local-logo {
    position: absolute;
    top: 30px; /* Matched to PDF Y=27px */
    right: 15px; /* Matched to PDF X=1915px */
    z-index: 5;
}

.local-logo img {
    height: 210px; /* Matched to PDF logo block height */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Fixed Sidebar Dot Navigation */
.sidebar-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--color-text-dark);
    position: relative;
    transition: var(--transition-smooth);
}

.nav-dot:hover {
    transform: scale(1.3);
    background-color: var(--color-text-dark);
}

.nav-dot.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.4);
}

/* Dot Tooltips */
.nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: rgba(18, 18, 18, 0.95);
    color: var(--color-text-light);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   SCROLLER & SCROLL SECTIONS
   ========================================================================== */

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

/* Individual Slide Base */
.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Isolated Slide Background container for filtering */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: saturate(1.8) contrast(1.08) brightness(1.02); /* Boost grayscale + orange contrast and saturation */
    transition: var(--transition-smooth);
}

/* Default light-clean mockup overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    z-index: 1;
}

/* Specific dark overlay for last slide */
.slide-overlay.dark {
    background-color: var(--color-overlay-dark);
}

/* Content wrapper that sits above overlay */
.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Common Section Title */
.section-title {
    position: absolute;
    top: 43.5px; /* Matched to PDF Y=43.5px */
    right: 25px; /* Matched to PDF X=1909px */
    text-align: right;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 7.2rem; /* Matched to PDF header height (~118px) */
    color: var(--color-text-dark);
    letter-spacing: 2px;
    line-height: 0.9;
    margin-bottom: 0;
    z-index: 5;
}

/* Dark slide header color update */
body.dark-theme-active .section-title {
    color: var(--color-text-light);
}

/* ==========================================================================
   SLIDE 1: SPLASH COVER
   ========================================================================== */
.splash-slide .slide-overlay {
    /* Slightly less opaque to let cover details show */
    background-color: rgba(255, 255, 255, 0.75);
}

.hero-block {
    margin-left: 10%;
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 7vw;
    font-weight: bold;
    letter-spacing: 12px;
    line-height: 0.9;
    color: var(--color-text-dark);
}

.hero-subtitle {
    font-size: 3.5vw;
    font-weight: bold;
    letter-spacing: 8px;
    color: var(--color-accent);
    line-height: 0.9;
}

/* ==========================================================================
   SLIDE 2: SPLIT MENU SELECTOR
   ========================================================================== */
.split-menu {
    width: 100%;
    max-width: 800px;
    margin-left: 5%;
}

.split-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-item {
    display: inline-block;
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-accent);
    font-size: 4rem;
    letter-spacing: 5px;
    position: relative;
    transition: var(--transition-smooth);
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.menu-item:hover {
    color: var(--color-accent);
    transform: translateX(15px);
}

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

/* ==========================================================================
   SLIDE 3: PEDALS CATEGORIES
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.card-icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.category-card:hover .card-icon {
    transform: scale(1.1) rotate(2deg);
}

.card-title {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: bold;
    text-align: center;
    position: relative;
}

.category-card:hover .card-title {
    color: var(--color-accent);
}

/* ==========================================================================
   SLIDES 4-7: PRODUCT DETAIL GRIDS
   ========================================================================== */
.products-grid {
    display: grid;
    gap: 50px;
    width: 100%;
    margin-top: 10px;
}

.products-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    transition: var(--transition-smooth);
}

.product-img-wrap {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.product-img {
    height: 85%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.18));
}

.product-info {
    text-align: center;
    width: 100%;
}

.product-name {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.product-desc {
    font-size: 0.95rem;
    color: #555;
    max-width: 80%;
    margin: 0 auto;
    font-weight: 500;
}

/* Delay section featured tags styling */
.product-desc.tag {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.product-desc.tag.highlight {
    color: #ff2a00;
    letter-spacing: 2px;
    font-family: var(--font-accent);
}

.product-desc.detail {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

.spacer-hidden {
    visibility: hidden;
}

/* ==========================================================================
   SLIDE 8: EURORACK MODULES (PANELS)
   ========================================================================== */
.eurorack-slide .product-img-wrap {
    height: 560px; /* Panels are taller */
}

.panel-img {
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.18));
}

.product-card:hover .panel-img {
    transform: scale(1.03) translateY(-8px);
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.25));
}

/* ==========================================================================
   SLIDE 9: ABOUT & CONTACT
   ========================================================================== */
.about-slide {
    color: var(--color-text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 70px;
    width: 100%;
    align-items: center;
}

.about-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.profile-img:hover {
    transform: scale(1.03) rotate(1deg);
}

.about-logo {
    width: 250px;
    object-fit: contain;
    filter: invert(1) brightness(0.9); /* Invert logo for dark about slide background */
}

/* styled globally by .section-title */

.bio-text {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 35px;
}

.bio-text p {
    margin-bottom: 15px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 25px 30px;
    display: inline-block;
    width: 100%;
    max-width: 550px;
}

.contact-lead {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.email-btn {
    display: inline-block;
    color: var(--color-text-light);
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.email-btn:hover {
    color: var(--color-accent-hover);
    transform: translateX(3px);
}

.social-links {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.follow-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Viewport Height Adjustments for Widescreen Desktop */
@media screen and (max-height: 900px) and (min-width: 1025px) {
    .local-logo img {
        height: 160px;
    }
    .section-title {
        font-size: 5.5rem;
        top: 35px;
    }
    .product-img-wrap {
        height: 380px;
    }
    .eurorack-slide .product-img-wrap {
        height: 460px;
    }
}
@media screen and (max-height: 720px) and (min-width: 1025px) {
    .local-logo img {
        height: 120px;
        top: 20px;
    }
    .section-title {
        font-size: 4rem;
        top: 25px;
    }
    .product-img-wrap {
        height: 300px;
    }
    .eurorack-slide .product-img-wrap {
        height: 360px;
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS & MOBILE COLLAPSE
   ========================================================================== */

/* Tablet & Mobile Viewports (Collapse Snapping) */
@media screen and (max-width: 1024px) {
    body {
        overflow-y: scroll; /* Let browser handle natural body scroll */
        height: auto;
    }
    
    .scroll-container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none; /* Disable scroll-snap on mobile */
    }
    
    .slide {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px;
        display: block; /* Stack container naturally */
        scroll-snap-align: none;
    }
    
    .slide-content {
        padding: 40px 20px;
        height: auto;
        display: block;
    }
    
    .section-title {
        position: static;
        text-align: left;
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .local-logo {
        position: static;
        text-align: left;
        margin-bottom: 30px;
    }
    
    .local-logo img {
        height: 100px;
    }
    
    .global-header {
        top: 20px;
        right: 20px;
    }
    
    .brand-part-1 {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
    
    .brand-part-2 {
        font-size: 0.85rem;
    }
    
    /* Hide sidebar nav dots on mobile */
    .sidebar-nav {
        display: none;
    }
    
    /* Splash Screen Hero sizing */
    .hero-block {
        margin-left: 0;
        margin-top: 100px;
    }
    
    .hero-title {
        font-size: 12vw;
        letter-spacing: 5px;
    }
    
    .hero-subtitle {
        font-size: 6vw;
        letter-spacing: 4px;
    }
    
    /* Category Selector slide on mobile */
    .split-menu {
        margin-left: 0;
        margin-top: 50px;
    }
    
    .menu-item {
        font-size: 2.5rem;
    }
    
    /* Grid Collapsing */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-grid.cols-3,
    .products-grid.cols-2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .product-img-wrap {
        height: 300px;
    }
    
    /* Clive and Spore Eurorack panels on mobile */
    .eurorack-slide .product-img-wrap {
        height: 380px;
    }
    
    /* About section layout change */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .about-logo {
        width: 180px;
    }
}

@media screen and (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        font-size: 2rem;
    }
    
    .slide-content {
        padding: 20px 10px;
    }
}
