/* Global Styles */
:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --background-dark: #121212;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-color: #fff0f5;
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Canvas for Confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.8);
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Changed from height to min-height to prevent cutoff */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 20px;
    /* Add padding for smaller screens */
}

.highlight {
    color: #ffe0e6;
    text-shadow: 0 0 30px #ff4d6d;
}

.scroll-down {
    margin-top: 60px;
    /* Consistent spacing relative to text */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    /* Removed absolute positioning completely to prevent overlap */
}

.arrow {
    font-size: 2rem;
    margin-top: 10px;
}

@keyframes bounce {

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

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

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

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Message Section */
.message-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.message-section .card {
    max-width: 800px;
    text-align: center;
}

.message-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffe0e6;
}

.message-section p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Wishes Section */
.wishes-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.wish-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.wish-card h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: 'Dancing Script', cursive;
}

.wish-card p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
}


/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images cover the area well */
    aspect-ratio: 1 / 1;
    /* Makes grid items square */
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Video Section */
.video-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    padding: 10px;
    /* Border effect */
    border-radius: 20px;
    overflow: hidden;
}

/* Final Wish & Button */
.final-wish {
    padding: 100px 20px;
    text-align: center;
}

.glow-button {
    background: #ff4d6d;
    border: none;
    padding: 15px 40px;
    color: white;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    box-shadow: 0 0 10px #ff4d6d, 0 0 40px #ff4d6d;
    transition: all 0.3s ease;
}

.glow-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ff4d6d, 0 0 60px #ff4d6d, 0 0 100px #ff4d6d;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

/* Floating Hearts Background Animation */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    bottom: -100px;
    background-color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    height: 30px;
    width: 30px;
    margin: 0 10px;
    border-radius: 50%;
    animation: float 5s linear infinite;
}

.heart:before,
.heart:after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.heart:before {
    left: -50%;
}

.heart:after {
    left: 50%;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

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

@media (max-width: 600px) {
    .title {
        font-size: 3.5rem;
    }

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

/* Funny Overlay Modal */
.funny-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.funny-overlay.active {
    opacity: 1;
    visibility: visible;
}

.funny-message {
    color: #ff4d6d;
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    text-align: center;
    padding: 20px;
    animation: bounce 1s infinite;
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
}

.close-instruction {
    margin-top: 30px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.close-instruction:hover {
    background: #fff;
    color: #000;
    opacity: 1;
}