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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    padding-top: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
    border-radius: 2px;
}

/* Section 1: The Grand Reveal */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
    transform: translateY(30px);
    opacity: 0;
    animation: slideInUp 1s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.6s;
}

.title-line:nth-child(3) {
    animation-delay: 0.9s;
}

.highlight {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
    font-weight: 300;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(207, 207, 207);
    font-size: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.8s forwards;
    cursor: pointer;
}

.scroll-down-indicator i {
    animation: bounce 2s infinite;
}

.scroll-down-indicator i:nth-child(2) {
    animation-delay: 0.2s;
    margin-top: -15px;
    /* Adjust for overlap */
}

@keyframes bounce {

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

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

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

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

.balloon,
.sparkle,
.cake {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.balloon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.balloon-3 {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.sparkle-1 {
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.sparkle-2 {
    top: 70%;
    left: 20%;
    animation-delay: 3s;
}

.sparkle-3 {
    top: 20%;
    right: 60%;
    animation-delay: 5s;
}

.cake-1 {
    top: 80%;
    left: 80%;
    animation-delay: 3s;
}

.cake-2 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
}

/* Letter Section */
.letter-section {
    margin-top: 3rem;
    margin-bottom: 5rem;
    background: #ffffff;
}

.letter-content {
    max-width: 800px;
    margin: 0 auto;
}

.letter-card {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.letter-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}


/* Quote Module */
.quote-module {
    padding: 40px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 0rem;
}

.quote {
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote::before,
.quote::after {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -20px;
}

.quote::before {
    left: -40px;
}

.quote::after {
    right: -40px;
}

.quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}






/* Section 3: The Journey - A Visual Story */
.journey-section {
    /* padding: 100px 0; */
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: clip;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #e74c3c, #f39c12, #e74c3c);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 3px #e74c3c;
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-date {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Dancing Script', cursive;
}

.timeline-content p {
    color: #666;
    margin-bottom: 15px;
}

/* Section 4: The Memory Gallery */
.gallery-section {
    padding: 0 0;
    background: #f8f9fa;
    margin-bottom: 100px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: clip;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

.gallery-image {
    height: 250px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    color: #2c3e50;
    font-weight: 500;
}

.quote-item,
.blessing-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.quote-content i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.quote-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.quote-author {
    color: #e74c3c;
    font-weight: 600;
}

/* Closing Module */
.closing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 2rem;
    color: white;
    position: relative;
}

.closing-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow: clip;
}

.closing-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.signature {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #f39c12;
    font-weight: 600;
}

.celebration-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    font-size: 1.5rem;
    animation: confettiFall 8s linear infinite;
}

.confetti-1 {
    left: 10%;
    animation-delay: 0s;
}

.confetti-2 {
    left: 25%;
    animation-delay: 1s;
}

.confetti-3 {
    left: 40%;
    animation-delay: 2s;
}

.confetti-4 {
    left: 65%;
    animation-delay: 3s;
}

.confetti-5 {
    left: 80%;
    animation-delay: 4s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .highlight {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .message-card {
        padding: 2rem;
        margin: 0 20px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .quote {
        font-size: 1.2rem;
    }

    .highlight {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .message-card {
        padding: 1.5rem;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}