/* 
   Metode.id
   The Narrative / Scrollytelling (Final Production)
   Immersive, Smooth, Premium, Responsive
*/

:root {
    --bg-dark: #121212;
    --text-primary: #e0e0e0;
    --text-dim: #757575;
    --accent: #d4af37; /* Gold */
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden; /* Prevent native scroll */
}

/* UI Layer */
.ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.1em;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 1s var(--ease);
}

.slide-indicator {
    font-family: var(--font-head);
    font-style: italic;
}

/* Presentation Stage */
.presentation-stage {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Slide Styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100vh); /* Start below */
    transition: all 1.2s var(--ease);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 10;
}

.slide.prev {
    opacity: 0;
    transform: translateY(-100vh); /* Move up */
    z-index: 0;
}

/* Content Layouts */
.content-center {
    text-align: center;
    max-width: 800px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl; /* simple hack to swap columns */
}
.split-layout.reverse > * {
    direction: ltr; /* reset text direction */
}

/* Typography */
.overline {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s; /* Delay enter */
}

.slide.active .overline {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: var(--font-head);
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s ease 0.2s;
}

.slide.active .hero-title {
    opacity: 1;
    transform: scale(1);
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dim);
}

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.dictionary-def {
    font-family: serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--text-dim);
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ccc;
    max-width: 500px;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2rem;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-dim);
    animation: bounce 2s infinite;
}

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

/* Visual Elements */
.shape.cube {
    width: 300px;
    height: 300px;
    border: 1px solid var(--text-dim);
    position: relative;
    margin: 0 auto;
    animation: rotate 20s infinite linear;
}

.shape.cube::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.axiom-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.axiom {
    border: 1px solid var(--text-dim);
    padding: 2rem;
    width: 250px;
    transition: transform 0.3s;
}

.axiom:hover {
    background: #fff;
    color: #000;
    transform: translateY(-10px);
}

.axiom h3 {
    font-family: var(--font-head);
    margin-bottom: 0.5rem;
}

.big-id {
    font-size: 15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

.valuation-box {
    margin: 3rem 0;
    padding: 2rem;
    border: 1px solid var(--accent);
}

.valuation-box span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.valuation-box h3 {
    font-size: 3rem;
    font-family: var(--font-head);
    margin-top: 1rem;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center;
    }
    
    .split-layout.reverse { direction: ltr; } /* Reset direction on mobile */
    
    .hero-title { font-size: 15vw; /* Fluid font size for mobile */ }
    
    .axiom-list { flex-direction: column; gap: 1.5rem; align-items: center; }
    
    .slide { 
        padding: 6rem 1.5rem 2rem 1.5rem; /* More top padding for UI, less side */
        align-items: flex-start; 
        overflow-y: auto; /* Allow internal scroll if content overflows slide height */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .shape.cube { width: 150px; height: 150px; margin-top: 2rem; }
    
    .big-id { font-size: 10rem; }
    
    .section-title { font-size: 2rem; }
    
    .ui-layer { padding: 1.5rem; }
    .progress-bar { width: 100px; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 12vw; }
    .body-text { font-size: 0.95rem; }
}

/* Fix for mobile VH units */
@supports (-webkit-touch-callout: none) {
    .presentation-stage, .slide { height: -webkit-fill-available; }
}
