/* ============================================================
   pencloser.com - Mid-Century Modern + Generative Art
   ============================================================ */

:root {
    /* Aurora Gradient Palette */
    --color-gold: #D4A24C;
    --color-muted-gold: #B8963A;
    --color-teal: #3DB88C;
    --color-purple: #7B4FA2;
    --color-dark: #2A2520;
    --color-darker: #1A1A2E;
    --color-cream: #F5F0E8;
    --color-off-white: #F0ECE4;

    /* Typography */
    --font-display: "DM Serif Display", serif;
    --font-body: "Source Serif 4", serif;
    --font-ui: "Inter", sans-serif;

    /* Spacing */
    --space-unit: 1rem;
}

/* ============================================================
   Base Styles
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-darker);
    color: var(--color-cream);
    overflow-x: hidden;
    perspective: 1px;
    overflow-y: auto;
    height: 100vh;
}

/* ============================================================
   Parallax Container & Sections
   ============================================================ */

.parallax-container {
    perspective: 1px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}

.section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
    transform: translateZ(-2px) scale(3);
    animation: aurora-shift 20s ease-in-out infinite;
}

@keyframes aurora-shift {
    0% {
        opacity: 0.95;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.95;
    }
}

.generative-art {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: blur(1px);
    animation: drift 30s ease-in-out infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.content-panel {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 46, 0.85);
    padding: 4rem 3rem;
    max-width: 700px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 162, 76, 0.2);
    animation: fade-in-up 1s ease-out forwards;
    filter: blur(0px);
    opacity: 1;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

@keyframes fade-in-up {
    from {
        opacity: 0.7;
        transform: translateY(20px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Blur-focus effect: blur incoming sections */
.section:not(.showroom) .content-panel {
    filter: blur(6px);
    opacity: 0.7;
}

/* Focused section removes blur */
.section.in-view .content-panel {
    filter: blur(0px);
    opacity: 1;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--color-gold);
    font-weight: 400;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-gold);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-off-white);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

em {
    color: var(--color-teal);
    font-style: italic;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--color-gold);
}

a:hover {
    color: var(--color-teal);
    border-bottom-color: var(--color-teal);
}

/* ============================================================
   Section-Specific Styles
   ============================================================ */

.showroom {
    background: linear-gradient(135deg, #3DB88C 0%, #7B4FA2 50%, #D4A24C 100%);
}

.showroom-content {
    text-align: center;
}

.domain-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--color-off-white);
    margin-bottom: 1rem;
    font-weight: 400;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-gold);
    font-style: italic;
    font-family: var(--font-body);
}

.problem-section .content-panel {
    border-color: rgba(61, 184, 140, 0.2);
}

.solution-section .content-panel {
    border-color: rgba(212, 162, 76, 0.2);
}

.principles-section .content-panel {
    border-color: rgba(123, 79, 162, 0.2);
}

.enclosure-section .content-panel {
    border-color: rgba(184, 150, 58, 0.2);
}

.contact-section .content-panel {
    border-color: rgba(61, 184, 140, 0.2);
}

/* ============================================================
   Lists
   ============================================================ */

.principles-list {
    list-style: none;
    padding-left: 0;
}

.principles-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-off-white);
}

.principles-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 1.5rem;
}

.principles-list strong {
    color: var(--color-teal);
    font-weight: 600;
}

/* ============================================================
   Buttons
   ============================================================ */

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    margin-top: 1rem;
    background: var(--color-gold);
    color: var(--color-darker);
    border: none;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: var(--color-teal);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* ============================================================
   Contact Information
   ============================================================ */

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 162, 76, 0.3);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
    .content-panel {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    p {
        font-size: 1rem;
    }

    .principles-list li {
        padding: 0.75rem 0 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .domain-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-panel {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .domain-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}
