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

:root {
    --pink-primary: #ec4899;
    --pink-dark: #db2777;
    --pink-light: #fce7f3;
    --rose-gold: #b76e79;
    --blue-primary: #0000FF;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Intro Overlay (Unboxing Screen) */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    transition: opacity 1s ease;
    opacity: 1;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    padding: 2rem;
}

.intro-box {
    max-width: 80vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.intro-text-main {
    color: white;
    margin-top: 2rem;
    font-size: 1.125rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

@media (min-width: 768px) {
    .intro-text-main {
        font-size: 3rem;
        margin-top: 3rem;
    }
}

.intro-text-click {
    color: var(--pink-primary);
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-family: 'Bad Script', cursive;
    animation: pulse 2s ease-in-out infinite;
    font-weight: 700;
}

@media (min-width: 768px) {
    .intro-text-click {
        font-size: 3.75rem;
        margin-top: 2rem;
    }
}

/* Raining Lights Effect */
.raining-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.light-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    will-change: transform, opacity;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(calc(var(--drift) * 0.5)) rotate(180deg) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 50px)) translateX(var(--drift)) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Music Controls */
.music-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--pink-dark);
    transition: border 0.3s ease;
}

.music-controls.playing {
    border: 2px solid transparent;
}

@media (min-width: 768px) {
    .music-controls {
        top: 1.5rem;
        right: 1.5rem;
    }
}

.music-btn {
    border-radius: 9999px;
    padding: 0.75rem;
    color: white;
    background: var(--pink-primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    background: var(--pink-dark);
}

@media (min-width: 768px) {
    .music-btn {
        padding: 0.875rem;
    }

    .music-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0.2;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    background-image: url('images/hero.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(1.2);
    width: 100vw;
    height: 120vh;
    opacity: 0.9;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-family: 'Bad Script', cursive;
    font-size: 3.75rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-image {
    width: 16rem;
    height: 16rem;
    margin: 0 auto 2rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .hero-image {
        width: 20rem;
        height: 20rem;
    }
}

.hero-image img,
.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Features Section */
.features {
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .features {
        padding: 3rem 1rem;
    }
}

.features-wrapper {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    font-family: 'Bad Script', cursive;
    font-size: 2.25rem;
    text-align: center;
    color: var(--blue-primary);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.features-card {
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    border: 2px solid var(--pink-primary);
}

@media (min-width: 768px) {
    .features-card {
        padding: 2rem;
    }
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-check {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--pink-primary);
    margin-top: 0.125rem;
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 1.125rem;
    }
}

.feature-description {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .feature-description {
        font-size: 1rem;
    }
}

.feature-list {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    list-style: none;
}

.feature-list li {
    color: var(--text-gray);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .feature-list li {
        font-size: 1rem;
    }
}

.feature-list .bullet {
    color: var(--pink-primary);
    margin-top: 0.25rem;
}

/* Extras Section */
.extras-section {
    padding: 2rem 1rem;
    background: var(--bg-white);
}

@media (min-width: 768px) {
    .extras-section {
        padding: 3rem 1rem;
    }
}

.extras-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .extras-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.extra-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--pink-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 16rem;
    overflow: hidden;
    background: var(--bg-light);
}

@media (min-width: 768px) {
    .carousel-container {
        height: 18rem;
    }
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.carousel-button:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.carousel-button.prev {
    left: 0.5rem;
}

.carousel-button.next {
    right: 0.5rem;
}

.carousel-button svg {
    color: var(--pink-primary);
}

.carousel-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    width: 1.5rem;
    border-radius: 0.25rem;
}

.extra-content {
    padding: 1.5rem;
}

.extra-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .extra-title {
        font-size: 1.5rem;
    }
}

.extra-description {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .extra-description {
        font-size: 1rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 2rem 1rem;
    background-color: var(--pink-light);
}

@media (min-width: 768px) {
    .gallery-section {
        padding: 3rem 1rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 96rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

@media (min-width: 768px) {
    .gallery-item img {
        height: 16rem;
    }
}

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

/* Contact Section */
.contact-section {
    padding: 2rem 1rem;
    background: var(--bg-white);
}

@media (min-width: 768px) {
    .contact-section {
        padding: 4rem 1rem;
    }
}

.contact-center {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background: #10b981;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.whatsapp-button:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 2rem 1rem;
    background: var(--pink-primary);
    color: white;
    text-align: center;
}

.footer-link {
    color: #000000;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #000000;
}

.footer-text {
    font-family: 'Bad Script', cursive;
    font-size: 0.875rem;
    opacity: 0.75;
}

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

.feature-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }
.feature-item:nth-child(7) { animation-delay: 0.7s; }
.feature-item:nth-child(8) { animation-delay: 0.8s; }
.feature-item:nth-child(9) { animation-delay: 0.9s; }
.feature-item:nth-child(10) { animation-delay: 1s; }

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-modal.hidden {
    display: none;
}

.lightbox-content {
    max-width: 80rem;
    width: 100%;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    z-index: 51;
    transition: color 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #d1d5db;
}

.lightbox-close svg {
    width: 2rem;
    height: 2rem;
}

.lightbox-image {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 2rem;
    display: block;
}

.lightbox-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .lightbox-buttons {
        flex-direction: row;
    }
}

.lightbox-btn {
    background: var(--pink-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

@media (min-width: 640px) {
    .lightbox-btn {
        width: auto;
    }
}

.lightbox-btn:hover {
    background: var(--pink-dark);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
