:root {
    --bg-color: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #ffb3c6;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background */
#dynamic-bg {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110vw;
    height: 110vh;
    z-index: 0; /* behind content */
    pointer-events: none;
    overflow: hidden;
    background-image: url('pic/WhatsApp%20Image%202026-05-10%20at%2009.50.11.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.35; /* Transparency to make it beautiful and text readable */
    filter: blur(4px); /* Soften the background */
    animation: slowPanBg 40s infinite alternate ease-in-out;
}

@keyframes slowPanBg {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

#app {
    position: relative;
    z-index: 10;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,179,198,0.15) 0%, rgba(255,179,198,0) 70%);
    animation: float 20s infinite ease-in-out;
}

.bg-image-blur {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.05;
    filter: blur(15px);
    animation: drift 40s infinite linear;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-100px) scale(1.1); }
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50vw, -50vh) rotate(360deg); }
}

/* Typography & Reveal Classes */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.active {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* 1. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    z-index: 10;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-image-wrapper {
    width: 80%;
    max-width: 1000px;
    height: 50vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* Will be parallaxed by JS */
    transition: transform 0.1s linear;
}

/* 2. Sticky Story Section */
.story-section {
    position: relative;
    height: 300vh; /* Long scroll area to allow parallax reading */
}

.sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to images if needed */
}

.text-block {
    text-align: center;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    max-width: 600px;
    border: 1px solid rgba(0,0,0,0.05);
}

.text-block h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.text-block p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.parallax-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.parallax-img {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
    opacity: 0.9;
    will-change: transform;
}

/* 3. Horizontal Scroll Section */
.horizontal-section {
    height: 400vh; /* Creates scroll room for horizontal track */
    position: relative;
    background: #fff;
}

.sticky-horizontal {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.horizontal-header {
    padding: 0 5vw;
    margin-bottom: 3rem;
}

.horizontal-header h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.horizontal-track-container {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.horizontal-track {
    display: flex;
    gap: 3rem;
    padding: 0 5vw;
    height: 100%;
    will-change: transform;
}

.horizontal-track img {
    height: 100%;
    width: auto;
    max-width: 80vw;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* 4. Grid Section */
.grid-section {
    padding: 10vh 5vw;
    background: var(--bg-color);
}

.grid-header {
    text-align: center;
    margin-bottom: 5rem;
}

.grid-header h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.footer-spacer {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-text {
    font-size: clamp(3rem, 10vw, 8rem);
    background: linear-gradient(135deg, #ff8fab, #ffb3c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }
    
    .hero-image-wrapper {
        width: 95%;
        height: 40vh;
        border-radius: 16px;
    }
    
    .text-block {
        padding: 2rem 1.5rem;
        width: 90%;
        border-radius: 20px;
    }
    
    .horizontal-track-container {
        height: 45vh;
    }
    
    .horizontal-track {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .horizontal-track img {
        max-width: 85vw;
        border-radius: 16px;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        grid-gap: 1rem;
    }
    
    .grid-item {
        border-radius: 12px;
    }
    
    .final-text {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }
}
