/* Base Variables & Setup */
:root {
    --color-primary-dark: #4A152E; /* Deep burgundy/plum background */
    --color-primary: #880E4F;
    --color-accent: #D81B60; /* Soft beautiful pink */
    --color-accent-light: #F48FB1;
    --color-bg-light: #FAF9F6; /* Cream/off-white */
    --color-text-dark: #2C2C2C;
    --color-text-light: #F9F9F9;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
}

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    background: rgba(216, 27, 96, 0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary-dark);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--color-bg-light);
    display: flex;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-image {
    flex: 1;
    min-height: 400px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.modal-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background-color: var(--color-accentlight);
    background: linear-gradient(135deg, #D81B60 0%, #C2185B 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 27, 96, 0.4);
}

/* Sections Common */
section {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #2A091A 100%);
    color: var(--color-text-light);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 20;
}

.hero-content .subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: white;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-weight: 300;
}

.anchor-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    transition: border-color 0.3s ease;
}

.anchor-link:hover {
    border-color: white;
}

/* Quotes Section */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.quote-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    border-top: 4px solid var(--color-accent);
    transition: transform 0.4s ease;
}

.quote-card:hover {
    transform: translateY(-10px);
}

.quote-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.quote-card p {
    color: #555;
}

/* Feature Split Section */
.feature-split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: white;
    margin: 0;
    padding: 8rem 5%;
}

.feature-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-image::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 100%; height: 100%;
    border: 1px solid var(--color-accent-light);
    border-radius: 12px;
    z-index: -1;
}

.feature-text {
    flex: 1;
}

.feature-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--color-bg-light);
}

.gallery-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    transform: translateY(10px);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

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

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.gallery-caption p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Personal Gallery Masonry */
.personal-gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 4rem;
    width: 100%;
}

.personal-gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.personal-gallery-item img {
    width: 100%;
    display: block;
    background-color: #eee;
    transition: transform 0.8s ease;
}

.personal-gallery-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .personal-gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .personal-gallery-grid {
        column-count: 1;
    }
}

/* Letter Section */
.letter-section {
    background-color: white;
    padding: 8rem 5%;
}

.letter-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-light);
    border-radius: 20px;
    padding: 5rem 4rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(216, 27, 96, 0.1);
}

.letter-body {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 2rem;
    font-style: italic;
}

.signature {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 3rem 20px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.left { transform: translateX(-40px); }
.fade-in.left.visible { transform: translateX(0); }

.fade-in.right { transform: translateX(40px); }
.fade-in.right.visible { transform: translateX(0); }

.fade-in.up { transform: translateY(50px); }
.fade-in.up.visible { transform: translateY(0); }

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

/* Responsive Media Queries */
@media (max-width: 900px) {
    .modal-overlay {
        align-items: flex-start;
    }
    .modal-content {
        flex-direction: column;
        margin: auto;
    }
    .modal-image {
        min-height: 200px;
        max-height: 40vh;
    }
    .modal-text {
        padding: 2.5rem 2rem;
    }
    .modal-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .modal-desc {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .feature-split-section {
        flex-direction: column;
        padding: 4rem 5%;
        gap: 2.5rem;
    }
    .main-title {
        font-size: 2.8rem;
    }
    section {
        padding: 5rem 5%;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1.05rem;
    }
    .letter-card {
        padding: 2.5rem 1.5rem;
    }
    .quotes-grid {
        gap: 1.5rem;
    }
    .gallery-slider {
        margin-top: 2rem;
    }
}
