:root {
    --primary-color: #ff3366;
    --secondary-color: #ff9933;
    --accent-color: #a200ff;
    --text-color: #ffffff;
    --text-dark: #2f3542;
    --white: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #0b090a;
}

/* Background Slideshow */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #0b090a;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s linear;
    transform: scale(1);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(11, 9, 10, 0.7) 0%, rgba(162, 0, 255, 0.4) 100%);
    z-index: -1;
}

/* Typography */
h1, h2 {
    font-family: 'Dancing Script', cursive;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
}

.glass-panel-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    margin: 50px auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    margin: 50px auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero .highlight {
    color: var(--primary-color);
    font-size: 6rem;
    display: inline-block;
}

.glow {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 40px var(--accent-color);
}

.hero .subtitle {
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: #cccccc;
    font-weight: 300;
}

/* Button */
button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 16px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-btn {
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.4), inset 0 -3px 0 rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 51, 102, 0.6), inset 0 -3px 0 rgba(0,0,0,0.2);
}

/* Message Sections */
.section-content h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-content p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 20px;
    color: #eeeeee;
    text-align: center;
    font-weight: 300;
}

.wishes {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 40px;
    font-family: 'Dancing Script', cursive;
}

/* Animations */
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.bounce-in { animation: bounceIn 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeIn 1s ease-out 0.5s forwards; }
.delay-1 { animation-delay: 1s; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse { animation: pulse 2s infinite ease-in-out; }

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; overflow: hidden;
}
.confetti {
    position: absolute; width: 10px; height: 10px; opacity: 0; top: -10px;
    animation: fall linear forwards;
}
@keyframes fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    position: relative;
}

.glass-header {
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 30px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
}
.gallery-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
}

.media-scroller {
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    user-select: none;
}

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

.media-track {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.media-scroller.reverse .media-track {
    animation-direction: reverse;
    animation-duration: 65s;
}

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

.media-item {
    width: 320px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: #000;
    position: relative;
}

.media-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.media-item:hover {
    transform: scale(1.08) translateY(-10px);
    z-index: 2;
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(255, 51, 102, 0.3);
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #aaaaaa;
    font-size: 1rem;
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .hero .highlight { font-size: 4.5rem; }
    .glass-panel { margin: 20px; padding: 2rem; }
    .glass-panel-dark, .glass-panel-light { margin: 30px 20px; padding: 2rem 1.5rem; }
    .section-content h2 { font-size: 3rem; }
    .media-item { width: 260px; height: 380px; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.back-to-top:active {
    transform: scale(0.9);
}
