/* ============================================
   MIRIS.STUDIO - COMPLETE STYLESHEET
   ============================================ */

/* COLOR PALETTE */
:root {
    --color-primary-light: #F0E8DA;
    --color-secondary-light: #E0D4C0;
    --color-tertiary-light: #C8A878;
    --color-accent-tan: #B8A088;
    --color-accent-neutral: #C8C0B4;
    --color-accent-brown: #A09888;
    --color-dark-primary: #0E0B12;
    --color-dark-secondary: #1A1520;
    --color-dark-tertiary: #2A2228;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-dark-primary);
    color: var(--color-primary-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* VIEWPORT & SCROLL CONTAINER */
.viewport {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.noise-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='400' height='400' fill='%23000' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0;
    animation: fadeInNoise 0.6s ease-out 0.4s forwards;
}

@keyframes fadeInNoise {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.03;
    }
}

.radial-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: bloomRadial 0.6s ease-out 0.4s forwards;
}

@keyframes bloomRadial {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* PANELS - INFLATED 3D EFFECT */
.panel {
    position: relative;
    margin: 0 auto;
    margin-bottom: 60px;
    padding: 80px 40px;
    max-width: 900px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2A2228 0%, #1A1520 100%);
    border: 1px solid rgba(224, 212, 192, 0.15);

    /* Inflated 3D stacked box-shadow depth */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 8px 12px rgba(0, 0, 0, 0.5),
        0 16px 24px rgba(0, 0, 0, 0.6),
        0 24px 40px rgba(0, 0, 0, 0.7),
        inset -2px -2px 8px rgba(0, 0, 0, 0.3),
        inset 2px 2px 8px rgba(240, 232, 218, 0.08);

    animation: panelReveal 0.8s ease-out both;
    opacity: 0;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.panel:nth-child(1) { animation-delay: 1.2s; }
.panel:nth-child(2) { animation-delay: 1.4s; }
.panel:nth-child(3) { animation-delay: 1.6s; }
.panel:nth-child(4) { animation-delay: 1.8s; }
.panel:nth-child(5) { animation-delay: 2.0s; }
.panel:nth-child(6) { animation-delay: 2.2s; }

/* HERO PANEL */
.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 40px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #2A2228 0%, #1A1520 100%);
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

.hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-primary-light);
    text-align: center;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.6),
        8px 8px 16px rgba(0, 0, 0, 0.7),
        -2px -2px 4px rgba(224, 212, 192, 0.1);
    animation: heroTextReveal 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(-30px);
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--color-tertiary-light);
    text-transform: uppercase;
    text-align: center;
    margin-top: 24px;
    animation: heroTextReveal 1s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

/* PANEL CONTENT */
.panel-content {
    text-align: center;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-primary-light);
    margin-bottom: 24px;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.4);
}

.section-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(240, 232, 218, 0.8);
    margin: 0 auto;
    max-width: 600px;
}

/* SHOWROOM PANEL */
.showroom-panel {
    text-align: center;
}

/* PEDESTAL PANELS */
.pedestal-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 80px;
}

@media (max-width: 768px) {
    .pedestal-panel {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

.pedestal-blob-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pedestal-blob {
    width: 280px;
    height: 280px;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    animation: blobFloat 4s ease-in-out infinite;
}

.pedestal-blob:nth-child(1) {
    animation-delay: 0s;
}

.pedestal-blob:nth-child(2) {
    animation-delay: 0.8s;
}

.pedestal-blob:nth-child(3) {
    animation-delay: 1.6s;
}

.pedestal-blob:nth-child(4) {
    animation-delay: 2.4s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.blob-path {
    filter: drop-shadow(inset 0 2px 4px rgba(0, 0, 0, 0.3));
    animation: blobMorph 6s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% {
        d: path("M 100 25 Q 160 35 170 85 Q 180 140 130 175 Q 80 185 45 165 Q 15 140 20 85 Q 25 40 100 25 Z");
    }
    50% {
        d: path("M 100 20 Q 165 30 175 90 Q 185 150 125 180 Q 75 190 40 160 Q 10 135 15 80 Q 20 35 100 20 Z");
    }
}

/* Additional color palette support */
.color-palette {
    --color-warm-brown-deep: #3A2A1A;
    --color-warm-brown-dark: #4A3A2A;
}

.pedestal-content {
    text-align: left;
}

.pedestal-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-secondary-light);
    margin-bottom: 16px;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.4);
}

.pedestal-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(240, 232, 218, 0.75);
}

/* FOOTER PANEL */
.footer-panel {
    margin-bottom: 60px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.footer-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--color-tertiary-light);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(224, 212, 192, 0.05);
}

.footer-link:hover {
    color: var(--color-primary-light);
    border-color: var(--color-tertiary-light);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(224, 212, 192, 0.1);
    transform: translateY(-2px);
}

.footer-credit {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: rgba(240, 232, 218, 0.4);
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(224, 212, 192, 0.1);
    text-transform: uppercase;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .panel {
        padding: 60px 30px;
        margin-bottom: 40px;
        border-radius: 16px;
    }

    .hero-panel {
        min-height: 80vh;
    }

    .pedestal-blob {
        width: 200px;
        height: 200px;
    }

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

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

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .panel {
        padding: 40px 20px;
        margin-bottom: 30px;
        border-radius: 12px;
    }

    .hero-panel {
        min-height: 70vh;
    }

    .pedestal-blob {
        width: 160px;
        height: 160px;
    }

    .section-text {
        font-size: 1rem;
    }

    .footer-links {
        gap: 20px;
    }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-tan);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-light);
}

/* SELECTION STYLING */
::selection {
    background-color: var(--color-tertiary-light);
    color: var(--color-dark-primary);
}
