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

:root{
    --bg-0:#071613;
    --bg-1:#0b221f;
    --bg-2:#113430;
    --gold:#d4af37;
    --gold-soft:#f3d88c;
    --text:#f6efe0;
    --text-soft:#d8ccb1;
    --glass:rgba(255,255,255,.06);
    --glass-strong:rgba(255,255,255,.09);
    --border:rgba(212,175,55,.24);
    --shadow:0 18px 60px rgba(0,0,0,.32);
}

html{
    scroll-behavior:smooth;
}

body{
    position:relative;
    min-height:100vh;
    font-family:'Montserrat',sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top right, rgba(70,130,115,.24) 0%, rgba(7,22,19,0) 34%),
        radial-gradient(circle at bottom left, rgba(212,175,55,.1) 0%, rgba(7,22,19,0) 28%),
        linear-gradient(180deg, var(--bg-2), var(--bg-1) 46%, var(--bg-0) 100%);
    overflow-x:hidden;
}

body::before,
body::after{
    content:'';
    position:fixed;
    inset:auto;
    pointer-events:none;
    z-index:-1;
    filter:blur(20px);
    opacity:.55;
}

body::before{
    width:420px;
    height:420px;
    top:-120px;
    right:-80px;
    background:radial-gradient(circle, rgba(212,175,55,.18), rgba(212,175,55,0) 70%);
}

body::after{
    width:520px;
    height:520px;
    left:-180px;
    bottom:10%;
    background:radial-gradient(circle, rgba(85,167,149,.18), rgba(85,167,149,0) 70%);
}

.ambient-particles{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:0;
}

.ambient-particles span{
    position:absolute;
    width:14px;
    height:14px;
    border-radius:999px 999px 999px 0;
    background:radial-gradient(circle at 30% 30%, rgba(255,245,205,.95), rgba(212,175,55,.38) 55%, rgba(212,175,55,0) 78%);
    opacity:.38;
    transform:rotate(45deg) scale(var(--scale, 1));
    animation:floatPetal linear infinite;
}

.ambient-particles span:nth-child(1){ left:7%; top:18%; animation-duration:18s; animation-delay:-3s; --scale:.8; }
.ambient-particles span:nth-child(2){ left:15%; top:68%; animation-duration:22s; animation-delay:-11s; --scale:.55; }
.ambient-particles span:nth-child(3){ left:28%; top:22%; animation-duration:20s; animation-delay:-8s; --scale:.72; }
.ambient-particles span:nth-child(4){ left:41%; top:76%; animation-duration:24s; animation-delay:-14s; --scale:.48; }
.ambient-particles span:nth-child(5){ left:54%; top:14%; animation-duration:19s; animation-delay:-6s; --scale:.9; }
.ambient-particles span:nth-child(6){ left:63%; top:58%; animation-duration:23s; animation-delay:-12s; --scale:.62; }
.ambient-particles span:nth-child(7){ left:73%; top:26%; animation-duration:21s; animation-delay:-9s; --scale:.52; }
.ambient-particles span:nth-child(8){ left:82%; top:72%; animation-duration:25s; animation-delay:-16s; --scale:.82; }
.ambient-particles span:nth-child(9){ left:90%; top:20%; animation-duration:26s; animation-delay:-5s; --scale:.46; }
.ambient-particles span:nth-child(10){ left:6%; top:84%; animation-duration:27s; animation-delay:-19s; --scale:.38; }

button,
a{
    -webkit-tap-highlight-color:transparent;
}

button{
    border:none;
    cursor:pointer;
    color:#111;
    font-weight:700;
    background:linear-gradient(135deg, #b68a2f, var(--gold), #f3d88c);
    box-shadow:0 10px 26px rgba(212,175,55,.22);
    transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(212,175,55,.3);
    filter:saturate(1.05);
}

button:active{
    transform:translateY(0);
}

#opening-screen{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    background:url('assets/hero_phone.png') center/cover no-repeat;
}

.opening-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 50% 30%, rgba(212,175,55,.18), rgba(7,22,19,.1) 24%, rgba(5,20,18,.9) 72%),
        linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.78));
    backdrop-filter:blur(8px);
}

.opening-box{
    position:relative;
    z-index:2;
    width:min(92vw, 540px);
    padding:48px 36px;
    text-align:center;
    border-radius:30px;
    background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
    border:1px solid rgba(212,175,55,.34);
    box-shadow:0 0 42px rgba(212,175,55,.1), 0 20px 60px rgba(0,0,0,.45);
    backdrop-filter:blur(18px);
    animation:floatIn .9s ease both;
}

.opening-box::before,
.opening-box::after{
    content:'';
    position:absolute;
    inset:12px;
    border-radius:24px;
    pointer-events:none;
}

.opening-box::before{
    border:1px solid rgba(212,175,55,.18);
}

.opening-box::after{
    inset:18px;
    border:1px solid rgba(255,255,255,.06);
}

.bismillah{
    margin-bottom:18px;
    color:var(--gold);
    font-size:15px;
    letter-spacing:1px;
}

.opening-label{
    font-size:13px;
    letter-spacing:4px;
    text-transform:uppercase;
    color:var(--text-soft);
}

.opening-couple{
    margin:18px 0;
    font-family:'Great Vibes',cursive;
    font-size:76px;
    line-height:1.05;
    color:var(--gold);
    text-shadow:0 0 20px rgba(212,175,55,.3);
}

.opening-couple span{
    font-size:52px;
}

.divider{
    position:relative;
    width:120px;
    height:2px;
    margin:18px auto 22px;
    background:linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider::before,
.divider::after{
    content:'';
    position:absolute;
    top:50%;
    width:12px;
    height:12px;
    border:1px solid rgba(212,175,55,.55);
    transform:translateY(-50%) rotate(45deg);
    background:rgba(7,22,19,.75);
}

.divider::before{ left:-16px; }
.divider::after{ right:-16px; }

#guestName{
    margin:8px 0 18px;
    font-size:clamp(26px, 4vw, 38px);
    font-weight:700;
    line-height:1.15;
}

.invite-text{
    margin-bottom:28px;
    color:#f3ead4;
    line-height:1.65;
}

#openBtn{
    min-width:200px;
    padding:14px 30px;
    border-radius:999px;
    font-size:15px;
}

.hero{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    background:url('assets/hero_phone.png') center/cover no-repeat;
    isolation:isolate;
}

.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg, rgba(5,12,11,.28), rgba(5,12,11,.58)),
        radial-gradient(circle at 50% 25%, rgba(212,175,55,.08), rgba(0,0,0,0) 45%);
    z-index:0;
}

.hero::after{
    content:'';
    position:absolute;
    inset:auto 12% 8% 12%;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.45), transparent);
    z-index:1;
}

.hero-content::before,
.hero-content::after{
    content:'';
    position:absolute;
    left:50%;
    width:min(72vw, 320px);
    height:1px;
    transform:translateX(-50%);
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.55), transparent);
}

.hero-content::before{
    top:-18px;
}

.hero-content::after{
    bottom:-18px;
}

.hero-content{
    position:relative;
    z-index:2;
    padding:0 16px;
    text-align:center;
    animation:floatIn 1s .12s ease both;
}

.hero h4{
    margin-bottom:12px;
    color:var(--text-soft);
    font-size:13px;
    letter-spacing:5px;
    text-transform:uppercase;
}

.hero h4::before,
.hero h4::after{
    content:'✦';
    display:inline-block;
    margin:0 10px;
    color:rgba(212,175,55,.8);
    font-size:11px;
    vertical-align:middle;
}

.hero h1,
.closing h1{
    font-family:'Great Vibes',cursive;
    font-size:clamp(64px, 10vw, 96px);
    line-height:.9;
    color:var(--gold);
    text-shadow:0 0 28px rgba(212,175,55,.38);
}

.hero span{
    display:inline-block;
    margin:12px 0;
    font-size:42px;
    color:#f5e5b0;
}

.hero p{
    margin-top:12px;
    font-family:'Cormorant Garamond',serif;
    font-size:clamp(24px, 4vw, 34px);
    letter-spacing:1px;
    color:#f4ead1;
}

.section,
.gift,
.location,
.closing{
    position:relative;
    width:min(1120px, calc(100% - 32px));
    margin-inline:auto;
    padding:92px 18px;
    text-align:center;
}

.section::before,
.gift::before,
.location::before,
.closing::before{
    content:'';
    position:absolute;
    inset:26px 10px auto;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.25), transparent);
}

.section h2,
.gift h2,
.location h2,
.closing h2{
    position:relative;
    margin-bottom:20px;
    color:var(--gold);
    font-family:'Cormorant Garamond',serif;
    font-size:clamp(32px, 4vw, 46px);
    line-height:1.05;
    letter-spacing:.3px;
}

.section h2::before,
.gift h2::before,
.location h2::before,
.closing h2::before{
    content:'';
    display:block;
    width:84px;
    height:1px;
    margin:0 auto 14px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.85), transparent);
}

.section h2::after,
.gift h2::after,
.location h2::after,
.closing h2::after{
    content:'❦';
    display:block;
    margin:10px auto 0;
    color:rgba(212,175,55,.75);
    font-size:18px;
    letter-spacing:0;
}

.section p,
.location-card p,
.person p,
.event p{
    color:var(--text);
    line-height:1.75;
}

.section p{
    max-width:740px;
    margin-inline:auto;
    color:#ecdfc5;
    font-size:clamp(16px, 2vw, 18px);
}

.couple{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px;
    width:min(1120px, calc(100% - 32px));
    margin-inline:auto;
    padding:18px 18px 88px;
}

.person{
    padding:34px 28px 30px;
    text-align:center;
    border-radius:26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
        rgba(255,255,255,.04);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    backdrop-filter:blur(18px);
    transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.person:hover{
    transform:translateY(-4px);
    border-color:rgba(212,175,55,.4);
    box-shadow:0 20px 54px rgba(0,0,0,.36);
}

.profile-photo{
    width:220px;
    height:220px;
    margin:0 auto 22px;
    border-radius:50%;
    border:5px solid var(--gold);
    background-size:cover;
    background-repeat:no-repeat;
    box-shadow:0 16px 34px rgba(0,0,0,.28);
}

.bride-photo{
    background-image:url('assets/bride.png');
    background-position:center 20%;
}

.groom-photo{
    background-image:url('assets/groom.png');
    background-position:center 15%;
}

.person h2{
    margin-bottom:8px;
    color:#fff4df;
    font-family:'Cormorant Garamond',serif;
    font-size:34px;
    line-height:1.1;
}

.person p{
    color:#e3d5b8;
    font-size:16px;
}

#countdown{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    width:min(900px, 100%);
    margin:34px auto 0;
}

.count-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:140px;
    padding:22px 12px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border:1px solid rgba(212,175,55,.28);
    box-shadow:var(--shadow);
    backdrop-filter:blur(16px);
    transition:transform .3s ease, border-color .3s ease;
}

.count-card:hover{
    transform:translateY(-3px);
    border-color:rgba(212,175,55,.45);
}

.count-number{
    margin-bottom:8px;
    color:var(--gold);
    font-size:clamp(38px, 5vw, 54px);
    line-height:1;
    font-weight:700;
}

.count-label{
    color:var(--text);
    font-size:17px;
    font-weight:500;
    letter-spacing:.3px;
}

.timeline{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px;
    width:min(900px, calc(100% - 32px));
    margin-inline:auto;
    padding:30px 18px 88px;
}

.event{
    padding:34px 28px;
    text-align:center;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    border:1px solid rgba(212,175,55,.26);
    box-shadow:var(--shadow);
    backdrop-filter:blur(16px);
    transition:transform .3s ease, border-color .3s ease;
}

.event:hover{
    transform:translateY(-4px);
    border-color:rgba(212,175,55,.42);
}

.event h3{
    margin-bottom:10px;
    color:var(--gold);
    font-family:'Cormorant Garamond',serif;
    font-size:28px;
    letter-spacing:2px;
}

.event p{
    color:#ecdfc5;
    font-size:16px;
}

.gift{
    padding-top:100px;
}

.bank-card{
    width:min(420px, 100%);
    margin:20px auto;
    padding:28px 24px;
    text-align:center;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border:1px solid rgba(212,175,55,.24);
    box-shadow:var(--shadow);
    backdrop-filter:blur(16px);
}

.bank-card p{
    margin-bottom:8px;
    color:var(--text-soft);
    font-size:14px;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.bank-card h3{
    margin-bottom:18px;
    color:#fff4df;
    font-size:24px;
    letter-spacing:1px;
    word-break:break-all;
}

.bank-card button{
    padding:12px 22px;
    border-radius:999px;
    font-size:14px;
}

.location-card{
    max-width:900px;
    margin:0 auto;
    padding:38px 30px;
    border-radius:26px;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border:1px solid rgba(212,175,55,.24);
    box-shadow:var(--shadow);
    backdrop-filter:blur(18px);
}

.location-card p{
    margin-bottom:8px;
    color:#ecdfc5;
    font-size:18px;
}

.map-container{
    position:relative;
    overflow:hidden;
    margin:30px 0 22px;
    border-radius:20px;
    border:1px solid rgba(212,175,55,.28);
    box-shadow:0 14px 34px rgba(0,0,0,.26);
}

.map-container::after{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg, rgba(15,46,42,.08), rgba(15,46,42,.18));
}

.map-container iframe{
    display:block;
    width:100%;
    height:420px;
    border:none;
}

.maps-btn{
    display:inline-block;
    padding:15px 26px;
    border-radius:999px;
    color:#111;
    text-decoration:none;
    font-weight:700;
    background:linear-gradient(135deg, #b68a2f, var(--gold), #f3d88c);
    box-shadow:0 10px 26px rgba(212,175,55,.2);
    transition:transform .25s ease, box-shadow .25s ease;
}

.maps-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(212,175,55,.28);
}

.closing{
    padding-bottom:120px;
}

.closing p{
    max-width:640px;
    margin:0 auto 18px;
    color:#ecdfc5;
    line-height:1.75;
}

.closing h1{
    margin-top:10px;
}

.closing h1::before{
    content:'';
    display:block;
    width:110px;
    height:1px;
    margin:0 auto 14px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.65), transparent);
}

#musicBtn{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:998;
    width:60px;
    height:60px;
    border-radius:50%;
    font-size:22px;
    line-height:1;
    color:#fff;
    background:linear-gradient(135deg, rgba(212,175,55,.95), rgba(182,138,47,.95));
    box-shadow:0 12px 28px rgba(0,0,0,.28);
}

.reveal{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .7s ease, transform .7s ease;
}

.reveal.is-visible{
    opacity:1;
    transform:translateY(0);
}

@keyframes floatIn{
    from{
        opacity:0;
        transform:translateY(16px) scale(.985);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes floatPetal{
    0%{
        transform:translate3d(0, 0, 0) rotate(30deg) scale(1);
        opacity:0;
    }
    10%{
        opacity:.3;
    }
    50%{
        transform:translate3d(18px, -120px, 0) rotate(58deg) scale(1);
        opacity:.48;
    }
    100%{
        transform:translate3d(-10px, -240px, 0) rotate(88deg) scale(1);
        opacity:0;
    }
}

@media (max-width: 900px){
    .couple,
    .timeline{
        grid-template-columns:1fr;
    }

    .couple{
        padding-bottom:72px;
    }

    #countdown{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .opening-box{
        padding:34px 24px;
    }

    .opening-couple{
        font-size:56px;
    }

    .opening-couple span{
        font-size:40px;
    }

    .hero{
        min-height:92vh;
    }

    .hero h4{
        letter-spacing:4px;
    }

    .profile-photo{
        width:200px;
        height:200px;
    }

    .ambient-particles span{
        opacity:.24;
    }
}

@media (max-width: 640px){
    .section,
    .gift,
    .location,
    .closing{
        width:calc(100% - 20px);
        padding:72px 12px;
    }

    .section::before,
    .gift::before,
    .location::before,
    .closing::before{
        inset:18px 8px auto;
    }

    .opening-label{
        letter-spacing:3px;
    }

    .opening-couple{
        font-size:50px;
    }

    .hero h1{
        font-size:58px;
    }

    .hero span{
        margin:8px 0;
        font-size:34px;
    }

    .hero p{
        font-size:24px;
    }

    .person{
        padding:28px 20px;
    }

    .person h2{
        font-size:30px;
    }

    .event,
    .location-card,
    .bank-card{
        padding:28px 20px;
    }

    .location-card p{
        font-size:16px;
    }

    .map-container iframe{
        height:300px;
    }

    #musicBtn{
        width:54px;
        height:54px;
        font-size:20px;
    }

    .opening-box::before,
    .opening-box::after,
    .hero-content::before,
    .hero-content::after{
        width:min(78vw, 260px);
    }
}

@media (prefers-reduced-motion: reduce){
    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{
        animation:none !important;
        transition:none !important;
    }

    .reveal{
        opacity:1;
        transform:none;
    }
}
