:root {
    /* Day Palette */
    --bg-day: #f4eadd;      /* Paper Cream */
    --bg-soft: #e8d0b0;     /* Sepia */
    --text-day: #4a4540;    /* Dark Brown */
    --accent: #d4a373;      /* Warm Orange/Brown */
    
    /* Night Palette (Insomnia Mode) */
    --bg-night: #1a1025;    /* Deep Void */
    --bg-night-soft: #2a2035;
    --text-night: #e0d0f0;  /* Ghostly Purple */
    --accent-night: #9d72ff;

    /* Current Theme Variables */
    --bg-body: var(--bg-day);
    --bg-alt: var(--bg-soft);
    --text-main: var(--text-day);
    --text-accent: var(--accent);
    --card-bg: rgba(255, 255, 255, 0.4);
}

/* Insomnia Mode Override */
body.insomnia-mode {
    --bg-body: var(--bg-night);
    --bg-alt: var(--bg-night-soft);
    --text-main: var(--text-night);
    --text-accent: var(--accent-night);
    --card-bg: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    transition: background-color 1.5s ease, color 1.0s ease;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, .font-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-accent { color: var(--text-accent); }
.text-muted { opacity: 0.75; }
.tracking-wide { letter-spacing: 0.2em; }
.display-1 { font-size: 4.5rem; }

/* Film Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navbar */
.navbar {
    transition: padding 0.3s ease, background-color 0.3s ease;
}
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.navbar-brand { font-size: 1.5rem; color: var(--text-main) !important; }
.nav-link { color: var(--text-main) !important; opacity: 0.7; transition: opacity 0.2s; }
.nav-link:hover { opacity: 1; }

/* Buttons */
.btn-outline-custom {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

/* Hero Section */
.hero-section { min-height: 90vh; }
.hero-decoration { font-size: 2rem; color: var(--text-accent); opacity: 0.5; }
.scroll-down-btn {
    text-decoration: none;
    color: var(--text-main);
    opacity: 0.6;
    transition: opacity 0.3s;
    display: inline-block;
}
.scroll-down-btn:hover { opacity: 1; }

/* Sections */
.section-padding { padding: 120px 0; }
.bg-soft { background-color: var(--bg-alt); }

/* --- POLAROID EFFECT (New) --- */
.polaroid-stack {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.polaroid-frame {
    background-color: #fff;
    padding: 12px 12px 50px 12px;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
    max-width: 350px;
    width: 100%;
    position: relative;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
}

.polaroid-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1) brightness(0.9); /* Vintage filter */
    border: 1px solid rgba(0,0,0,0.1);
}

.polaroid-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #333; /* Marker color */
    opacity: 0.8;
}

/* --- AUDIO DEMO SECTION (New) --- */
.audio-card {
    margin-top: 10px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-card.active {
    border: 1px solid var(--text-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--text-accent);
    color: var(--bg-body);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Customizing basic audio player slightly */
.custom-audio {
    height: 40px;
    border-radius: 20px;
    opacity: 0.8;
}

/* Process Cards */
.process-card {
    background: var(--card-bg);
    padding: 2rem;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.process-card:hover { transform: translateY(-5px); }
.step-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--text-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 10px;
}

/* Glow Circle in Footer */
.glow-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--text-accent) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}
.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}