/* Color Variables */
:root {
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1e;
    --accent-pink: #ff6b9d;
    --accent-pink-light: #ff8fb3;
    --accent-pink-dark: #e55a87;
    --text-primary: #f5f5f5;
    --text-secondary: #d0d0d0;
    --text-muted: #a0a0a0;
    --card-bg: #252540;
    --card-border: rgba(255, 107, 157, 0.2);
    --card-hover-border: rgba(255, 107, 157, 0.5);
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(255, 107, 157, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 107, 157, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    animation: backgroundShift 10s ease-in-out infinite;
}

/* Song Player Container */
.song-player-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.song-question {
    color: var(--text-primary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-song-btn {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-pink-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    font-family: inherit;
}

.play-song-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.play-song-btn:active {
    transform: scale(0.98);
}

.song-player {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease-out;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 10px;
    max-width: 400px;
}

.song-player iframe,
.audio-player-iframe {
    display: block;
    width: 100%;
    height: 152px;
    border: none;
    border-radius: 8px;
}

.html5-audio-player {
    width: 100%;
    height: 54px;
    background: var(--card-bg);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .song-player-container {
        top: 15px;
        left: 15px;
        gap: 8px;
    }
    
    .song-player {
        max-width: 350px;
    }
    
    .song-player iframe,
    .audio-player-iframe {
        height: 152px;
    }
}

@media (max-width: 480px) {
    .song-player-container {
        top: 10px;
        left: 10px;
    }
    
    .play-song-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .song-player {
        max-width: 280px;
        padding: 8px;
    }
    
    .song-player iframe,
    .audio-player-iframe {
        height: 152px;
    }
    
    .html5-audio-player {
        height: 48px;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }
    50% {
        background-position: 20% 30%, 80% 70%, 50% 50%, 0% 0%;
    }
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.heart-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5));
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5));
    }
    50% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.8));
    }
}

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

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

/* Larger hearts */
.floating-heart:nth-child(1),
.floating-heart:nth-child(5),
.floating-heart:nth-child(9),
.floating-heart:nth-child(13),
.floating-heart:nth-child(17) {
    font-size: 2rem;
    opacity: 0.4;
}

/* Extra large hearts */
.floating-heart:nth-child(3),
.floating-heart:nth-child(11),
.floating-heart:nth-child(19) {
    font-size: 2.5rem;
    opacity: 0.35;
}

.floating-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-heart:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.floating-heart:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.floating-heart:nth-child(4) {
    left: 50%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.floating-heart:nth-child(5) {
    left: 70%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.floating-heart:nth-child(6) {
    left: 80%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.floating-heart:nth-child(7) {
    left: 40%;
    animation-delay: 2.5s;
    animation-duration: 14s;
}

.floating-heart:nth-child(8) {
    left: 60%;
    animation-delay: 4.5s;
    animation-duration: 16s;
}

.floating-heart:nth-child(9) {
    left: 15%;
    animation-delay: 1.5s;
    animation-duration: 13s;
}

.floating-heart:nth-child(10) {
    left: 25%;
    animation-delay: 3.5s;
    animation-duration: 15s;
}

.floating-heart:nth-child(11) {
    left: 35%;
    animation-delay: 0.5s;
    animation-duration: 14s;
}

.floating-heart:nth-child(12) {
    left: 45%;
    animation-delay: 2.2s;
    animation-duration: 16s;
}

.floating-heart:nth-child(13) {
    left: 55%;
    animation-delay: 4.2s;
    animation-duration: 12s;
}

.floating-heart:nth-child(14) {
    left: 65%;
    animation-delay: 1.2s;
    animation-duration: 17s;
}

.floating-heart:nth-child(15) {
    left: 75%;
    animation-delay: 3.2s;
    animation-duration: 13s;
}

.floating-heart:nth-child(16) {
    left: 85%;
    animation-delay: 5.2s;
    animation-duration: 15s;
}

.floating-heart:nth-child(17) {
    left: 5%;
    animation-delay: 0.8s;
    animation-duration: 14s;
}

.floating-heart:nth-child(18) {
    left: 90%;
    animation-delay: 2.8s;
    animation-duration: 16s;
}

.floating-heart:nth-child(19) {
    left: 12%;
    animation-delay: 4.8s;
    animation-duration: 13s;
}

.floating-heart:nth-child(20) {
    left: 95%;
    animation-delay: 1.8s;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--accent-pink);
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 107, 157, 0.5));
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.name-placeholder {
    color: var(--accent-pink);
    font-weight: 500;
}

.hero-intro {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 40px;
}

/* Reasons Section */
#reasons h3 {
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.reason-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-pink-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.reason-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.reason-card:hover::before {
    transform: scaleX(1);
}

.reason-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 107, 157, 0.1);
    position: relative;
    flex-shrink: 0;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 107, 157, 0.05);
}

.image-placeholder span {
    font-size: 3rem;
    margin-bottom: 10px;
}

.image-placeholder p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reason-content {
    padding: 20px 25px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reason-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.reason-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.reason-label {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-pink);
    background: rgba(255, 107, 157, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reason-category {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--accent-pink-light);
    background: rgba(255, 107, 157, 0.15);
    padding: 4px 10px;
    border-radius: 10px;
}

/* Image Carousel */
#carousel-section {
    background: rgba(255, 107, 157, 0.05);
    padding: 80px 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    flex-shrink: 0;
    width: 300px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--card-hover-border);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-pink-dark));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    flex-shrink: 0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-slider {
    flex: 1;
    max-width: 500px;
    height: 6px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.carousel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-pink);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.carousel-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(255, 107, 157, 0.5);
}

.carousel-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-pink);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.carousel-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(255, 107, 157, 0.5);
}

/* Timeline for Memories */
.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-pink-light));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    min-width: 100px;
    font-size: 0.9rem;
    color: var(--accent-pink);
    font-weight: 500;
    text-align: right;
    padding-top: 5px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-pink);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(255, 107, 157, 0.5);
    background: var(--accent-pink-light);
}

.timeline-content {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px 25px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.7;
}

.timeline-content:hover {
    border-color: var(--card-hover-border);
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow-soft);
}

.timeline-content p {
    margin: 0;
    color: var(--text-primary);
}

/* Map Section */
#map-section {
    padding: 80px 0;
    background: rgba(255, 107, 157, 0.02);
}

#map-section h3 {
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.map-container {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
    padding: 40px 20px;
}

.map-background {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
}

#world-map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.country {
    fill: rgba(255, 107, 157, 0.25);
    stroke: rgba(255, 107, 157, 0.9);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.marker-pin {
    width: 20px;
    height: 20px;
    background: #FFD700;
    border: 3px solid var(--bg-dark);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.map-marker:hover .marker-pin {
    transform: rotate(-45deg) scale(1.3);
    background: #FFED4E;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.6);
}

.marker-tooltip {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 25px var(--shadow-soft);
    z-index: 10;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--card-bg);
}

.map-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.marker-tooltip h4 {
    color: var(--accent-pink-light);
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.marker-tooltip p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.highlight {
    color: var(--accent-pink-light);
    font-weight: 500;
}

/* Bugg Course Reveal Section - Christmas Gift */
#bugg-section {
    padding: 80px 0;
    background: rgba(255, 107, 157, 0.02);
}

.gift-container {
    max-width: 500px;
    margin: 0 auto;
    perspective: 1200px;
}

.gift-box {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
}

.gift-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 3px solid #991b1b;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.gift-lid.opened {
    transform: rotateX(-120deg);
}

.gift-lid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    border-radius: 8px 8px 0 0;
}

.gift-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 3px solid #991b1b;
    border-radius: 0 0 8px 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    box-shadow: 0 5px 20px var(--shadow-soft);
    z-index: 1;
    position: relative;
}

.gift-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

.gift-content::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 20px;
    background: var(--accent-pink);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.gift-content h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
    position: relative;
    z-index: 3;
}

.gift-lid.opened ~ .gift-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.gift-content .revealed-text {
    color: var(--text-primary);
    font-size: clamp(0.8rem, 1.6vw, 1rem);
    text-align: center;
    line-height: 1.8;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
    position: relative;
    z-index: 3;
}

.gift-lid.opened ~ .gift-content .revealed-text {
    opacity: 1;
    transform: translateY(0);
}

/* Gift Bow */
.gift-bow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.bow-center {
    width: 60px;
    height: 60px;
    background: var(--accent-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5);
    z-index: 2;
    position: relative;
}

.bow-left,
.bow-right {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: var(--accent-pink);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.4);
}

.bow-left {
    left: -20px;
    transform: translateY(-50%) rotate(-45deg);
}

.bow-right {
    right: -20px;
    transform: translateY(-50%) rotate(135deg);
}

/* Gift Ribbons */
.gift-ribbon-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--accent-pink);
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.gift-ribbon-vertical {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 20px;
    background: var(--accent-pink);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.open-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--accent-pink);
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

/* Closing Section */
#closing {
    padding: 60px 0;
    text-align: center;
}

.closing-message {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    font-style: italic;
}

.signature {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reason-image {
        height: 180px;
    }

    .reason-content {
        padding: 20px;
    }

    #carousel-section {
        padding: 60px 0;
    }

    .carousel-slide {
        width: 250px;
        height: 350px;
    }

    .carousel-track {
        gap: 15px;
    }

    .carousel-controls {
        gap: 15px;
        margin-top: 30px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .carousel-slider {
        max-width: 300px;
    }

    .timeline {
        padding: 0 10px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        gap: 20px;
    }

    .timeline-date {
        min-width: 70px;
        font-size: 0.85rem;
    }

    .timeline-dot {
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 18px 20px;
        font-size: 1rem;
    }

    #map-section {
        padding: 60px 0;
    }

    .map-background {
        height: 500px;
    }

    .marker-tooltip {
        min-width: 180px;
        max-width: 250px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #hero {
        min-height: 80vh;
    }

    .floating-heart {
        font-size: 1.2rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        font-size: 1.5rem;
    }

    .scroll-text {
        font-size: 0.75rem;
    }

    section {
        padding: 40px 0;
    }

    .reason-image {
        height: 160px;
    }

    .reason-content {
        padding: 18px;
    }

    #carousel-section {
        padding: 40px 0;
    }

    .carousel-slide {
        width: 200px;
        height: 280px;
    }

    .carousel-track {
        gap: 12px;
    }

    .carousel-controls {
        gap: 10px;
        margin-top: 25px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .carousel-slider {
        max-width: 200px;
    }

    .timeline {
        padding: 0 5px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        gap: 15px;
        margin-bottom: 40px;
    }

    .timeline-date {
        min-width: 60px;
        font-size: 0.8rem;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 15px 18px;
        font-size: 0.95rem;
    }

    #bugg-section {
        padding: 40px 0;
    }

    .gift-box {
        height: 350px;
    }

    .gift-content {
        padding: 30px 20px;
    }

    .bow-center {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .bow-left,
    .bow-right {
        width: 35px;
        height: 35px;
    }

    .open-hint {
        font-size: 0.8rem;
        bottom: 15px;
    }

    #map-section {
        padding: 40px 0;
    }

    .map-background {
        height: 400px;
    }

    .marker-tooltip {
        min-width: 150px;
        max-width: 200px;
        padding: 10px 14px;
    }
}

