/* naru.day - Digital Marble Museum */
/* Colors: #D4B87A Calacatta Gold, #4A4545 Smoke, #141210 Obsidian, #E8E4DE Travertine, #F0E8DA Warm Marble, #8B9DA5 Slate Blue, #F5F2EE Carrara White, #C4A86A Antique Gold */

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

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

body {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    color: #141210;
    background-color: #F5F2EE;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Floating Geometric Shapes ===== */
#geo-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(212, 184, 122, 0.15);
    animation: geoFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 8%;
    border-radius: 2px;
    transform: rotate(45deg);
    animation-duration: 22s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 40%;
    right: 12%;
    border-radius: 50%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    border-radius: 3px;
    animation-duration: 25s;
    animation-delay: -10s;
}

.shape-4 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 25%;
    border-radius: 1px;
    transform: rotate(30deg);
    animation-duration: 20s;
    animation-delay: -3s;
}

.shape-5 {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 40%;
    border-radius: 50%;
    animation-duration: 23s;
    animation-delay: -8s;
}

@keyframes geoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.35;
    }
}

/* ===== Gallery Room ===== */
.gallery-room {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.room-content {
    max-width: 800px;
    width: 100%;
}

/* ===== Marble Textures ===== */
.room-carrara {
    background:
        linear-gradient(135deg, rgba(200, 195, 190, 0.1) 25%, transparent 25%),
        radial-gradient(ellipse at 30% 40%, rgba(180, 175, 170, 0.08), transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(190, 185, 180, 0.06), transparent 60%),
        #F5F2EE;
}

.room-warm {
    background:
        linear-gradient(160deg, rgba(212, 184, 122, 0.06) 20%, transparent 50%),
        radial-gradient(ellipse at 40% 30%, rgba(240, 232, 218, 0.5), transparent 70%),
        radial-gradient(ellipse at 65% 75%, rgba(196, 168, 106, 0.05), transparent 60%),
        #F0E8DA;
}

.room-gold {
    background:
        linear-gradient(140deg, rgba(212, 184, 122, 0.1) 15%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(196, 168, 106, 0.08), transparent 70%),
        linear-gradient(200deg, rgba(245, 242, 238, 0.6) 30%, transparent 60%),
        #F0E8DA;
}

.room-travertine {
    background:
        linear-gradient(170deg, rgba(232, 228, 222, 0.6) 20%, transparent 50%),
        radial-gradient(ellipse at 35% 55%, rgba(212, 184, 122, 0.06), transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(139, 157, 165, 0.04), transparent 50%),
        #E8E4DE;
}

.room-nero {
    background:
        linear-gradient(135deg, rgba(30, 28, 26, 0.9) 20%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(74, 69, 69, 0.5), transparent 70%),
        radial-gradient(ellipse at 70% 30%, rgba(60, 55, 55, 0.4), transparent 60%),
        #141210;
    color: #F5F2EE;
}

/* ===== Hero / Atrium ===== */
#atrium {
    text-align: center;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    color: #141210;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    animation: heroFade 1.2s ease 0.3s forwards;
}

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

.hero-sub {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #4A4545;
    opacity: 0;
    animation: heroFade 1s ease 0.8s forwards;
    margin-bottom: 2rem;
}

.time-badge {
    display: inline-block;
    opacity: 0;
    animation: heroFade 1s ease 1.2s forwards;
}

.time-period {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C4A86A;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(196, 168, 106, 0.3);
    border-radius: 50px;
}

/* ===== Content Panel ===== */
.content-panel {
    background: rgba(245, 242, 238, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 184, 122, 0.15);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(20, 18, 16, 0.06);
}

.panel-dark {
    background: rgba(20, 18, 16, 0.7);
    border-color: rgba(212, 184, 122, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.gallery-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C4A86A;
}

.time-badge-inline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #8B9DA5;
}

.gallery-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: #141210;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.panel-dark .gallery-title {
    color: #F5F2EE;
}

.gallery-text {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #4A4545;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.panel-dark .gallery-text {
    color: #E8E4DE;
    opacity: 0.8;
}

/* ===== Material Sample ===== */
.material-sample {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sample-swatch {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(212, 184, 122, 0.2);
    flex-shrink: 0;
}

.swatch-carrara {
    background:
        linear-gradient(135deg, rgba(200, 195, 190, 0.15) 30%, transparent 30%),
        #F5F2EE;
}

.swatch-travertine {
    background:
        radial-gradient(circle at 40% 40%, rgba(212, 184, 122, 0.15), transparent 60%),
        #E8E4DE;
}

.sample-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sample-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #141210;
}

.sample-origin {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    color: #8B9DA5;
    letter-spacing: 0.05em;
}

/* ===== Stats ===== */
.stat-row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-value {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #D4B87A;
    line-height: 1;
}

.stat-unit {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B9DA5;
}

/* ===== Quote ===== */
.gallery-quote {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    color: #D4B87A;
    padding-left: 1.5rem;
    border-left: 2px solid #C4A86A;
    line-height: 1.6;
}

.gallery-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: #8B9DA5;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
#closing {
    background: #141210;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: #C4A86A;
    margin: 0 auto 2rem;
}

.footer-domain {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #D4B87A;
    margin-bottom: 0.3rem;
}

.footer-sub {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #8B9DA5;
    opacity: 0.5;
    margin-bottom: 2rem;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F5F2EE;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: #D4B87A;
}

/* ===== Scroll Reveal ===== */
.content-panel {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .gallery-room {
        padding: 4rem 1.5rem;
    }

    .content-panel {
        padding: 2rem;
    }

    .stat-row {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .gallery-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
}
