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

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 100vh;
    background: #fff;
}

/* Snow Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

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

/* Container */
.container {
    max-width: 100%;
    margin: 0 0;
    padding: 0 0rem;
}

.gallery-section .container {
    padding: 0 2rem;
}

/* Section title */
.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(135deg, #c0392b 0%, #198754 100%);
    border-radius: 2px;
}

/* Timeline/Journey */
.journey-content {
    background: transparent;
    padding-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
}

.journey-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('https://res.cloudinary.com/jerry7ge/image/upload/c_fill,ar_3:4/v1758545535/template_images/merry_christmas_bg.jpg') center / cover no-repeat fixed;
    z-index: -1;
}

.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(135deg, #c0392b 0%, #198754 100%);
    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: #c0392b;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 3px #198754;
    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-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    color: #198754;
    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;
}

/* Gallery Section */
.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;
}

/* Letter Section */
.letter {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    color: white;
}

.letter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: clip;
}

.letter-paper {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.letter-paper:hover {
    transform: rotate(0deg) scale(1.02);
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #c0392b;
}

.letter-date {
    font-style: italic;
    color: #666;
}

.letter-heart {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.letter-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Future Plans Section */
.details {
    padding-top: 3rem;
    background: #f8f9fa;
    text-align: center;
}

.details-content {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    overflow: clip;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    /* Ensure cards take full height of their grid cell */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detail-card .icon {
    font-size: 2.5rem;
    color: #c0392b;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #198754;
}

.detail-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    overflow: clip;
}

.footer-heart {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.footer-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #e74c3c;
}

/* Lightbox base */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Animations (shared) */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

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

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

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

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

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        margin-top: 25vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .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;
    }

    .letter-paper {
        margin: 0 1rem;
        padding: 2rem;
    }
}

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

    .title-name {
        font-size: 1.5rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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