:root {
    --primary: #ff4d6d;
    --secondary: #ff8fa3;
    --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #590d22;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Screen Layouts */
.screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease;
}

#landing {
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.floating-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatUp linear infinite;
}

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

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

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

/* Landing Card */
.card {
    padding: 3rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
    animation: float 6s ease-in-out infinite;
}

.title {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #a4133c;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-yes {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
    animation: heartbeat 1.5s infinite;
}

.btn-yes:hover {
    transform: scale(1.05);
    background-color: #ff2a52;
}

.btn-no {
    background-color: white;
    color: var(--text-color);
}

.btn-no:hover {
    background-color: #f0f0f0;
}

/* Main Content */
.glass-nav {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: #a4133c;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #800f2f;
    min-height: 2.4rem;
    /* Prevent layout shift */
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #800f2f;
    min-height: 2.4rem;
    /* Prevent layout shift */
    white-space: pre-wrap;
}

.hero h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #a4133c;
    font-family: 'Pacifico', cursive;
    min-height: 1.8rem;
    white-space: pre-wrap;
}

.hero p {
    min-height: 1.2rem;
    white-space: pre-wrap;
}

/* Typing Animation Styles */
.typing-cursor {
    border-right: 3px solid #ff4d6d;
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

.text-glow {
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #ff4d6d;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff, 0 0 70px #fff;
    }
}

/* Photo Booth Grid */
.photo-booth {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.polaroid {
    background: white;
    padding: 1rem;
    padding-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease, z-index 0.3s;
    cursor: pointer;
    position: relative;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.polaroid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid #eee;
}

.caption {
    font-family: 'Pacifico', cursive;
    text-align: center;
    margin-top: 1rem;
    color: #555;
    font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-lightbox:hover {
    color: var(--primary);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

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

/* Gallery Section */
.gallery-section {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 5rem;
}

.gallery-title {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #a4133c;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 250px;

    /* Animated Gradient Border Frame */
    padding: 6px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #ffecd2, #ff4d6d, #ff9a9e);
    background-size: 300% 300%;
    animation: frameGradient 4s ease infinite;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(255, 77, 109, 0.3);
    z-index: 5;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    /* Match outer curvature minus padding */
    background: white;
    display: block;
    transition: transform 0.5s ease;
}

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

.view-gallery-btn {
    margin-top: -1rem;
    /* Pull up a bit */
    margin-bottom: 3rem;
    background: #ff758c;
}

.view-gallery-btn:hover {
    background: #ff5c7c;
}

/* Responsive */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }

    .card {
        padding: 2rem;
    }

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

/* Lightbox Video */
#lightbox-video {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}