/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}



img {
    max-width: 100%;
    display: block;
}

a { text-decoration: none; }


/* =====================================================
   SPLASH SCREEN — ENVELOPE + WAX SEAL
===================================================== */

#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at 25% 15%, #6b3a26 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, #48211a 0%, transparent 45%),
        linear-gradient(135deg, #2b1610 0%, #3d1f18 55%, #1c0f0a 100%);

    overflow: hidden;

    transition: opacity 1.1s ease, visibility 1.1s ease;
}

.hideSplash {
    opacity: 0;
    visibility: hidden;
}

/* Splash sparkles */
.sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sparkles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f4d78a;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(244, 215, 138, 0.7);
    animation: twinkle 4s ease-in-out infinite;
}

.sparkles span:nth-child(1)  { top: 12%; left: 15%; animation-delay: 0.0s; }
.sparkles span:nth-child(2)  { top: 22%; left: 78%; animation-delay: 0.6s; }
.sparkles span:nth-child(3)  { top: 68%; left: 12%; animation-delay: 1.2s; }
.sparkles span:nth-child(4)  { top: 82%; left: 88%; animation-delay: 0.4s; }
.sparkles span:nth-child(5)  { top: 35%; left: 40%; animation-delay: 1.8s; }
.sparkles span:nth-child(6)  { top: 55%; left: 65%; animation-delay: 2.4s; }
.sparkles span:nth-child(7)  { top: 8%;  left: 55%; animation-delay: 0.9s; }
.sparkles span:nth-child(8)  { top: 92%; left: 30%; animation-delay: 1.5s; }
.sparkles span:nth-child(9)  { top: 44%; left: 90%; animation-delay: 2.0s; }
.sparkles span:nth-child(10) { top: 75%; left: 45%; animation-delay: 3.0s; }
.sparkles span:nth-child(11) { top: 18%; left: 30%; animation-delay: 2.6s; }
.sparkles span:nth-child(12) { top: 62%; left: 82%; animation-delay: 0.2s; }
.sparkles span:nth-child(13) { top: 30%; left: 8%;  animation-delay: 3.4s; }
.sparkles span:nth-child(14) { top: 88%; left: 60%; animation-delay: 1.1s; }

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50%      { opacity: 1; transform: scale(1.3); }
}

.envelope-scene {
    position: relative;
    perspective: 1500px;
    text-align: center;
    padding: 20px;
}

.splash-title {
    font-family: "Great Vibes", cursive;
    color: #e8c78a;
    font-size: 44px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    animation: fadeUp 1s ease;
}

.envelope {
    position: relative;
    width: 320px;
    height: 210px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: fadeUp 1.2s ease;
}

.envelope-back {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #c8a274 0%, #a17b4d 100%);
    border-radius: 6px;
    box-shadow:
        0 20px 45px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.05) inset;
}

.envelope-letter {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background:
        linear-gradient(180deg, #fdf6e6 0%, #f2e4c4 100%);
    border-radius: 3px;
    padding: 20px 18px;
    color: #6a4622;
    font-family: "Cormorant Garamond", serif;
    text-align: center;

    z-index: 3;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.15) inset;

    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.55s;
}

.letter-content h2 {
    font-size: 32px;
    margin: 6px 0 4px;
    letter-spacing: 1px;
    color: #52301b;
}

.letter-content h2 span {
    color: #b3813b;
    font-style: italic;
    padding: 0 4px;
}

.letter-mono {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b5e34;
    margin-bottom: 4px;
    font-family: "Poppins", sans-serif;
}

.letter-sub {
    font-size: 12px;
    letter-spacing: 1px;
    color: #8b5e34;
    font-style: italic;
    margin-top: 6px;
}

.letter-date {
    font-size: 12px;
    letter-spacing: 5px;
    margin-top: 10px;
    color: #52301b;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.letter-divider {
    color: #b3813b;
    font-size: 20px;
    margin: 4px 0;
}

.envelope-front {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #b58a5d 0%, #8a6237 100%);
    border-radius: 6px;
    clip-path: polygon(0 45%, 50% 100%, 100% 45%, 100% 100%, 0 100%);
    z-index: 4;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.15) inset;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, #d0aa77 0%, #a67d4a 100%);
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 5;
    backface-visibility: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) inset;
}

.envelope.opened .envelope-flap {
    transform: rotateX(-180deg);
}

.envelope.opened .envelope-letter {
    transform: translateY(-115%);
    z-index: 6;
    box-shadow: 0 30px 45px rgba(0,0,0,0.35);
}

/* Wax seal */
.wax-seal {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    

    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;

    background:
        radial-gradient(circle at 35% 30%,
            #b8213b 0%,
            #7a1420 55%,
            #4a0a15 100%);

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.55),
        inset 0 3px 4px rgba(255,255,255,0.15),
        inset 0 -4px 6px rgba(0,0,0,0.4);

    transition: transform 0.5s ease, opacity 0.5s ease;
    animation: sealPulse 2.5s ease-in-out infinite;
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.seal-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px dashed rgba(244, 206, 138, 0.55);
}

.seal-letters {
    font-family: "Cormorant Garamond", serif;
    color: #f4ce8a;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 2px rgba(0,0,0,0.45);
}

.envelope.opened .wax-seal {
    transform: translate(-50%, -180%) scale(0);
    
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.5s ease;
}

@keyframes sealPulse {
    0%, 100% {
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.248),
            0 0 0 0 rgba(152, 13, 55, 0.312),
            inset 0 3px 4px rgba(115, 15, 15, 0.141),
            inset 0 -4px 6px rgba(115, 9, 60, 0.71);
    }
    50% {
        box-shadow:
            0 8px 20px rgba(138, 184, 12, 0.167),
            0 0 0 18px rgba(244, 206, 138, 0),
            inset 0 3px 4px rgba(255,255,255,0.15),
            inset 0 -4px 6px rgba(168, 12, 100, 0.919);
    }
}

.tap-hint {
    color: #e8c78a;
    margin-top: 35px;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.85;
    animation: fadePulse 2.5s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.envelope.opened + .tap-hint {
    opacity: 0;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1;    }
}


/* =====================================================
   HERO
===================================================== */
.pa-color{
    color: #96142a;
    font-weight: bold;
    font-size: 20px;
    
}
.hero {
    position: relative;
    min-height: 100dvh;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;

   background:
        linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30)),
        url("assets/images/hero-bg1.jpg") no-repeat;;
        /*background:url(assets/images/hero-bg.jpg) center center/cover no-repeat;
*/
    background-size: cover;
    background-position: center 35%;
    
}

/* Mobile image */
@media (max-width: 768px) {
    .hero {
        background-image:
            linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.30)),
            url("assets/images/hero-bg.jpg");

        background-size: cover;
        background-position: center center;
    }
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.30);
}

.hero-content {
    position: relative;
    z-index: 100;
    width: min(90%,900px);
    padding: 20px;
   margin: auto;
}

.welcome {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.couple {
    font-family: "Cormorant Garamond", serif;
    font-size: 70px;
    font-weight: 600;
    color: #f2e68f;
}

.couple span { color: #e0c123ad; font-style: italic; }

.title {
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 5px;
    color: #f2c78f;
}

.date {
    margin-top: 20px;
    font-size: 22px;
    color: #f2c78f;
}


/* Ambient page sparkles inside hero */
.page-sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
}

.page-sparkles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(244, 215, 138, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(244, 215, 138, 0.5);
    animation: floatDust 9s linear infinite;
    opacity: 0;
}

.page-sparkles span:nth-child(1) { left: 10%; animation-delay: 0s;   }
.page-sparkles span:nth-child(2) { left: 25%; animation-delay: 1.5s; }
.page-sparkles span:nth-child(3) { left: 42%; animation-delay: 3s;   }
.page-sparkles span:nth-child(4) { left: 55%; animation-delay: 4.5s; }
.page-sparkles span:nth-child(5) { left: 68%; animation-delay: 2s;   }
.page-sparkles span:nth-child(6) { left: 80%; animation-delay: 5s;   }
.page-sparkles span:nth-child(7) { left: 92%; animation-delay: 6.5s; }
.page-sparkles span:nth-child(8) { left: 15%; animation-delay: 7s;   }

@keyframes floatDust {
    0%   { transform: translateY(110vh) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-15vh) scale(1);   opacity: 0; }
}

.scroll-down{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #d4b36a;
    font-size: 24px;
    animation: bounce 1.8s infinite;
    cursor: pointer;
    z-index: 100;
}

@keyframes bounce{
    0%,20%,50%,80%,100%{
        transform: translateX(-50%) translateY(0);
    }
    40%{
        transform: translateX(-50%) translateY(10px);
    }
    60%{
        transform: translateX(-50%) translateY(5px);
    }
}



/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 45px;
    background: #d7c58d;
    color: #222;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.4s;
    letter-spacing: 0.5px;
}

.btn:hover {
    color: #fff;
    background: #851d21c6;
    transform: translateY(-5px);
}


/* =====================================================
   HERO DECORATIONS
===================================================== */

.flower {
    position: absolute;
    z-index: 20;
    width: 260px;
    pointer-events: none;
}

.tl { top: 0; left: 0;  }
.tr { top: 0; right: 0; }
.bl { bottom: 0; left: 0;  }
.br { right: 0; bottom: 0; }


.circle {
    position: absolute;
    z-index: 2;
    width: 900px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    animation: rotateCircle 25s linear infinite;
    pointer-events: none;
}

.rings {
    position: absolute;
    z-index: 90;
    width: 95px;
    left: 50%;
    top: 17%;
    transform: translateX(-50%);
    
}

@keyframes rotateCircle {
    from { transform: translate(-50%, -50%) rotate(0deg);   }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}


/* =====================================================
   SCROLLING RINGS
   Two rings float on both sides throughout scroll.
   Lock together (center) ONLY before Thank You section.
===================================================== */

.rings-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;

    
}

.ring {
    position: absolute;
    width: 110px;
    
    transition:
        transform 0.15s linear,
        filter 0.3s ease;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
}

/* Free-float: stays on left/right side */
.ring-left {
    left: 6%;
    top: 8%;
    transform: rotate(-10deg);
}

.ring-right {
    right: 6%;
    top: 8%;
    transform: rotate(10deg);
}

@media (max-width:768px){

    .ring-left,
    .ring-right{
        width:70px;
    }

}

/* Locked state — activated by JS when Thank You is near */
.rings-container.locked .ring-left {
    left: 50%;
    top: 50%;
    transform: translate(-72%, -50%) rotate(-18deg);
    filter: drop-shadow(0 14px 12px rgba(0,0,0,0.4));
}

.rings-container.locked .ring-right {
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-28%, -50%) rotate(18deg);
    filter: drop-shadow(0 14px 12px rgba(0,0,0,0.4));
}

/* Subtle vertical drift with scroll (JS sets --ring-y) */
.rings-container:not(.locked) .ring-left {
    transform: translateY(var(--ring-y, 0px)) rotate(-10deg);
}

.rings-container:not(.locked) .ring-right {
    transform: translateY(var(--ring-y, 0px)) rotate(10deg);
}


/* =====================================================
   SECTION DIVIDER
===================================================== */

.venue-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 240px;
    margin: 18px auto 35px;
}

.venue-divider::before,
.venue-divider::after {
    content: "";
    height: 1px;
    background: #c99a5a;
    flex: 1;
}

.venue-divider span {
    color: #c12860;
    font-size: 22px;
}


/* =====================================================
   DETAILS
===================================================== */
@media (max-width:768px){

    .details{
        width:100%;
        max-width:100%;
        padding:70px 20px;
        
        text-align: center;
        margin:0 auto;
    }

}
/*.details {
    padding: 100px 10%;
    text-align: center;
    background: #fbf5ee;
}*/

.details h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 45px;
    text-align: center;
    margin-bottom: 15px;
    color: #52301b;
}

.details > p {
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    color: #5a4a3a;
}

.card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 70px;
}

.card > div {
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.card > div:hover {
    transform: translateY(-10px);
}

.card i {
    margin-bottom: 20px;
    font-size: 35px;
    color: #9d5f6f;
}

.card h3 { margin-bottom: 10px; color: #52301b; 
text-align: center;}


/* =====================================================
   COUNTDOWN
===================================================== */

.countdown {
    padding: 100px 10%;
    background: #f3ead8;
    text-align: center;
}

.countdown h2 {
    margin-bottom: 15px;
    font-family: "Cormorant Garamond", serif;
    font-size: 45px;
    color: #52301b;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.timer > div {
    width: 140px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.timer span {
    font-size: 45px;
    color: #8d7742;
    font-weight: bold;
}

.timer p { margin-top: 10px; }


/* =====================================================
   GALLERY
===================================================== */

.gallery {
    padding: 100px 10%;
    text-align: center;
    background: #fbf5ee;
}

.gallery h2 {
    margin-bottom: 15px;
    font-family: "Cormorant Garamond", serif;
    font-size: 45px;
    color: #52301b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 45px;
    align-items: center;
    
}

.gallery-grid img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.gallery-grid img:nth-child(odd)  { opacity: 0; transform: translateX(-100px); }
.gallery-grid img:nth-child(even) { opacity: 0; transform: translateX(100px);  }

.gallery-grid img.show { opacity: 1; transform: translateX(0); }


/* =====================================================
   LOCATION
===================================================== */

.location {
    padding: 90px 10%;
    background: #f3ead8;
    text-align: center;
}

.location h2 {
    margin-bottom: 15px;
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    color: #52301b;
}

.call-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #d4c9807f;
    color: #000;
    border-radius: 30px;
    font-weight: bold;
}

.call-btn:hover {
    color: #fff;
    background: #851d21c6;
    transform: translateY(-5px);
}


/* Invisible zone that triggers lock — sits just above footer */
#lockTrigger {
    height: 1px;
    width: 100%;
    pointer-events: none;
}


/* =====================================================
   FOOTER (Thank You)
===================================================== */

footer {
    padding: 90px 10% 70px;
    background: linear-gradient(180deg, #2b1610 0%, #1c0f0a 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

footer h2 {
    margin-bottom: 15px;
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
}

footer .heart-emoji {
    display: inline-block;
    animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1);    }
    50%      { transform: scale(1.15); }
}

footer p {
    color: #d9c9b2;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}


/* =====================================================
   MUSIC TOGGLE (floating)
===================================================== */

.music-toggle {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 200;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: rgba(45, 22, 15, 0.85);
    color: #f4ce8a;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(8px);
}

.music-toggle:hover {
    transform: scale(1.08);
}

.music-toggle.muted i::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 2px;
    background: #f4ce8a;
    transform: rotate(-45deg);
    left: -5px;
    top: 7px;
}

.music-toggle.muted {
    opacity: 0.6;
}


/* =====================================================
   FADE ANIMATION
===================================================== */

.hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* =====================================================
   MADHURAMVEPPU PAGE
===================================================== */
.madhuram-btn{
    transition: transform 0.5s ease, opacity 0.5s ease;
    
    animation: sealPulse 2.5s ease-in-out infinite;
    color: #a01447;
    
}
.madhuramveppu {
    min-height: 100vh;
    padding: 90px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        linear-gradient(rgba(245, 232, 200, 0.88), rgba(245, 232, 200, 0.88)),
        url("assets/images/vintage-texture.png");

    background-size: cover;
    background-position: center;

    border-top: 8px solid #8b5e34;
    border-bottom: 8px solid #8b5e34;
}

.madhuram-content {
    position: relative;
    width: 100%;
    max-width: 650px;
    padding: 55px 30px;

    background: rgba(255, 248, 230, 0.55);

    border: 2px solid #9b6b3d;
    outline: 1px solid #c49a62;
    outline-offset: -12px;
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #8b5e34;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.back-btn:hover { background: #6a4425; }

.madhuram-content h1 {
    margin: 0;
    font-family: "Noto Serif Malayalam", serif;
    font-size: 40px;
    font-weight: 700;
    color: #704321;
    text-shadow: 1px 1px 0 #d2ad73;
}

.madhuram-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 330px;
    margin: 25px auto 35px;
}

.madhuram-divider::before,
.madhuram-divider::after {
    content: "";
    height: 1px;
    background: #c52d63;
    flex: 1;
}

.madhuram-divider span {
    color: #c52d63;
    font-size: 30px;
}

.madhuram-small,
.madhuram-date,
.madhuram-time,
.madhuram-venue,
.madhuram-message,
.madhuram-invite,
.madhuram-end {
    font-family: "Noto Serif Malayalam", serif;
    color: #49301e;
}

.madhuram-small  { font-size: 20px; }
.madhuram-date   { font-size: 27px; font-weight: bold; }
.madhuram-time   { font-size: 19px; }
.madhuram-venue  { font-size: 27px; font-weight: bold; color: #8b4b32; }
.madhuram-message,
.madhuram-invite { font-size: 21px; line-height: 2; }

.madhuram-end {
    margin-top: 45px;
    font-size: 18px;
    line-height: 2;
}

.madhuram-end span {
    font-size: 25px;
    font-weight: bold;
    color: #c52d63;
}

@media (min-width:769px) and (max-width:1199px){

.circle{
    width:720px;
}

.couple{
    font-size:58px;
}

.hero-content{
    width:85%;
}

}

/* =====================================================
   RESPONSIVE — TABLET
===================================================== */
@media (min-width:1200px){

.hero-content{
    width:900px;
}

.circle{
    width:760px;
}

.couple{
    font-size:78px;
}

.welcome{
    font-size:22px;
    color: #f2c78f;
}

.title{
    font-size:24px;
}

.date{
    font-size:32px;
}

}

@media (max-width: 992px) {
 
    .hero-ring{
        top: -140px;
        left: 50%;
        transform: translateX(-50%) rotate(-8deg);
        width: 720px;
    }

    .card {
        grid-template-columns: repeat(2, 1fr);
    }

    .circle{
    position:absolute;
    z-index:2;
    width:min(80vw,900px);
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    opacity:.9;
}

    .flower {
        width: 210px;
    }
}

    
/* Rings */
    .rings-container { height: 100vh; }

    .ring { width: 70px; }

    .ring-left {
        left: -20px;
    top: -30px;
    }

    .ring-right {
       right: -20px;
    top: -30px;
    }

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 768px) {

    /* Hero */
    .hero{
    display:flex;
    justify-content:center;
    align-items:center;
}

   .hero-content{
    width:100%;
    max-width:420px;
    margin:0 auto;
    padding:0 20px;
}

    .circle{
    width:110vw;
    max-width:430px;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
}

    .welcome { font-size: 15px; letter-spacing: 1px; color: #f2c78f;}

    .couple {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.1;
        white-space: nowrap;
        
    }

    .title { font-size: 15px; letter-spacing: 2px; }
    .date  { font-size: 17px; }

    .btn { padding: 13px 28px; font-size: 14px; }

    /* Sections */
    .details, .countdown, .gallery, .location {
        padding: 65px 20px;
    }

    .details h2, .countdown h2, .gallery h2, .location h2 {
        font-size: 34px;
    }

    /* Cards */
    .card {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 40px;
    }
    

    
    /* Timer */
    .timer { gap: 14px; }
    .timer > div { width: 125px; padding: 20px 10px; }
    .timer span  { font-size: 34px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
    .gallery-grid img { height: 300px; }

    /* Decorations */
    .flower { width: 145px; }
    .tl { left: -18px; }
    .br { right: -15px; }

    /* Rings */
    .rings-container { height: 100vh; }

    .ring { width: 70px; }

    .ring-left {
        left: -20px;
    top: -30px;
    }

    .ring-right {
       right: -20px;
    top: -30px;
    }

    /* Splash */
    .splash-title { font-size: 34px; margin-bottom: 22px; }

    .envelope { width: 280px; height: 185px; }

    .wax-seal { width: 68px; height: 68px; }
    .seal-letters { font-size: 24px; }

    .letter-content h2 { font-size: 26px; }
    .letter-mono      { font-size: 10px; letter-spacing: 2.5px; }
    .letter-sub       { font-size: 11px; }
    .letter-date      { font-size: 11px; letter-spacing: 4px; }

    /* Madhuramveppu */
    .madhuramveppu    { padding: 60px 15px; }
    .madhuram-content { padding: 55px 20px 45px; }
    .madhuram-content h1 { font-size: 34px; }
    .madhuram-date    { font-size: 23px; }
    .madhuram-venue   { font-size: 24px; }
    .madhuram-message,
    .madhuram-invite  { font-size: 18px; line-height: 1.9; }
}


/* =====================================================
   RESPONSIVE — SMALL PHONES
===================================================== */

@media (max-width: 480px) {

    .couple { font-size: clamp(30px, 9.5vw, 40px); }
    .title  { font-size: 13px; letter-spacing: 1.5px; }
    .date   { font-size: 15px; }

    .details, .countdown, .gallery, .location {
        padding-left: 15px;
        padding-right: 15px;
    }

    .timer > div     { width: 140px; }
    .gallery-grid img{ height: 340px; }

    .flower { width: 1115px; }
    .circle { width: 1020px; }

    .rings  { width: 90px; }

    .ring         { width: 62px; }
    .ring-left    { left: -15%; top: 1%; }
    .ring-right   { right: -10%; top: 1%; }

    .envelope { width: 260px; height: 175px; }

    .madhuram-content h1 { font-size: 29px; }
    .madhuram-small      { font-size: 17px; }
    .madhuram-date       { font-size: 21px; }
    .madhuram-time       { font-size: 17px; }
    .madhuram-venue      { font-size: 21px; }
    .madhuram-message,
    .madhuram-invite     { font-size: 17px; }
}
/*
@media (max-width: 480px) {

    .couple {
        font-size: clamp(30px, 9vw, 40px);
    }

    .title {
        font-size: 13px;
    }

    .date {
        font-size: 15px;
    }

    .flower{
        width:140px;
    }

    .circle{
        width:95vw;
        height:95vw;
        max-width:390px;
        max-height:390px;
        left:50%;
        top:50%;
        transform:translate(-50%,-50%);
    }

    .ring{
        width:60px;
    }

    .ring-left{
        left:-8px;
        top:15px;
    }

    .ring-right{
        right:-8px;
        top:15px;
    }

}*/

/* ===============================
   WEDDING INVITATION
================================ */

.wedding-card-section{
    padding:100px 20px;
    background:#fff8f2;
    text-align:center;
}

.section-subtitle{
    font-size:13px;
    letter-spacing:3px;
    color:#8b5e3c;
    margin-bottom:8px;
}

.wedding-card-section h2{
    font-family:'Cormorant Garamond',serif;
    font-size:42px;
    color:#4b2c20;
    margin-bottom:15px;
}

.divider{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin:20px auto;
}

.divider::before,
.divider::after{
    content:"";
    width:90px;
    height:1px;
    background:#d6b67b;
}

.divider span{
    color:#b62f52;
    font-size:18px;
}

.card-text{
    max-width:650px;
    margin:auto;
    color:#6f5d54;
    line-height:1.8;
    margin-bottom:40px;
}

.wedding-card-box{
    display:flex;
    justify-content:center;
    align-items:center;
}

.wedding-card-img{
    width:min(100%,520px);
    border-radius:18px;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
    transition:.4s;
}

.wedding-card-img:hover{
    transform:scale(1.03);
}

@media(max-width:768px){

.wedding-card-section{
    padding:70px 15px;
}

.wedding-card-section h2{
    font-size:32px;
}

.wedding-card-img{
    width:100%;
}

}

/*---*/
.open-card-btn{
    margin-top:35px;
    padding:16px 38px;
    border:none;
    border-radius:50px;
    background:#d8bd73;
    color:#a01447;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 10px 30px rgba(210, 24, 24, 0.15);

    transition: transform 0.5s ease, opacity 0.5s ease;
    animation: sealPulse 2.5s ease-in-out infinite;
}

.open-card-btn:hover{
   
    color: #fff;
    background: #851d21c6;

    transform:translateY(-5px);
    box-shadow:0 18px 40px rgba(247, 21, 21, 0.22);
}

.open-card-btn i{
    margin-right:10px;
}

.wedding-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.88);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;

    opacity:0;
    visibility:hidden;
    transition:.45s;
}

.wedding-popup.show{
    opacity:1;
    visibility:visible;
}

.popup-card{
    width:min(92%,650px);
    border-radius:18px;
    transform:scale(.7);
    transition:.45s;
    box-shadow:0 30px 80px rgba(0,0,0,.45);
}

.wedding-popup.show .popup-card{
    transform:scale(1);
}

.close-popup{
    position:absolute;
    top:30px;
    right:35px;
    color:white;
    font-size:35px;
    cursor:pointer;
}

.wedding-card-box{
    position:relative;
    display:inline-block;
    overflow:hidden;
    border-radius:25px;
}

.wedding-card-box::before{
    content:"";
    position:absolute;
    inset:-25px;
    background:radial-gradient(circle,
        rgba(255,180,180,.35),
        transparent 70%);
    filter:blur(35px);
    z-index:0;
    animation:glowCard 5s ease-in-out infinite;
}

@keyframes glowCard{
    0%,100%{
        transform:scale(1);
        opacity:.5;
    }
    50%{
        transform:scale(1.15);
        opacity:1;
    }
}
/*
.section-scroll-indicator{
    position: fixed;
    right: 10px;
    top: 55%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: .8;
    pointer-events: none;
    transition: opacity .3s;
}

.section-scroll-indicator span{
    width: 3px;
    height: 22px;
    background: rgb(233, 24, 24);
    border-radius: 10px;
    animation: scrollMove 1.3s ease-in-out infinite;
}

.section-scroll-indicator span:last-child{
    animation-delay: .25s;
}

@keyframes scrollMove{
    0%,100%{
        transform: translateY(-5px);
        opacity:.3;
    }
    50%{
        transform: translateY(5px);
        opacity:1;
    }
}*/

.scroll-chevrons{
    position: fixed;
    right: 4px;
    top: 50%;
    transition: opacity .4s ease;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 9999;
    pointer-events: none;
}

.scroll-chevrons span{
    width: 10px;
    height: 10px;
    border-right: 2px solid #d8b56a;
border-bottom: 2px solid #d8b56a;
    transform: rotate(45deg);
    opacity: 0;
    animation: scrollHint 1.6s infinite;
}

.scroll-chevrons span:nth-child(2){
    animation-delay: .2s;
}

.scroll-chevrons span:nth-child(3){
    animation-delay: .4s;
}

@keyframes scrollHint{

    0%{
        opacity:0;
        transform:rotate(45deg) translate(-6px,-6px);
    }

    50%{
        opacity:1;
    }

    100%{
        opacity:0;
        transform:rotate(45deg) translate(6px,6px);
    }

}

.quote {
    font-family: 'Noto Serif Malayalam', serif;
    font-size: 20px;
    line-height: 1.9;
    color: #7d1919;
    text-align: center;
    font-style: italic;
    
}

.reference {
    margin-top: 15px;
    font-size: 15px;
    letter-spacing: 2px;
    color: #d4af37;
    text-transform: uppercase;
}