:root {
    --bg-blush: #FCE4EC;
    --text-color: #B04A3C;
    --accent-gold: #FDF1D6;
}

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

body {
    background-color: var(--bg-blush);
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    cursor: default;
}

/* Sparkle Canvas */
#sparkle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    border-bottom: 1px solid rgba(176, 74, 60, 0.2);
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
    background-color: var(--bg-blush);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 30;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    padding: 4rem;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.audio-info h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-gallery-item {
    height: auto !important;
    aspect-ratio: 1 / 1;
    width: 100% !important;
    margin: 0 !important;
    align-self: center !important;
}

.photo-gallery-item img {
    border-radius: 12px !important;
}

.content {
    flex: 1;
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@keyframes writeIn {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.title-image {
    width: 115%;
    max-width: none;
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    margin-left: -10%;
    display: block;
    animation: writeIn 2.5s linear forwards;
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInText 2.0s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 1.5s;
}

p.description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
    font-style: italic;
    opacity: 0;
    animation: fadeInText 2.0s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 2.0s;
}

/* Image styling */
.image-container {
    flex: 1;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image-container.slide-in {
    opacity: 1;
    transform: translateY(0);
}

#homepage-photo {
    transition-delay: 0.3s;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(176, 74, 60, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--text-color);
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(176, 74, 60, 0.1) 0%, rgba(176, 74, 60, 0) 100%);
}

/* Audio Player */
.audio-player-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.demo-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
    text-transform: none; /* Ensures no all-caps */
}

.video-container {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 0;
    background-color: rgba(176, 74, 60, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    opacity: 0;
    animation: fadeInText 1s ease forwards;
    animation-delay: 0.2s;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(176, 74, 60, 0.1) 0%, rgba(176, 74, 60, 0) 100%);
    pointer-events: none;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(176, 74, 60, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(176, 74, 60, 0.1);
}

.play-btn {
    background: var(--text-color);
    color: var(--bg-blush);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
}

.sound-bars {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 40px;
}

.bar {
    flex: 1;
    min-width: 2px;
    background-color: var(--text-color);
    height: 100%;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

.bar.playing {
    animation: bounceBar 0.6s ease-in-out infinite alternate;
    opacity: 1;
}

@keyframes bounceBar {
    0% { transform: scaleY(0.1); }
    100% { transform: scaleY(0.8); }
}

.time-display {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    min-width: 80px;
    text-align: right;
}

/* Pages Styling */
.page-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.page-content {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 700px;
}

/* Text Animations */
.page-title, .page-content p, .page-content div > *, .demo-heading {
    opacity: 0;
    animation: fadeInText 2.0s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.page-title { animation-delay: 0.1s; }
.demo-heading { animation-delay: 0.1s; }
.page-content > p:nth-of-type(1) { animation-delay: 0.2s; }
.page-content > p:nth-of-type(2) { animation-delay: 0.3s; }
.page-content > p:nth-of-type(3) { animation-delay: 0.4s; }
.page-content > p:nth-of-type(4) { animation-delay: 0.5s; }

.page-content div > h2 { animation-delay: 0.2s; }
.page-content div > h3 { animation-delay: 0.3s; }
.page-content div > p:nth-of-type(1) { animation-delay: 0.4s; }
.page-content div > p:nth-of-type(2) { animation-delay: 0.5s; }
.page-content div > p:nth-of-type(3) { animation-delay: 0.6s; }

/* Footer & Socials */
footer {
    padding: 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

a[href*="netlify.com"], #netlify-badge, iframe[title="Netlify badge"] {
    display: none !important;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        padding: 1.5rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo a { font-size: 1.2rem; }
    .hamburger { display: flex; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: auto;
        min-width: 200px;
        background-color: var(--bg-blush);
        text-align: right;
        gap: 1.5rem;
        padding: 2rem;
        border-bottom: 1px solid rgba(176, 74, 60, 0.2);
        border-left: 1px solid rgba(176, 74, 60, 0.2);
        border-bottom-left-radius: 16px;
        z-index: 99;
        
        /* Slide animation */
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: -5px 15px 30px rgba(176, 74, 60, 0.05);
    }

    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    main {
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        gap: 1.5rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .about-main {
        flex-direction: column-reverse !important;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .photo-gallery-item {
        height: auto !important;
        aspect-ratio: 1 / 1;
        width: 100% !important;
        margin: 0 !important;
        align-self: center !important;
    }

    .photo-gallery-item img {
        border-radius: 12px !important;
    }

    .title-image {
        width: calc(100% + 3rem) !important;
        max-width: none !important;
        margin-left: -1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .subtitle {
        margin-bottom: 1rem !important;
        text-align: left !important;
        animation-delay: 1.5s !important;
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        white-space: nowrap !important;
    }

    .page-title {
        font-size: 2.5rem !important;
        word-break: break-word !important;
    }

    .page-content p {
        font-size: 1.1rem !important;
        overflow-wrap: break-word !important;
    }

    .content {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .description {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
        text-align: left !important;
        animation-delay: 2.0s !important;
    }
    
    .image-container {
        flex: none !important;
        width: 100% !important;
        height: 400px !important;
        align-self: center !important;
        margin: 0 !important;
    }

    #homepage-photo {
        transition-delay: 2.5s !important;
    }

    div.photo-gallery-item.image-container {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    footer { padding: 1.5rem; }
}
