/* ==========================================================================
   Desserbugs Corner CSS Stylesheet
   ========================================================================== */

/* Design System Variables */
:root {
    --bg-color: #0a0a0f;
    --card-bg: #14141f;
    --card-border: rgba(255, 255, 255, 0.03);
    --card-border-glow: rgba(212, 165, 116, 0.25);
    
    --accent-warm: #d4a574;
    --accent-warm-hover: #e3bc92;
    --accent-warm-dark: #8b6914;
    --accent-cool: #7eb8da;
    --accent-cool-hover: #98c9e7;
    
    --text-primary: #f0ece6;
    --text-secondary: #8a8580;
    --text-muted: #5e5a56;
    
    --gradient-warm: linear-gradient(135deg, #d4a574 0%, #8b6914 100%);
    --gradient-cool: linear-gradient(135deg, #7eb8da 0%, #4a82a5 100%);
    --gradient-dark: linear-gradient(180deg, #14141f 0%, #0c0c14 100%);
    --gradient-burn: radial-gradient(circle, rgba(212,165,116,0.12) 0%, rgba(139,105,20,0.02) 70%, rgba(0,0,0,0) 100%);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Base64 Noise Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-warm-hover);
}

p {
    color: var(--text-secondary);
}

/* Layout Utilities */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-cool);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f0ece6 50%, #b5afaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-intro {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--gradient-warm);
    color: #1c1106;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 165, 116, 0.25);
    color: #1c1106;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-cool);
    color: var(--accent-cool);
}

.btn-secondary:hover {
    background: rgba(126, 184, 218, 0.05);
    color: var(--accent-cool-hover);
    transform: translateY(-2px);
}

/* Organic SVGs & Dividers */
.divider-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.organic-divider {
    display: block;
    width: 100%;
    height: 36px;
}

.divider-container.flipped {
    transform: scaleY(-1) scaleX(-1);
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 38px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

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

.nav-btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: #1c1106;
    background: var(--accent-warm);
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-btn:hover {
    background: var(--accent-warm-hover);
    color: #1c1106;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.hero-logo-wrapper {
    margin-bottom: 24px;
}

.hero-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(212,165,116,0.3));
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f0ece6 40%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-separator {
    width: 80px;
    height: 2px;
    background: var(--accent-warm);
    margin: 16px auto;
}

.hero-location {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 18px;
    font-style: italic;
    color: var(--accent-cool);
    margin-bottom: 36px;
    min-height: 27px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--text-primary);
    border-right: 2px solid var(--text-primary);
    transform: rotate(45deg);
}

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

/* The Workshop Section */
.workshop-section {
    background-color: var(--card-bg);
}

.workshop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.workshop-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tool-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tool-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.tool-icon.warm-accent {
    color: var(--accent-warm);
    border-color: rgba(212, 165, 116, 0.15);
}

.tool-icon.cool-accent {
    color: var(--accent-cool);
    border-color: rgba(126, 184, 218, 0.15);
}

.tool-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.tool-info p {
    font-size: 14px;
}

/* Workshop Video Card */
.workshop-video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background-color: #000;
}

.card-burn-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    border: 4px solid transparent;
    background: var(--gradient-burn);
}

.workshop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--card-border);
}

.video-overlay span {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* What We Make Section (Etsy categories) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-glow);
    box-shadow: 0 12px 24px rgba(212, 165, 116, 0.08);
}

.category-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
    margin-bottom: 24px;
    transition: var(--transition-bounce);
}

.category-card:hover .category-icon {
    background-color: rgba(212, 165, 116, 0.05);
    border-color: rgba(212, 165, 116, 0.2);
    color: var(--accent-warm-hover);
    transform: rotate(5deg) scale(1.05);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.category-card p {
    font-size: 14px;
    line-height: 1.5;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,165,116,0.03) 0%, rgba(0,0,0,0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Founders Section */
.founders-section {
    background-color: var(--card-bg);
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.founder-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.founder-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.founder-card:hover .founder-img {
    transform: scale(1.03);
}

.founder-role {
    font-family: var(--font-heading);
    color: var(--accent-cool);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.founder-name {
    font-size: 28px;
    margin: 4px 0 16px 0;
}

.founder-bio {
    font-size: 15px;
    margin-bottom: 20px;
}

.founder-quote {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--accent-warm);
    border-left: 2px solid var(--accent-warm);
    padding-left: 16px;
    margin: 20px 0;
}

.founders-statement {
    margin-top: 80px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.founders-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(212,165,116,0.3) 50%, rgba(0,0,0,0) 100%);
    width: 100%;
    margin-bottom: 40px;
}

.founders-statement h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.founders-statement p {
    font-size: 16px;
}

/* Featured Products (Showcase Grid) */
.gallery-section {
    background-color: var(--bg-color);
}

.gallery-masonry {
    columns: 3 320px;
    column-gap: 20px;
}

.gallery-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 12px;
    break-inside: avoid;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--card-border-glow);
}

.gallery-img-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gallery-img-wrapper img,
.gallery-img-wrapper video {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-caption {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-caption {
    color: var(--accent-warm);
}

/* Video specific gallery styles */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
    z-index: 2;
    transition: var(--transition-smooth);
}

.gallery-item:hover .play-overlay {
    background-color: rgba(212, 165, 116, 0.9);
    color: #1c1106;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 44px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10002;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-warm);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10001;
}

#lightbox-media-container {
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-media-container img,
#lightbox-media-container video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-warm);
    margin-top: 20px;
    text-align: center;
}

/* How It Works (The Process) */
.process-section {
    background-color: var(--card-bg);
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(212, 165, 116, 0.1);
    border: 1.5px solid var(--accent-warm);
    color: var(--accent-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(212,165,116,0.1);
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.process-step p {
    font-size: 13px;
    line-height: 1.6;
}

.process-connector {
    width: 60px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-connector svg {
    width: 100%;
}

/* Footer Section styling */
.main-footer {
    background-color: #06060a;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 40px 24px;
}

.footer-cta {
    text-align: center;
    margin-bottom: 80px;
}

.footer-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: var(--accent-warm);
    margin: 0 auto 32px auto;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.footer-btn.btn-primary {
    background: var(--gradient-warm);
    color: #1c1106;
}

.footer-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
}

.footer-btn.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-cool);
    color: var(--accent-cool);
}

.footer-btn.btn-secondary:hover {
    background: rgba(126, 184, 218, 0.05);
    transform: translateY(-2px);
}

.footer-btn.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.footer-btn.btn-ghost:hover {
    color: var(--text-primary);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
}

.footer-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 13px;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-separator {
    color: rgba(255,255,255,0.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-connector {
        display: none;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .process-step {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 24px;
        transition: 0.3s ease;
        border-top: 1px solid rgba(255,255,255,0.02);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu.active ~ .menu-toggle .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-menu.active ~ .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu.active ~ .menu-toggle .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .workshop-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-tagline {
        font-size: 15px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
