/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: var(--beige-accent-light, #EAE0D1); border-radius: 5px;}
    ::-webkit-scrollbar-thumb { background: var(--beige-accent, #D4C1A9); border-radius: 5px;}
    ::-webkit-scrollbar-thumb:hover { background: #b8a58a; }
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #F8F8F8; /* Soft Off-White */
    --text-color: #2C2C2C; /* Dark Grey/Near Black */
    --beige-accent: #D4C1A9; /* Muted Beige */
    --beige-accent-light: #f9f2e7; /* Lighter beige for hover or subtle elements */
    --border-color: #E0E0E0; /* Light grey for borders */

    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans-ui: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    cursor: url('img/cursor.png'), auto;
}

/* Preloader Styles */
#preloader {
    position: fixed; /* Cover the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color, #F8F8F8); /* Match your site's main light background */
    /* Or a slightly darker/different elegant color for contrast, e.g., var(--beige-accent-light) */
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0s linear 1s; /* Fade out transition */
}

#preloader.is-loaded {
    opacity: 0;
    visibility: hidden; /* Remove from layout after fade */
}

.preloader-content {
    text-align: center;
}

.loading-text {
    font-family: var(--font-sans-ui, 'Montserrat', sans-serif);
    font-size: 1rem;
    color: var(--text-color, #555);
    letter-spacing: 0.5px;
    animation: subtlePulse 2.5s infinite ease-in-out;
}

.cat-loader-icon {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    animation: subtlePulse 2s infinite ease-in-out;
    filter: o;
}
@keyframes subtlePulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600; /* Playfair looks good at this weight */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--text-color);
    line-height: 1.3;
}

#hero {
    background-image: url('img/bg.png'); /* Main hero image - LAYER 1 (BOTTOM) */
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

/* Hero H1: "Happy Birthday" */
#hero h1 {
    font-size: 4rem; /* Adjust as needed */
    font-weight: 700; /* Bolder for main greeting */
    letter-spacing: 1px;
    margin-bottom: 0px;
}

/* Hero H1 Script: "[Her Name]" */
#hero h1.her-name-script {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--beige-accent);
    font-weight: normal; /* Script fonts don't usually need bold */
    margin-bottom: 25px;
    line-height: 1.1;
}

h2 { /* Section Titles */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

h2::after { /* Underline for H2 */
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--beige-accent);
    margin: 10px auto 0;
}

h3 { /* Sub-headings e.g., in Qualities */
    font-family: var(--font-sans-ui); /* Montserrat for H3 */
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-color); /* Dark text for H3 */
    margin-bottom: 8px;
    text-transform: uppercase; /* Optional: for a more 'designer' feel */
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem; /* Slightly smaller for more elegance */
    font-weight: 300; /* Lighter body text */
}

a {
    text-decoration: none;
    color: var(--beige-accent);
    font-weight: 500; /* Montserrat buttons */
    transition: color 0.3s ease;
}
a:hover {
    color: #b8a58a; /* Darker beige on hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px; /* Slightly softer radius */
}

.container {
    max-width: 1100px; /* Wider for more whitespace */
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Styling */
.full-screen-section {
    min-height: 100vh;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center;
    padding: 40px 20px;
}

.content-section {
    padding: 70px 20px;
}

.section-beige-bg { /* For sections with beige background */
    background-color: var(--beige-accent-light); /* Lightest beige */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
#hero {
    text-align: left; /* Align hero text left */
}
.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px; /* Max width for hero content */
    padding: 0 20px;
}
.hero-text {
    flex: 1 1 55%; /* Text takes more space */
}
.hero-image-container {
    flex: 1 1 40%; /* Image takes less space */
    max-width: 450px; /* Max width for image */
    position: relative;
}

.hero-main-photo {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(69, 58, 44, 0.5);
}

#hero .subtitle {
    font-family: var(--font-sans-ui);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: #555; /* Slightly darker grey for subtitle */
    max-width: 450px; /* Limit width of subtitle */
}

#hero .author {
    font-family: var(--font-sans-ui);
    color: var(--beige-accent);
    font-weight: 400;
    align-items: center;
}

.scroll-down-btn {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid var(--beige-accent);
    padding: 10px 20px;
    border-radius: 30px; /* Pill shape */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    font-size: 0.9rem;
    font-family: var(--font-sans-ui);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.scroll-down-btn span {
     color: var(--text-color);
}

.scroll-down-btn:hover {
    background-color: var(--beige-accent);
    color: #fff; /* White text on beige hover */
}
.scroll-down-btn:hover i {
    color: #fff;
}



/* Memories Section - Scattered List Styling */
#memories {
    background-image: url('img/bg\ beige.png'); /* Main hero image - LAYER 1 (BOTTOM) */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    text-align: center; /* Center the h2 and subtitle within the container */
    padding-top: 60px; /* Ensure consistent top padding */
    padding-bottom: 70px; /* Ensure consistent bottom padding */
    position: relative; /* Needed if ul becomes truly absolute to viewport */
    overflow: hidden; /* Prevent rotated items from causing scrollbars */
}

.scattered-polaroids-wrapper {
    position: relative; /* Crucial for containing the absolutely positioned ul */
    min-height: 300px;  /* Adjust based on number of images and their size, to prevent collapse */
    margin-top: 40px;   /* Space below H2 */
    margin-bottom: 50px;/* Space above subtitle */
    display: flex; /* To help center the ul if it's not full width */
    justify-content: center;
}

#memories ul {
    position: relative;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    /* display: inline-block; /* Remove this to allow flexbox to manage line breaks */
    /* white-space: nowrap; /* Remove this */
    display: flex; /* Use flexbox for better wrapping and alignment */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items on the line */
    align-items: flex-start; /* Align items to the top of their line */
}

#memories li {
    text-align: center;
    position: relative;
    list-style: none;
    position: relative;
    border: solid 12px #fff; /* INCREASED BORDER FOR BIGGER POLAROID FEEL */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 15px;
    margin: 20px; /* INCREASED MARGIN FOR BIGGER ITEMS */
    vertical-align: middle; /* Still useful for flex items with varying heights after transform */
    width: 300px;  /* << SET DESIRED WIDTH FOR BIGGER IMAGES (BASE SIZE) */
    /* height: auto; /* Let aspect ratio of image + padding determine height */
}

#memories li::before { /* Using ::before or ::after for the paw print */
    content: '';
    position: absolute;
    bottom: 5px; /* Adjust position */
    right: 5px;  /* Adjust position */
    width: 35px; /* Small size */
    height: 35px;/* Small size */
    background-image: url('img/paw.png'); /* Use an SVG for scalability */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4; /* Very subtle */
}

#memories li img {
    display: block;
    width: 100%; /* Image fills the width of the li (inside its padding) */
    height: auto; /* Maintain aspect ratio */
    /* If you want all images to conform to a specific aspect ratio for the photo area: */
    /* aspect-ratio: 3 / 4; /* Example: Portrait */
    /* object-fit: cover; /* If using aspect-ratio to ensure it fills */
}

/* Default Rotations and Stacking - adjust as needed */
#memories li:nth-child(1) {
    transform: rotate(8deg) translateX(-20px) translateY(-5px);
    z-index: 1;
}
#memories li:nth-child(2) {
    transform: rotate(-90deg) translateX(5px) translateY(10px);
    z-index: 2; /* This one will be more on top */
}
#memories li:nth-child(3) {
    transform: rotate(-5deg) translateX(35px) translateY(5px);
    z-index: 1;
}
#memories li:nth-child(4) {
    transform: rotate(-100deg) translateX(-10px) translateY(-10px);
    z-index: 2;
}
#memories li:nth-child(5) {
    transform: rotate(7deg) translateX(25px) translateY(5px);
    z-index: 2;
}

.memories-subtitle { /* Style for the subtitle paragraph */
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto; /* Center the subtitle paragraph */
}

/* Modify the existing responsive rules: */

@media (max-width: 768px) {
    .scattered-polaroids-wrapper {
        min-height: auto; /* Let content dictate height */
        margin-top: 30px;
        margin-bottom: 40px;
    }
    #memories li {
        width: calc(50% - 40px); /* Two items per row, accounting for margin */
        /* Or for single column on smaller tablets: */
        /* width: calc(80% - 40px); /* Larger, almost full width */
        /* max-width: 300px; /* Optional max width for items */
        margin: 15px; /* Adjust margin for tablet */
    }
    /* Adjust transforms for mobile if the desktop layout is too spread out */
    /* These may need less translateX/Y when items are bigger and closer */
    #memories li:nth-child(1) { transform: rotate(6deg) translateX(-3%) translateY(-2%); }
    #memories li:nth-child(2) { transform: rotate(-100deg) translateX(2%) translateY(3%); }
    #memories li:nth-child(3) { transform: rotate(8deg) translateX(-4%) translateY(-1%); }
    #memories li:nth-child(4) { transform: rotate(-85deg) translateX(3%) translateY(1%); }
    #memories li:nth-child(5) { transform:rotate(-2deg) !important; z-index: 5;}
}

@media (max-width: 520px) { /* Breakpoint for single column stacking */
    #memories li {
        width: calc(90% - 30px); /* Single item per row, taking most of the width */
        max-width: 280px; /* Max width for very small screens */
        margin: 20px auto; /* Center the single item */
        /* Reset or simplify transforms for vertical stack if they look odd */
        transform: rotate(0deg) !important; /* Example: Straighten them for vertical stack */
    }
    /* If straightening, remove individual nth-child transforms for this breakpoint or set them to rotate(0) */
    #memories li:nth-child(1) { transform:rotate(2deg) !important; z-index: 1;}
    #memories li:nth-child(2) { transform:rotate(-92deg) !important; z-index: 2;}
    #memories li:nth-child(3) { transform:rotate(1deg) !important; z-index: 3;}
    #memories li:nth-child(4) { transform:rotate(-86deg) !important; z-index: 4;}
    #memories li:nth-child(5) { transform:rotate(-2deg) !important; z-index: 5;}
}


/* Section 3: Particle Sky Styling */
.section-particle-sky {
    min-height: 100vh;
    position: relative; /* For positioning overlay content */
    background-color: #000010; /* Fallback dark background */
    display: flex; /* To center the overlay content */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important to contain particles canvas */
}

#particles-js-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Behind other content */
}

.constellation-content-overlay {
    position: relative; /* Ensure it's above particles */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 900px; /* Max width for content */
}

.svg-constellation-container {
    width: 70%;
    max-width: 450px; /* Or adjust based on how large you want the constellation */
    margin-bottom: 30px;
    transform: scale(0.9); /* Initial slightly smaller scale */
    opacity: 0.7; /* Initial opacity */
    transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1s ease-out;
}

#gemini-svg {
    width: 100%;
    height: auto; /* Maintain aspect ratio defined by viewBox */
    /* filter: drop-shadow(0 0 8px rgba(200, 200, 255, 0.4)); /* Subtle glow for the whole SVG */
    overflow: visible; /* Allows glows/strokes to extend slightly if needed */
}

#gemini-svg #gemini-constellation-group {
    filter: drop-shadow( 0 0 1px #ffffff) drop-shadow( 0 0 5px #ffffff) drop-shadow( 0 0 10px #ffffff);
}

#gemini-svg #gemini-constellation-group line {
    animation: pulseSVGDotMajor 1.8s infinite ease-in-out;
}

/* Focus effect for the SVG container when section is "focused" */
/* This .focused class will be added via IntersectionObserver JS */
.section-particle-sky.focused .svg-constellation-container { /* Adjust zoom level */
    opacity: 1;
}
.section-particle-sky.focused .gemini-star-svg.major-star {
    animation: pulseSVGDotMajor 1.8s infinite ease-in-out;
}
.section-particle-sky.focused .gemini-star-svg:not(.major-star) { /* Minor stars */
    animation: pulseSVGDotMinor 2.4s infinite ease-in-out alternate;
}

@keyframes pulseSVGDotMajor { /* For bigger stars */
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
@keyframes pulseSVGDotMinor { /* For smaller stars, more subtle */
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.9; }
}


.gemini-text-display h1 {
    font-family: var(--font-sans-ui, 'Montserrat', sans-serif); /* CHANGED: Clean Sans-serif for elegance */
    font-size: 1.5rem;  /* REDUCED: Smaller for a more subdued, elegant look */
    font-weight: 300; /* Lighter font weight */
    color: rgba(230, 230, 255, 0.9); /* Softer white/lavender */
    text-shadow: 0 0 10px rgba(180, 190, 255, 0.5), /* Subtle glow */
                 0 0 20px rgba(150, 160, 230, 0.3);
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0 10px; /* Add some horizontal padding if text is long */
}

.corner-thought-text {
    position: absolute;
    bottom: 25px; /* Distance from the bottom of the section */
    right: 30px;  /* Distance from the right of the section */
    z-index: 5;   /* Ensure it's above particles, but potentially below other UI if needed */
    max-width: 300px; /* Limit width to prevent awkward wrapping */
    text-align: right; /* Align text to the right within its box */
}

.corner-thought-text p {
    font-family: var(--font-sans-ui, 'Montserrat', sans-serif); /* Or an italic serif for a "thought" feel */
    font-size: 1rem;  /* Small and subtle */
    font-style: italic; /* Italic for a thought-like quality */
    color: rgba(255, 255, 255, 0.6); /* Soft, ethereal color */
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 0 5px rgba(150, 160, 200, 0.3); /* Very subtle glow */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .svg-constellation-container {
        width: 80%;
        max-width: 350px;
        margin-bottom: 20px;
    }
    .section-particle-sky.focused .svg-constellation-container {
        transform: scale(1.1);
    }
    .gemini-text-display h1 {
        font-size: 3rem;
    }
}
@media (max-width: 480px) {
    .svg-constellation-container {
        width: 90%;
        max-width: 280px;
    }
    .section-particle-sky.focused .svg-constellation-container {
        transform: scale(1); /* Less or no zoom on very small screens */
    }
    .gemini-text-display h1 {
        font-size: 2.4rem;
    }
}

#reunion-plan {
    background-image: url('img/bg.png'); /* Main hero image - LAYER 1 (BOTTOM) */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

#reunion-plan.chat-itinerary {
    background-color: var(--beige-accent-light, #EAE0D1); /* Soft beige background for the whole section */
    padding: 70px 15px 90px 15px; /* Adjusted padding */
    overflow: hidden;
}

#reunion-plan.chat-itinerary h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.4rem;
    color: var(--text-color, #4A4A4A); /* Slightly softer dark text */
    margin-bottom: 50px;
    text-align: center;
}

.chat-day-events-container {
    max-width: 700px; /* Max width of the chat interface */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 45px; /* Space between day blocks */
}

.chat-day-block {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    border-radius: 25px;
}

.chat-date-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.4); /* Slightly transparent white */
    backdrop-filter: blur(4px);
    border-radius: 20px; /* Pill shape */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: max-content; /* Shrink to content */
    /* position: relative; left: -10px; /* Optional slight offset */
}

.chat-avatar-icon {
    width: 28px; /* Adjust size */
    height: 28px;
    margin-right: 12px;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); } 
    25% { transform: rotate(-4deg); } 
    50% { transform: rotate(0deg); } 
    75% { transform: rotate(4deg); } 
    100% { transform: rotate(0deg); } 
}

.chat-date-header span {
    font-family: var(--font-sans-ui, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color, #333);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between messages */
}

.chat-message {
    border-radius: 18px; /* Rounded corners for chat bubble */
    max-width: 75%; /* Bubbles don't take full width */
    position: relative; /* For pseudo-elements like tails or icons */
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    line-height: 1.6;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #383838; /* Darker text for readability in bubbles */
    padding: 12px 18px;
    cursor: pointer;    /* Indicate the whole bubble is clickable if overlay is the only content */
    transition: background-color 0.3s ease; /* For potential hover effect */
    min-height: 60px; /* Ensure even empty revealed messages have some height */
}

.chat-message:not(.is-revealed):hover .message-reveal-overlay {
    background-color: rgba(0,0,0,0.05); /* Subtle hover on overlay */
}


.message-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: inherit; /* Inherit the bubble's actual background color */
    border-radius: inherit; /* Inherit parent's border radius */
    padding: 10px; /* Padding for content within overlay */
    box-sizing: border-box;
    z-index: 2; /* On top of actual content */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.revealable-message.is-revealed .message-reveal-overlay {
    opacity: 0;
    transform: scale(0.9); /* Example exit animation: shrink and fade */
    pointer-events: none; /* Make it non-clickable after reveal */
}

.overlay-prompt-text {
    font-family: var(--font-sans-ui, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(0,0,0,0.6); /* Text color for "Tap to see..." */
    margin-bottom: 5px;
}

.overlay-tap-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.message-actual-content {
    opacity: 0; /* Hidden initially */
    transform: translateY(10px); /* Slight offset for entry animation */
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s; /* Delayed entry */
    /* The <p> tag inside this will inherit .chat-message p styles or have its own */
}
.message-actual-content p {
    margin: 0; /* Reset default paragraph margin */
}

.revealable-message.is-revealed .message-actual-content {
    opacity: 1;
    transform: translateY(0);
}


/* Keep your existing .chat-message.sender-me::before and .chat-message.sender-her::after for avatars */
/* Ensure their z-index is appropriate if they should appear over the overlay or only when revealed */
.chat-message.sender-me::before,
.chat-message.sender-her::after {
    z-index: 1; /* Below overlay, visible after reveal or if overlay is semi-transparent */
    /* OR if you want them always visible, even on overlay: z-index: 3; */
}


/* Responsive adjustments for overlays */
@media (max-width: 480px) {
    .overlay-prompt-text {
        font-size: 0.75rem;
    }
    .overlay-tap-icon {
        width: 20px;
        height: 20px;
    }
    .chat-message {
        min-height: 40px; /* Adjust min-height for smaller bubbles */
    }
}

.chat-message p {
    margin: 0; /* Remove default p margin */
}

/* Sender "Me" - aligned left */
.chat-message.sender-me {
    background-color: rgba(255, 255, 255, 0.8); /* Your main light background or white */
    align-self: flex-start;
    margin-left: 40px; /* Space for avatar if on left */
}
.chat-message.sender-me::before { /* Sender avatar (paw) */
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('img/paw.png'); /* Your outline paw */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: -35px; /* Position avatar to the left */
    bottom: 5px; /* Align with bottom of bubble */
}


/* Sender "Her" - aligned right */
.chat-message.sender-her {
    background-color: rgba(255, 255, 255, 0.8); /* Beige for her messages */
    color: var(--text-color, #333); /* Ensure text is readable on beige */
    align-self: flex-end;
    margin-right: 40px; /* Space for avatar if on right */
}
.chat-message.sender-her::after { /* Sender avatar (different paw/cat) */
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('img/paw.png'); /* Different cat icon */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: -35px; /* Position avatar to the right */
    bottom: 5px;
}

/* Trailing Paw Print for specific messages */
.chat-message.has-paw-trail {
    /* Assuming sender-me for this example, adjust alignment if needed */
    margin-right: 30px; /* Make space for the trailing paw */
}
.chat-message.has-paw-trail::after { /* Using ::after for the trail */
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('img/paw.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: -28px; /* Position to the right of the bubble */
    bottom: 5px;
    opacity: 0.7;
}
/* If sender-her has a trail, use ::before and adjust left positioning */


.chat-itinerary-closing {
    margin-top: 60px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-color, #4A4A4A);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #reunion-plan.chat-itinerary h2 { font-size: 2.2rem; }
    .chat-date-header { margin-left: auto; margin-right: auto; /* Center date header */ }
    .chat-message { max-width: 85%; font-size: 0.95rem; padding: 10px 15px; }
    .chat-message.sender-me { margin-left: 35px; }
    .chat-message.sender-her { margin-right: 35px; }
    .chat-message.sender-me::before, .chat-message.sender-her::after { width: 20px; height: 20px; left: -30px; right: -30px; bottom: 3px; }
    .chat-message.has-paw-trail::after { width: 18px; height: 18px; right: -25px; }
}

@media (max-width: 480px) {
    #reunion-plan.chat-itinerary h2 { font-size: 1.9rem; margin-bottom: 40px; }
    .chat-day-events-container { gap: 35px; }
    .chat-date-header span { font-size: 1rem; }
    .chat-avatar-icon { width: 24px; height: 24px; margin-right: 10px; }
    .chat-message { max-width: 90%; font-size: 0.9rem; }
    .chat-message.sender-me { margin-left: 0; padding-left: 15px; /* Avatar might be too much, remove pseudo-element or adjust significantly */ }
    .chat-message.sender-me::before { display: none; /* Hide avatar on very small screens or reposition */ }
    .chat-message.sender-her { margin-right: 0; padding-right: 15px; }
    .chat-message.sender-her::after { display: none; /* Hide avatar */ }
    .chat-message.has-paw-trail { margin-right: 0; }
    .chat-message.has-paw-trail::after { display: none; /* Hide trailing paw if too cluttered */ }
    .chat-itinerary-closing { font-size: 1.5rem; }
}

/* Section 5: Video Message Styling */
#video-message-section {
    background-image: url('img/bg\ beige.png'); /* Main hero image - LAYER 1 (BOTTOM) */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    padding: 70px 15px 90px 15px;
    text-align: center;
}

#video-message-section h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.5rem;
    color: var(--text-color, #333);
    margin-bottom: 50px;
}

.video-placeholder-wrapper {
    max-width: 720px; /* Max width for the video player area */
    margin: 0 auto;
    background-color: #fff; /* White background for the "player" card */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio ( (9 / 16) * 100% ) */
    /* For 4:3 aspect ratio, use padding-bottom: 75%; */
    height: 0;
    overflow: hidden;
    background-color: #111; /* Dark background for the video area */
    border-radius: 8px; /* Rounded corners for the video player itself */
}

.video-embed-container iframe,
.video-embed-container video,
.video-embed-container .video-static-placeholder { /* Ensure placeholder also fills */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* For iframe */
}

.video-embed-container iframe,
.video-embed-container video { /* This rule already covers the <video> tag */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-static-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ccc; /* Light text on dark placeholder bg */
    font-family: var(--font-sans-ui, 'Montserrat', sans-serif);
}
.play-icon-placeholder {
    width: 120px; /* Adjust size */
    height: 120px;
    opacity: 1;
    cursor: pointer;
    margin-bottom: 20px;
    filter: sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    /* Above filter can make a black SVG icon white if needed */
}
.video-static-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.video-static-placeholder span {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}


.video-caption {
    margin-top: 25px;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 1.15rem;
    font-style: italic;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #video-message-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .video-placeholder-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #video-message-section h2 {
        font-size: 1.9rem;
    }
    .video-placeholder-wrapper {
        padding: 10px;
    }
    .play-icon-placeholder {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .video-static-placeholder p {
        font-size: 1rem;
    }
    .video-static-placeholder span {
        font-size: 0.8rem;
    }
    .video-caption {
        font-size: 1rem;
        margin-top: 20px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center; /* Center text when stacked */
    }
    #hero { text-align: center; }
    #hero h1 { font-size: 3.5rem; }
    #hero h1.her-name-script { font-size: 4.5rem; }
    .hero-text { order: 2; } /* Text below image on mobile */
    .hero-image-container { order: 1; margin-bottom: 30px; max-width: 350px;}
    #hero .subtitle { margin-left: auto; margin-right: auto; } /* Center subtitle */
    h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    #hero h1.her-name-script { font-size: 4rem; }
    h2 { font-size: 2rem; margin-bottom: 30px;}
    h3 { font-size: 1.3rem; }
    p { font-size: 1rem; }
    #wishes .wish-text { font-size: 1.15rem; }
    .signature { font-size: 2.5rem; }

    .container { padding: 0 20px; }
    .content-section { padding: 60px 15px; }

    #qualities .qualities-list {
        flex-direction: column;
        align-items: center;
    }
    .quality-item {
        flex-basis: 100%;
        max-width: 400px;
    }
    #memories .gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 2.5rem; }
    #hero h1.her-name-script { font-size: 3.2rem; }
    h2 { font-size: 1.8rem; }
    h2::after { width: 60px; margin-top: 8px;}
    h3 { font-size: 1.2rem; }
    #hero .subtitle { font-size: 1rem; }
    .signature { font-size: 2.2rem; }
    .scroll-down-btn, .cta-button { padding: 10px 18px; font-size: 0.85rem;}
}

@keyframes bounceFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(-2px); /* Settle back */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.her-name-script.animate-name {
    display: inline-block; /* Important for transform to work well */
    animation: bounceFadeIn 0.5s ease-out forwards;
}

/* Section 6: My Thoughts About You Styling */
#my-thoughts-section.thoughts-reveal-section {
    background-image: url('img/bg.png'); /* Main hero image - LAYER 1 (BOTTOM) */
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: center center;
    background-size: cover;
    background-blend-mode:lighten;
    padding: 80px 15px 90px 15px;
    text-align: center;
    min-height: 70vh; /* Ensure enough space for text to animate in */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#my-thoughts-section h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.5rem;
    color: var(--text-color, #333);
    margin-bottom: 50px;
    position: relative; /* For potential decorative underline */
}
/* Optional decorative underline for H2 */
#my-thoughts-section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background-color: var(--beige-accent, #D4C1A9);
    margin: 10px auto 0 auto;
    opacity: 0.7;
}

.thoughts-paragraph-container {
    max-width: 750px; /* Adjust for comfortable reading width */
    margin: 0 auto;
    padding: 60px;
    border-radius: 25px;
    text-align: center; /* Or 'center' if you prefer centered lines */
    backdrop-filter: blur(8px);
}

.thought-line {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-style: italic;
    font-size: 1.35rem;
    font-weight: 400;
    color: #404040;
    line-height: 1.8;
    margin-bottom: 12px;

    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Initial offset */
    /* We will control animation play state with a class from JS */
}

.thought-line:last-child {
    margin-bottom: 0;
}

.thought-line:first-child::first-letter, .thought-line:nth-child(4)::first-letter, .thought-line:nth-child(6)::first-letter {
    font-size: 2em; /* Adjust size */
    font-family: var(--font-heading); /* Or your heading font */
    color: var(--beige-accent, #fac78a);
    float: left; /* Allows text to wrap around it */
    margin-right: 0em;
    line-height: 0.35; /* Adjust to align nicely */
    padding-top: 0.1em; /* Adjust */
}

/* Class to trigger the animation */
.thought-line.is-visible {
    animation-name: fadeInLineUp;
    animation-duration: 0.8s; /* Duration of one line's animation */
    animation-fill-mode: forwards; /* Stay at the end state */
    animation-timing-function: ease-out; /* Or cubic-bezier(0.25, 0.46, 0.45, 0.94) */
    /* Animation-delay will be set inline by JavaScript */
}

@keyframes fadeInLineUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #my-thoughts-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .thought-line {
        font-size: 1.15rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    #my-thoughts-section {
        padding: 60px 15px 70px 15px;
        min-height: auto; /* Let content dictate height */
    }
    #my-thoughts-section h2 {
        font-size: 1.9rem;
        margin-bottom: 30px;
    }
    .thoughts-paragraph-container {
        max-width: 100%; /* Full width on small screens */
    }
    .thought-line {
        font-size: 1.05rem;
        text-align: left; /* Or center, depending on preference */
    }
}

/* Section 7: Pinky Promise Styling */
#pinky-promise.final-promise-section {
    background-image: url('img/bg.png'); /* Main hero image - LAYER 1 (BOTTOM) */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    padding: 80px 15px 100px 15px;
    text-align: center;
    min-height: 80vh; /* Give it some space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.promise-svg-container { /* Adjust based on your SVG size */
    width: 100%;      /* Responsive width */
    margin: 0 auto 30px auto; /* Center SVG and space below */
}

.pinky-promise-svg {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below SVG */
}


.promise-text {
    font-family: "Borel", cursive; /* Your elegant script font */
    font-size: 2rem; /* Adjust size */
    color: var(--text-color, #444);
    line-height: 1.4;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promise-text .pinky-word {
    color: #FF69B4; /* Hot Pink */
    /* font-weight: bold; /* Optional if script font is too thin */
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3); /* Subtle pink glow */
}

.promise-text .heart-symbol {
    color: #FF1493; /* Deep Pink for the heart */
    font-size: 1.2em; /* Slightly larger heart */
    display: inline-block;
    transform: translateY(-2px); /* Fine-tune vertical alignment */
}

.final-signature {
    font-family: 'Borel', cursive;
    font-size: 1.8rem;
    color: #323232;
    margin-top: 70px;
    line-height: 1.6;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    #pinky-promise.final-promise-section {
        padding: 60px 15px 80px 15px;
        min-height: 70vh;
    }
    .promise-text {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }
    .final-signature {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #pinky-promise.final-promise-section {
        padding: 50px 15px 70px 15px;
        min-height: auto; /* Let content define height */
    }
    .promise-text {
        font-size: 1.5rem;
        max-width: 90%;
    }
    .final-signature {
        font-size: 1.2rem;
    }
}