/* Base Styles */
:root {
    --primary-color: #8B0000;
    /* Dark Red - Elegant */
    --accent-color: #D4AF37;
    /* Gold Accent */
    --bg-color: #FFF5F5;
    /* Very soft pink/white background */
    --text-color: #333;
    --card-bg: rgba(255, 255, 255, 0.85);
    /* Glass effect */
    --transition-speed: 0.8s;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #fff 0%, #ffeef0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle pattern */
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--primary-color);
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Slight transparency to blend with background color */
}

/* Optional Overlay if image is too busy */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 245, 245, 0.4);
    /* Soft pink overlay */
    z-index: 0;
}

.fade-in-down {
    animation: fadeInDown 1.5s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1.5s ease-out 0.5s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Main Content */
.gallery-container {
    max-width: 1200px;
    /* Wider container */
    margin: 0 auto;
    padding: 4rem 2rem;
}

.story-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6rem;
    /* More spacing between sections */
    opacity: 0;
    /* Initially hidden for scroll reveal */
    transform: translateY(50px);
    transition: all var(--transition-speed) ease-out;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-section.left-align {
    flex-direction: row;
}

.story-section.right-align {
    flex-direction: row-reverse;
}

/* Text & Image Styling */
.text-content {
    flex: 1;
    padding: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, elegant shadow */
    max-width: 500px;
    position: relative;
    z-index: 2;
    /* Bring text slightly above */
    transition: transform 0.3s ease;
}

.text-content:hover {
    transform: translateY(-5px);
}

.text-content h2 {
    font-size: 2.2rem;
    /* Larger headers */
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.text-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    /* Underline accent */
    height: 3px;
    background: var(--accent-color);
}

.text-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-placeholder {
    width: 400px;
    /* Fixed visually pleasing size */
    height: 500px;
    /* Portrait aspect ratio */
    background: #e0e0e0;
    display: flex;
    flex-direction: column;
    /* Stack text and icon */
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Slightly deeper shadow for images */
    font-weight: bold;
    color: #888;
    text-align: center;
    padding: 20px;
    border: 2px dashed #bbb;
    /* Make it look like a placeholder */
    position: relative;
    overflow: hidden;
    /* Ensure content stays inside border radius */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.image-placeholder i {
    font-size: 3rem;
    margin-top: 1rem;
    opacity: 0.5;
}


/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: #333;
    color: white;
    font-family: 'Playfair Display', serif;
    margin-top: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .story-section {
        flex-direction: column !important;
        /* Stack everything */
        margin-bottom: 4rem;
        text-align: center;
        /* Center align on mobile */
    }

    .text-content {
        margin-bottom: 2rem;
        /* Separate text from image */
        padding: 2rem;
        width: 100%;
        max-width: none;
        order: 1;
        /* Text first? Or Image first? usually image first is nice on mobile but text explains it better. Let's keep source order or force order. */
    }

    .text-content h2::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center underline */
    }

    .image-wrapper {
        width: 100%;
        order: 2;
    }

    .image-placeholder {
        width: 100%;
        /* Full width on mobile */
        height: 400px;
        /* Slightly shorter */
    }
}

/* Image Styling */
.story-image {
    width: 100%;
    max-width: 450px;
    /* Limit max width */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
    object-fit: cover;
    display: block;
}

.story-image:hover {
    transform: scale(1.02);
}