:root {
    --bg-dark: #140d0a; 
    --bg-darker: #0d0806;
    --text-main: #f4eee8;
    --text-muted: #c2b2a4;
    --accent-amber: #d86822;
    --accent-amber-dark: #a6420c;
    --card-bg: #1f1410;
    --glass-bg: rgba(31, 20, 16, 0.75);
    --glass-border: rgba(216, 104, 34, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body.loading { overflow: hidden; }

/* SVG Loader */
#loader {
    position: fixed; inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease;
}
.mud-cup-svg { width: 150px; height: 150px; }
.cup-outline {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: drawCup 1.5s ease-in-out forwards;
}
.cup-fill {
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0.9;
    animation: fillCup 1.2s ease-out 1.2s forwards;
}
@keyframes drawCup { to { stroke-dashoffset: 0; } }
@keyframes fillCup { to { transform: scaleY(1); } }
body.loaded #loader { opacity: 0; pointer-events: none; }

/* Main layout / Nav */
.glass-nav {
    position: fixed; top: 0; width: 100%; padding: 1.2rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}
.logo { font-size: 1.8rem; font-weight: 700; color: var(--text-main); text-decoration: none; }
.logo .dot { color: var(--accent-amber); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.hover-effect {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    position: relative; padding: 0.5rem 0; transition: color 0.3s ease;
}
.hover-effect::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-amber); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.hover-effect:hover { color: var(--text-main); }
.hover-effect:hover::before { transform: scaleX(1); transform-origin: left; }

.btn {
    display: inline-block; padding: 0.8rem 1.8rem; border-radius: 6px; font-weight: 600;
    text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer;
    font-family: inherit; font-size: 1rem;
}
.primary-btn { background: var(--accent-amber); color: #fff; }
.primary-btn:hover { background: var(--accent-amber-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(216, 104, 34, 0.4); }
.solid-btn { background: var(--text-main); color: var(--bg-dark); }
.solid-btn:hover { background: #e0d0c0; transform: translateY(-2px); }
.outline-btn { border: 1px solid var(--accent-amber); color: var(--accent-amber); background: transparent; }
.outline-btn:hover { background: var(--accent-amber); color: #fff; }

.section { padding: 120px 5%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.section-title { font-size: 3rem; margin-bottom: 1rem; text-align: center; color: var(--text-main); }
.section-desc { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 4rem auto; font-size: 1.1rem; line-height: 1.6;}

/* Hero */
#hero { flex-direction: row; align-items: center; justify-content: space-between; position: relative; }
.hero-text { max-width: 500px; z-index: 2; }
.earthen-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.hero-image-container { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-img { max-width: 500px; width: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
.floating { animation: floatImg 6s ease-in-out infinite; }
.placeholder-hero { width: 400px; height: 400px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-amber), var(--bg-dark)); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; opacity: 0.8; }
@keyframes floatImg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Cards */
.earthen-card {
    background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-subtle);
    overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.earthen-card:hover { transform: translateY(-8px); border-color: var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.card-image { height: 220px; overflow: hidden; background: #2a1c15; position: relative;}
.card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.earthen-card:hover .card-image img { opacity: 1; transform: scale(1.05); transition: all 0.5s; }
.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--accent-amber); font-size: 1.5rem; font-weight: 600; opacity: 0.6; }
.card-content { padding: 2.5rem; }
.course-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-main); }
.course-meta { font-size: 0.95rem; color: var(--accent-amber); margin-bottom: 1rem; font-weight: 500; }
.course-card p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }

/* Testimonials */
.dark-section { background: var(--bg-darker); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feedback-card { background: var(--bg-dark); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border-subtle); }
.rating { color: var(--accent-amber); margin-bottom: 1rem; font-size: 1.2rem; letter-spacing: 2px;}
.feedback-text { font-size: 1.1rem; font-style: italic; line-height: 1.6; margin-bottom: 2rem; color: var(--text-main); }
.author-info { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--card-bg); display: flex; justify-content: center; align-items: center; border: 1px solid var(--accent-amber); font-weight: 700; color: var(--accent-amber); }
.author { font-weight: 600; color: var(--text-main); }
.author-title { font-size: 0.85rem; color: var(--text-muted); }

/* Form */
.form-container { max-width: 600px; margin: 0 auto; padding: 3rem; }
.input-group { position: relative; margin-bottom: 2.5rem; }
.input-group input, .input-group textarea { width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 1px solid var(--border-subtle); color: var(--text-main); font-family: inherit; font-size: 1.1rem; transition: border-color 0.3s; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-bottom-color: var(--accent-amber); }
.input-group label { position: absolute; top: 1rem; left: 0; color: var(--text-muted); pointer-events: none; transition: 0.3s; }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label { top: -15px; font-size: 0.85rem; color: var(--accent-amber); }
.w-100 { width: 100%; }

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Sub-page Specific */
.sub-header { padding: 150px 5% 60px; text-align: center; background: var(--bg-darker); border-bottom: 1px solid var(--border-subtle); }
.sub-title { font-size: 4rem; color: var(--text-main); margin-bottom: 1rem; }
.sub-meta { font-size: 1.2rem; color: var(--accent-amber); }
.curriculum-list { max-width: 800px; margin: 4rem auto; }
.module { background: var(--card-bg); margin-bottom: 2rem; padding: 2.5rem; border-radius: 8px; border-left: 4px solid var(--accent-amber); transition: transform 0.3s; }
.module:hover { transform: translateX(10px); }
.module h4 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--text-main); }
.module p { color: var(--text-muted); line-height: 1.6; font-size: 1.05rem; }

/* Journey Animation Timeline */
.timeline { position: relative; max-width: 900px; margin: 4rem auto; padding: 2rem 5%; }
.timeline::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: var(--border-subtle); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6rem; position: relative; opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.timeline-item.active { opacity: 1; transform: translateY(0); }
.timeline-content { width: 45%; background: var(--card-bg); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border-subtle); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.timeline-content h3 { font-size: 1.8rem; color: var(--accent-amber); margin-bottom: 1rem; }
.timeline-content p { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); }
.timeline-graphic { width: 45%; display: flex; justify-content: center; align-items: center; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

/* SVG Animations for Journey */
.anim-svg { width: 180px; height: 180px; filter: drop-shadow(0 0 20px rgba(216, 104, 34, 0.2)); }
.draw-path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.timeline-item.active .draw-path { animation: drawLine 2.5s ease-in-out forwards; }
.fade-in-group { opacity: 0; transform: scale(0.8); transform-origin: center; }
.timeline-item.active .fade-in-group { animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s forwards; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

/* How To Make Chai Page - Sticky Scroll Transitions */
.how-to-container { display: flex; position: relative; max-width: 1200px; margin: 0 auto; padding: 4rem 5%; }
.sticky-visuals {
    position: sticky; top: 15vh; height: 70vh; width: 50%;
    border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-subtle); background: var(--card-bg);
}
.phase-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 4s ease-out;
    transform: scale(1.1);
}
.phase-img.active-phase { opacity: 1; transform: scale(1); z-index: 2; }
.scrolling-steps { width: 50%; padding-left: 6rem; padding-bottom: 20vh; z-index: 5;}
.step-card {
    min-height: 85vh; display: flex; flex-direction: column; justify-content: center;
}
.step-card h2 { font-size: 3rem; color: var(--accent-amber); margin-bottom: 1.5rem; }
.step-card p { font-size: 1.25rem; line-height: 1.8; color: var(--text-muted); }
.spacer { min-height: 50vh; align-items: flex-start; justify-content: flex-start; padding-top: 5rem;}

/* Responsive */
@media (max-width: 900px) {
    .how-to-container { flex-direction: column; }
    .sticky-visuals { position: relative; top: 0; width: 100%; height: 40vh; margin-bottom: 3rem; position: sticky; top: 100px; z-index: 10; }
    .scrolling-steps { width: 100%; padding-left: 0; }
    .step-card { min-height: 60vh; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-start; padding-left: 50px; }
    .timeline-content, .timeline-graphic { width: 100%; }
    .timeline-graphic { margin-top: 2rem; }
    
    #hero { flex-direction: column; text-align: center; }
    .hero-text { margin-bottom: 4rem; }
    .earthen-title { font-size: 3.5rem; }
    .nav-links { display: none; } /* Simplified mobile nav */
    .hero-image-container { width: 100%; }
}
