
/* ==========================================
   ROYAL WEDDING INVITATION
   COMPLETE STYLE.CSS
========================================== */

/* GOOGLE FONTS */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');


/* GLOBAL SETTINGS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% 25%,
            #542a60 0%,
            #27132f 45%,
            #100917 100%
        );

    color: #fff4e7;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}


/* MAIN CONTAINER */

.wedding-container {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 30px 15px;
    overflow: hidden;
}

.wedding-container::before {
    content: "";

    position: absolute;
    width: 450px;
    height: 450px;

    top: 8%;
    left: 50%;
    transform: translateX(-50%);

    background: #d75c9a;
    filter: blur(160px);
    opacity: 0.18;

    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}


/* TYPOGRAPHY */

h1,
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

h1 {
    font-size: clamp(38px, 6vw, 80px);
    line-height: 1.2;
    color: #fff0e0;

    text-shadow:
        0 0 18px #ff91c344,
        0 0 40px #e6a0c122;

    animation: fadeUp 1.5s ease both;
}

h1 span {
    display: block;
    margin: 8px 0;

    font-size: 0.75em;
    color: #f2d49b;

    text-shadow: 0 0 20px #e7bb73aa;
}

h2 {
    font-size: clamp(28px, 4vw, 48px);
    color: #eacb92;
}

h3 {
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 500;

    letter-spacing: 3px;
    color: #eacb92;

    margin: 20px 0;

    animation: fadeUp 1.2s ease both;
}

p {
    font-size: clamp(13px, 1.5vw, 16px);
    line-height: 1.9;
    color: #f4d9e6;

    margin: 15px auto;
    max-width: 700px;
}


/* ==========================================
   SCREEN 1: ROYAL WELCOME
========================================== */

#welcomeScreen {
    width: 100%;
    max-width: 1100px;

    padding: 50px 15px;
    margin: auto;

    animation: fadeUp 1.5s ease both;
}

#welcomeScreen h1 {
    font-size: clamp(38px, 6vw, 80px);
    margin: 20px auto;
    max-width: 900px;
}

#welcomeScreen h3 {
    margin-top: 30px;
}

#welcomeScreen .royal-divider {
    margin: 30px auto;
}


/* ==========================================
   ROYAL DIVIDER
========================================== */

.royal-divider {
    color: #e9c78d;
    font-size: 25px;

    margin: 35px auto;

    text-shadow:
        0 0 15px #e9c78d88;
}


/* ==========================================
   BUTTONS
========================================== */

#enterBtn,
#backBtn {
    display: inline-block;

    padding: 16px 35px;
    margin-top: 35px;

    border: 1px solid #e9c78d;
    border-radius: 40px;

    background: linear-gradient(
        135deg,
        #eacb92,
        #c7964e
    );

    color: #271329;

    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1px;
    cursor: pointer;

    box-shadow:
        0 0 25px #e9c78d44;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#enterBtn:hover,
#backBtn:hover {
    transform: translateY(-4px) scale(1.04);

    box-shadow:
        0 0 40px #e9c78d88;
}


/* ==========================================
   COUNTDOWN
========================================== */

.countdown-section {
    width: 100%;
    max-width: 600px;

    margin: 45px auto 10px;
}

.countdown-section h3 {
    margin-bottom: 25px;
}

#countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;

    width: 100%;
}

#countdown div {
    padding: 20px 8px;

    border: 1px solid #d6a65e77;
    border-radius: 15px;

    background: #ffffff0b;
    backdrop-filter: blur(12px);

    box-shadow:
        0 0 25px #d6a65e18;
}

#countdown strong {
    display: block;

    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(27px, 5vw, 45px);

    color: #f5d9a0;

    text-shadow:
        0 0 15px #e9c78d55;
}

#countdown small {
    display: block;

    margin-top: 5px;

    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #f2cfde;
}


/* ==========================================
   SCREEN 2: INVITATION
========================================== */

#invitationScreen {
    width: 100%;
    padding: 25px 10px;
}

#welcomeScreen[hidden],
#invitationScreen[hidden] {
    display: none !important;
}


/* ==========================================
   ROYAL INVITATION CARD
========================================== */

.royal-invitation {
    position: relative;

    width: 100%;
    max-width: 780px;

    padding: 55px 35px;
    margin: 25px auto;

    border: 2px solid #d9b879;
    border-radius: 25px;

    background: linear-gradient(
        145deg,
        #321a3b 0%,
        #170c20 50%,
        #3a203c 100%
    );

    box-shadow:
        0 0 45px #d9b87925,
        inset 0 0 35px #d9b87912;

    text-align: center;
}

.royal-invitation::before {
    content: "";

    position: absolute;
    inset: 10px;

    border: 1px solid #d9b87955;
    border-radius: 18px;

    pointer-events: none;
}

.royal-invitation h1 {
    font-size: clamp(35px, 5vw, 65px);
    line-height: 1.15;

    color: #fff1dc;
}

.royal-invitation h2 {
    color: #e9c78d;
    margin: 12px auto;
}

.royal-invitation h3 {
    color: #e9c78d;
    letter-spacing: 2px;

    margin: 28px auto;
}

.royal-invitation p {
    line-height: 2;
    margin: 20px auto;

    max-width: 570px;
}

.family-details,
.invitation-message {
    font-style: italic;
}

.couple-section {
    margin: 45px auto;
}

.couple-section h1 {
    margin: 12px auto;
}


/* ==========================================
   CINEMATIC ANIMATIONS
========================================== */

.cinematic-mode {
    animation: sceneEntrance 1.5s ease both;
}

@keyframes sceneEntrance {
    from {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 15px #e9c78d33;
    }

    50% {
        text-shadow:
            0 0 25px #e9c78d99,
            0 0 50px #e9c78d44;
    }
}


/* ==========================================
   ROMANTIC ROSE PETALS & GOLD PARTICLES
========================================== */

.particle-layer {
    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    z-index: 10;
}

.rose-petal {
    position: absolute;
    top: -30px;

    width: 15px;
    height: 22px;

    background: linear-gradient(
        135deg,
        #ffb4d2,
        #c62d6e
    );

    border-radius: 80% 0 80% 20%;

    opacity: 0;

    animation: petalFall linear infinite;
}

.gold-particle {
    position: absolute;
    top: -10px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #ffd994;

    box-shadow:
        0 0 12px #ffd994;

    opacity: 0;

    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform:
            translateY(-10vh)
            rotate(0deg);

        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    90% {
        opacity: 0.85;
    }

    100% {
        transform:
            translateY(110vh)
            rotate(540deg);

        opacity: 0;
    }
}


/* ==========================================
   MUSIC BUTTON
========================================== */

#musicToggle {
    position: fixed;

    bottom: 25px;
    right: 25px;

    z-index: 100;

    padding: 13px 22px;

    border: 1px solid #f5d9a0;
    border-radius: 35px;

    background: #24132de6;
    color: #f5d9a0;

    font-size: 13px;
    font-family: 'Montserrat', sans-serif;

    cursor: pointer;

    box-shadow:
        0 0 20px #e9b96e55;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

#musicToggle:hover {
    background: #5b274d;
    transform: translateY(-3px);
}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 600px) {

    .wedding-container {
        padding: 20px 10px;
    }

    #welcomeScreen {
        padding: 35px 8px;
    }

    #welcomeScreen h1 {
        font-size: clamp(35px, 9vw, 55px);
    }

    .royal-invitation {
        padding: 40px 20px;
        border-radius: 18px;
    }

    .royal-invitation::before {
        inset: 7px;
        border-radius: 13px;
    }

    .royal-invitation h1 {
        font-size: clamp(30px, 8vw, 48px);
    }

    .royal-invitation p {
        font-size: 13px;
    }

    #countdown {
        gap: 7px;
    }

    #countdown div {
        padding: 15px 4px;
    }

    #countdown strong {
        font-size: 29px;
    }

    #countdown small {
        font-size: 9px;
    }

    #musicToggle {
        right: 15px;
        bottom: 15px;
        padding: 11px 16px;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .rose-petal,
    .gold-particle {
        display: none;
    }
}

/* LEVEL 1 - ROYAL GOLDEN ENTRANCE */

#welcomeScreen {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(235, 195, 115, 0.5);
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        rgba(48, 20, 58, 0.85),
        rgba(17, 8, 27, 0.95)
    );
    box-shadow:
        0 0 45px rgba(230, 177, 95, 0.18),
        inset 0 0 60px rgba(230, 177, 95, 0.08);
}

#welcomeScreen::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(235, 195, 115, 0.35);
    border-radius: 20px;
    pointer-events: none;
}

#welcomeScreen::after {
    content: "✦";
    position: absolute;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    color: #f5d9a0;
    font-size: 38px;
    text-shadow: 0 0 25px #e9c78d;
    animation: royalSparkle 3s ease-in-out infinite;
}

#welcomeScreen h1 {
    background: linear-gradient(
        90deg,
        #b98443,
        #fff4d8,
        #e9bb70,
        #fff4d8,
        #b98443
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        fadeUp 1.5s ease both,
        goldShimmer 6s linear infinite;
}

@keyframes goldShimmer {
    from {
        background-position: 200% center;
    }
    to {
        background-position: 0% center;
    }
}

@keyframes royalSparkle {
    0%, 100% {
        opacity: 0.5;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    #welcomeScreen h1,
    #welcomeScreen::after {
        animation: none;
    }
}

/* LEVEL 2 - INTERACTIVE 3D ROYAL CARD */

#welcomeScreen {
    transform-style: preserve-3d;
    transform: perspective(1200px)
               rotateX(var(--tilt-x, 0deg))
               rotateY(var(--tilt-y, 0deg));

    transition: transform 0.25s ease-out;
    will-change: transform;
}

#welcomeScreen h1,
#welcomeScreen h3,
#welcomeScreen p,
#welcomeScreen .royal-divider {
    position: relative;
    transform: translateZ(25px);
}

#welcomeScreen #enterBtn {
    position: relative;
    transform: translateZ(35px);
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    #welcomeScreen {
        transform: none;
        transition: none;
    }
}

/* LEVEL 3 - LUXURY COUPLE REVEAL */

/* First couple */
#welcomeScreen h1:first-of-type {
    animation:
        coupleEntrance 1.8s 0.5s ease both,
        goldShimmer 6s 2.3s linear infinite;
}

/* Second couple */
#welcomeScreen h1:nth-of-type(2) {
    animation:
        coupleEntrance 1.8s 1.6s ease both,
        goldShimmer 6s 3.4s linear infinite;
}

/* Elegant divider */
#welcomeScreen .royal-divider {
    animation: dividerReveal 2s 1.2s ease both;
}

/* Golden name entrance */
@keyframes coupleEntrance {
    0% {
        opacity: 0;
        filter: blur(18px);
        transform: translateY(55px) scale(0.88);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

/* Divider reveal */
@keyframes dividerReveal {
    0% {
        opacity: 0;
        letter-spacing: 15px;
    }

    100% {
        opacity: 1;
        letter-spacing: 3px;
    }
}

/* Extra golden glow */
#welcomeScreen h1 {
    filter: drop-shadow(0 0 12px rgba(245, 217, 160, 0.3));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #welcomeScreen h1:first-of-type,
    #welcomeScreen h1:nth-of-type(2),
    #welcomeScreen .royal-divider {
        animation: none;
    }
}

/* LEVEL 4 - PREMIUM VENUE CARD */

.venue-card {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 35px auto;
    padding: 55px 25px;
    border: 1px solid #d9b879;
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        #301a3c,
        #140a20
    );
    box-shadow: 0 0 40px #d9b87925;
    text-align: center;
}

.venue-icon {
    font-size: 45px;
    color: #f5d9a0;
    animation: royalSparkle 3s infinite;
}

.venue-card h2 {
    font-size: clamp(35px, 6vw, 65px);
    color: #f5d9a0;
    margin: 20px 0;
}

.venue-card p {
    color: #f4d9e6;
}

.venue-date {
    letter-spacing: 2px;
}

.directions-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 16px 32px;
    border-radius: 40px;
    background: linear-gradient(
        135deg,
        #f5d9a0,
        #c7964e
    );
    color: #271329;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.directions-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px #e9c78d88;
}

/* LEVEL 5 - WHATSAPP SHARING */

.share-section {
    width: 100%;
    max-width: 780px;
    margin: 35px auto;
    padding: 35px 20px;
    text-align: center;
    border: 1px solid #d9b87955;
    border-radius: 20px;
    background: rgba(35, 16, 45, 0.8);
}

#whatsappShare {
    margin-top: 20px;
    padding: 16px 28px;
    border: 1px solid #d9b879;
    border-radius: 35px;
    background: linear-gradient(
        135deg,
        #f5d9a0,
        #c7964e
    );
    color: #271329;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#whatsappShare:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px #d9b87966;
}

/* MOBILE FINISHING */

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    #welcomeScreen {
        padding: 45px 14px;
    }

    #welcomeScreen h1 {
        font-size: clamp(32px, 9vw, 46px);
        overflow-wrap: anywhere;
    }

    .royal-invitation,
    .venue-card,
    .share-section {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    #enterBtn,
    #backBtn,
    #whatsappShare {
        max-width: 100%;
        white-space: normal;
    }

    #musicToggle {
        bottom: 12px;
        right: 12px;
    }
}
