/* =========================
   THE SACRED GARDEN
   Local Fonts
========================= */

@font-face {
    font-family: "GT Super";
    src: url("../assets/fonts/GT_Super_Display_Lig.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Imperial Script";
    src: url("../assets/fonts/ImperialScript-Regul.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BeauRivage";
    src: url("../assets/fonts/BeauRivage-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ovo";
    src: url("../assets/fonts/Ovo-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: #f9f0e0;
    color: #6a5140;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

/* =========================
   OPENING EXPERIENCE
========================= */

#weiOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f9f0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.1s ease;
}

#weiImg {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
}

#weiTapWrap {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: tapFloat 1.8s ease-in-out infinite;
}

#weiTapLabel {
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6a5140;
    white-space: nowrap;
}

.wei-chevron {
    width: 10px;
    height: 10px;
    margin: 10px auto 0;
    border-right: 1px solid #6a5140;
    border-bottom: 1px solid #6a5140;
    transform: rotate(45deg);
}

@keyframes tapFloat {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}


/* =========================
   INTRO VIDEO
========================= */

#weiVideoWrap {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    background: #f9f0e0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 1.4s ease,
        visibility 0s linear 1.4s;
}

#weiVideoWrap.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 1.4s ease,
        visibility 0s linear 0s;
}

#weiVideo {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
}

/* =========================
   HERO
========================= */

#hero {
    position: relative;
    width: 100%;
    min-height: 1240px;
    overflow: hidden;
    background: #f9f0e0;
}

#heroVideo {
    position: absolute;
    top: 0;
    left: 50%;
    width: 450px;
    height: 762px;
    object-fit: cover;
    transform: translateX(-50%);
    z-index: 0;
    backface-visibility:hidden;
-webkit-backface-visibility:hidden;
will-change:transform, opacity, filter;


}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 450px;
    height: 676px;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(255, 249, 235, 1) 0%,
        transparent 85%
    );
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 50%;
    width: 560px;
    height: 100%;
    transform: translateX(-50%);
    text-align: center;
    color: #a67d2b;
    z-index: 6;
}

.hero-title {
    margin-top: 154px;
    font-family: "GT Super", serif;
    font-size: 40px;
}

.hero-date {
    margin-top: 2px;
    font-family: "GT Super", serif;
    font-size: 25px;
    font-weight: 600;
}

.hero-names {
    margin-top: 70px;
    font-family: "BeauRivage", cursive;
    font-size: 80px;
    font-weight: 400;
    line-height: 0.9;
}

.hero-names span {
    display: block;
    font-family: "GT Super", serif;
    font-size: 40px;
    line-height: 1.5;
}

.hero-subtitle {
    margin-top: 450px;
    font-family: "GT Super", serif;
    font-size: 41px;
    line-height: 1.15;
}

@media (max-width: 600px) {
    #hero {
        min-height: 1240px;
    }

    #heroVideo {
        width: 450px;
        left: 50%;
    }

    .hero-content {
        width: 100%;
        max-width: 560px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-names {
        font-size: 70px;
    }

    .hero-subtitle {
        font-size: 36px;
    }
}

/* =========================
   RSVP POPUP
========================= */

#rsvp-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

#rsvp-popup.active {
    display: flex;
}

.rsvp-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 24px;
    background: #fffaf8;
    border-radius: 5px;
}

.rsvp-box h2 {
    margin: 0 0 10px;
    text-align: center;
    font-family: "GT Super", serif;
    font-size: 30px;
    color: #6a5140;
}

.rsvp-box > p {
    margin: 0 0 25px;
    text-align: center;
    font-family: "Ovo", serif;
    color: #6a5140;
}

#rsvp-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 30px;
    color: #6a5140;
    cursor: pointer;
}

#rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#rsvp-form input,
#rsvp-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d8cbbb;
    border-radius: 4px;
    background: #fff;
    font-family: "Ovo", serif;
}

#rsvp-form textarea {
    min-height: 90px;
    resize: vertical;
}

#rsvp-form label {
    font-family: "Ovo", serif;
    color: #6a5140;
}

#rsvp-form button[type="submit"] {
    padding: 14px;
    border: 0;
    border-radius: 20px;
    background: #5a0f1b;
    color: #f9f0e0;
    font-size: 20px;
    cursor: pointer;
}

/*Countdoun Timer*/

#countdown-section {
    text-align: center;
    padding: 60px 20px;
    background: #f9f0e0;
}


#countdown-section h2 {
    color: #a67d2b;
    font-size: 28px;
    margin-bottom: 30px;
}


#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}


.countdown-item {
    text-align: center;
}


.countdown-number {
    display: block;
    font-size: 42px;
    font-weight: 600;
    color: #a67d2b;
}


.countdown-item small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #a67d2b;
    text-transform: uppercase;
}


.countdown-separator {
    font-size: 35px;
    color: #a67d2b;
    margin-bottom: 18px;
}



.separator {
    font-family: "Ovo", serif;
    font-size: 40px;
    color: #a67d2b;
    align-self: flex-start;
    margin-top: 0;
}

#schedule {
    position: relative;
    width: 100%;
    height: 570px;
    padding: 0;
    background: #f9f0e0;
    text-align: center;
    overflow: hidden;
}

/* =========================
   BACKGROUND ARTWORK
========================= */

.schedule-bg {
    position: absolute;
    left: 50%;
    width: 744px;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
    display: block;
    z-index: 0;
    pointer-events: none;
}

.schedule-bg-top {
    top: -20px;
}

.schedule-bg-bottom {
    top: 321px;
}

/* =========================
   CONTENT
========================= */

.schedule-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* =========================
   TITLE
========================= */

.schedule-title-wrap {
    position: absolute;
    top: 35px;
    left: 50%;
    width: 700px;
    max-width: 100%;
    height: 90px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-title-wrap h2 {
    margin: 0;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    font-family: "GT Super", serif;
    font-size: clamp(28px, 7vw, 41px);
    font-weight: 300;
    line-height: 1.2;
    color: #a67d2b;
}

.schedule-left-element,
.schedule-right-element {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 1;
}

.schedule-left-element {
    left: 0;
}

.schedule-right-element {
    right: 0;
}

/* =========================
   TIMELINE
========================= */

.timeline {
    position: absolute;
    top: 160px;
    left: 50%;
    width: 500px;
    height: 321px;
    margin: 0;
    transform: translateX(-50%);
    z-index: 3;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #a67d2b;
    transform: translateX(-50%);
}

.event {
    position: absolute;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
}

.event:nth-child(1) { top: 0; }
.event:nth-child(2) { top: 64px; }
.event:nth-child(3) { top: 128px; }
.event:nth-child(4) { top: 192px; }
.event:nth-child(5) { top: 256px; }

.event-time,
.event-name {
    width: 50%;
    font-family: "Ovo", serif;
    font-size: 20px;
    color: #6a5140;
}

.event-time {
    padding-right: 35px;
    text-align: right;
}

.event-name {
    padding-left: 35px;
    text-align: left;
}

/* DIAMONDS */

.event::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #15509fb8;
    border: 1px solid #a67d2b;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* =========================
   ROSE
========================= */

.schedule-rose {
    position: absolute;
    top: 135px;
    left: 50%;
    width: 55px;
    height: 50px;
    transform: translateX(-50%);
    z-index: 4;
}

.schedule-rose img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    #schedule {
        height: 570px;
    }

    .schedule-bg {
        width: 744px;
        max-width: none;
    }

    .schedule-bg-top {
        top: 10px;
    }

    .schedule-bg-bottom {
        top: 3px;
        height: 534px;
    }

    .schedule-title-wrap {
        top: 35px;
        width: 100%;
    }

    .schedule-left-element,
    .schedule-right-element {
        width: 65px;
    }

    .timeline {
        width: 100%;
        max-width: 500px;
    }

    .event-time,
    .event-name {
        font-size: 18px;
    }

    .event-time {
        padding-right: 25px;
    }

    .event-name {
        padding-left: 25px;
    }
}


#preferences {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 110px 25px;
    background: #f9f0e0;
    text-align: center;
    overflow: hidden;
}

.preference-block {
    max-width: 550px;
    margin: 0 auto 90px;
}

.preference-block:last-of-type {
    margin-bottom: 0;
}

.preference-block h2 {
    margin: 0 0 25px;
    font-family: "GT Super", serif;
    font-size: 38px;
    font-weight: 300;
    color: #a67d2b;
}

.preference-block p {
    margin: 0 auto;
    max-width: 480px;
    font-family: "Ovo", serif;
    font-size: 20px;
    line-height: 1.6;
    color: #6a5140;
}

#rsvp {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 100px 20px;
    background: #f9f0e0;
    text-align: center;
    overflow: hidden;
}

#rsvp h2 {
    margin: 0 0 25px;
    font-family: "GT Super", serif;
    font-size: 41px;
    font-weight: 300;
    color: #a67d2b;
}

#rsvp > p {
    max-width: 500px;
    margin: 0 auto 40px;
    font-family: "Ovo", serif;
    font-size: 20px;
    line-height: 1.5;
    color: #6a5140;
}

.rsvp-seal {
    margin: 0 auto 35px;
    width: 110px;
}

.rsvp-seal img {
    width: 100%;
    height: auto;
    display: block;
}

#rsvp-button {
    padding: 14px 34px;
    border: 1px solid #a67d2b;
    border-radius: 30px;
    background: transparent;
    color: #6a5140;
    font-family: "Ovo", serif;
    font-size: 18px;
    cursor: pointer;
}

#final-section {
    position: relative;
    width: 100%;
    min-height: 900px;
    background: #f9f0e0;
    text-align: center;
    overflow: hidden;
}

.final-image {
    width: 100%;
    max-width: 450px;
    height: 673px;
    margin: 0 auto;
    overflow: hidden;
}

.final-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#final-section h2 {
    margin: 70px 20px 20px;
    font-family: "GT Super", serif;
    font-size: 41px;
    font-weight: 300;
    line-height: 1.2;
    color: #a67d2b;
}

#final-section > p {
    margin: 0;
    font-family: "BeauRivage", cursive;
    font-size: 55px;
    color: #6a5140;
}

.rsvp-popup-decoration {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 15px;
}

.rsvp-popup-decoration img {
    width: 100%;
    height: auto;
    display: block;
}

.rsvp-popup-dress {
    width: 100%;
    max-width: 120px;
    margin: 0 auto 20px;
}

.rsvp-popup-dress img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .rsvp-box {
        max-height: 88vh;
        padding: 25px 20px;
    }

    .rsvp-popup-decoration {
        max-width: 140px;
    }

    .rsvp-popup-dress {
        max-width: 90px;
    }
}

.hero-family-text {
    position: absolute;
    top: 1050px;
    left: 50%;
    width: 307px;
    transform: translateX(-50%);
    font-family: "Ovo", serif;
    font-size: 21px;
    line-height: 1.45;
    text-align: center;
    color: #6a5140;
}

.scroll-down {
    position: absolute;
    top: 518px;
    left: 50%;
    width: 316px;
    transform: translateX(-50%);
    font-family: "GT Super", serif;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    color: #a67d2b;
}

.scroll-chevron {
    width: 12px;
    height: 12px;
    margin: 12px auto 0;
    border-right: 1px solid #a67d2b;
    border-bottom: 1px solid #a67d2b;
    transform: rotate(45deg);
}



.hero-decoration {
    position: absolute;
    top: 850px;
    right: 0;
    width: 180px;
}

.hero-decoration img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {

    #hero {
        min-height: 1240px;
    }

    #heroVideo {
        width: 450px;
        max-width: none;
    }

    .hero-main-image {
        width: 744px;
        max-width: none;
    }

    .hero-decoration {
        width: 150px;
        right: -10px;
    }

    .separator {
        font-size: 32px;
    }
}

.extra-decorations {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 300px;
    margin: 30px auto 0;
    overflow: hidden;
}

.extra-decorations img {
    position: absolute;
    width: 100px;
    height: auto;
    display: block;
}

.extra-decorations img:nth-child(1) {
    left: 0;
    top: 0;
}

.extra-decorations img:nth-child(2) {
    right: 0;
    top: 20px;
}

.extra-decorations img:nth-child(3) {
    left: 30px;
    bottom: 20px;
}

.extra-decorations img:nth-child(4) {
    right: 30px;
    bottom: 0;
}

.extra-decorations img:nth-child(5) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.extra-decorations img:nth-child(6) {
    left: 10%;
    bottom: 40px;
}

.extra-decorations img:nth-child(7) {
    right: 10%;
    bottom: 40px;
}

.hero-content {
    opacity: 0;
}

.hero-content.hero-reveal {
    animation: heroTextReveal 6s ease-out forwards;
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateX(-50%) translateY(28px);
    }

    60% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(-50%) translateY(0);
    }
}

#hero {visibility: hidden;}

#heroVideo {
    transform: translateX(-50%) scale(1.6);
    opacity: 0;


}

#heroVideo.hero-video-reveal {
    animation: heroVideoReveal 4s ease-out forwards;
}

@keyframes heroVideoReveal {
    0% {
        opacity: 0;
        filter: blur(22px);
        transform: translateX(-50%,0,0) scale(1.6);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%,0,0) scale(1);
    }
}



.hero-main-image {
    position: absolute;
    top: 762px;
    left: 50%;
    width: 744px;
    height: 487px;
    object-fit: contain;
    transform: translateX(-50%);
    display: block;
    z-index: 1;
}

.hero-left-decoration{
    position:absolute;
    top:566px;
    left:calc(50% - 201px);
    width:224px;
    height:343px;
    object-fit:contain;
    z-index:4;
    transform-origin:center center;
    animation:heroLeftFloat 4s ease-in-out infinite; 
    animation-play-state: paused;
    opacity: 0;
}


.hero-right-decoration{
    position:absolute;
    top:547px;
    left:calc(50% + 16px);
    width:236px;
    height:359px;
    object-fit:contain;
    z-index:4;
    transform-origin:center center;
    animation:heroRightFloat 4s ease-in-out infinite;
    animation-play-state: paused;
    opacity: 0;
}
.hero-decoration-reveal{
    animation:
        heroLeftReveal 4s ease-out forwards,
        heroLeftFloat 4s ease-in-out 4s infinite;
}


.hero-right-decoration.hero-decoration-reveal{
    animation:
        heroRightReveal 4s ease-out forwards,
        heroRightFloat 4s ease-in-out 4s infinite;
}


@keyframes heroLeftReveal{
    0%{
        opacity:0;
        filter:blur(18px);
        transform:translateX(-35px) scale(1.08) rotate(-2deg);
    }


    100%{
        opacity:1;
        filter:blur(0);
        transform:translateX(0) scale(1) rotate(0deg);
    }
}


@keyframes heroRightReveal{
    0%{
        opacity:0;
        filter:blur(18px);
        transform:translateX(35px) scale(1.08) rotate(2deg);
    }


    100%{
        opacity:1;
        filter:blur(0);
        transform:translateX(0) scale(1) rotate(0deg);
    }
}


@keyframes heroLeftFloat{
    0%{
        transform:scale(1) rotate(0deg);
    }
    50%{
        transform:scale(1.06) rotate(2deg);
    }
    100%{
        transform:scale(1) rotate(0deg);
    }
}


@keyframes heroRightFloat{
    0%{
        transform:scale(1) rotate(0deg);
    }
    50%{
        transform:scale(1.04) rotate(-2deg);
    }
    100%{
        transform:scale(1) rotate(0deg);
    }
}




@media (max-width:640px){


    .hero-left-decoration{
        top: 592px;
        left: -16px;
        width: 205px;
        height: 329px;
    }


    .hero-right-decoration{
        top:586px;
        left:calc(50% + 38px);
        width:210px;
        height:319px;
    }


}



.hero-bismillah {
    position: absolute;
    top: 800px;
    left: 50%;
    width: 180px;
    height: auto;
    transform: translateX(-50%);
    display: block;
    z-index: 5;
}

.hero-subtitle {
    position: absolute;
    top: 899px;
    left: 50%;
    width: 560px;
    margin: 0;
    transform: translateX(-50%);
    z-index: 6;
}

.hero-family-text {
    position: absolute;
    top: 1050px;
    left: 50%;
    width: 307px;
    margin: 0;
    transform: translateX(-50%);
    z-index: 6;
}

@media (max-width: 600px) {

    .hero-main-image {
        width: 744px;
        max-width: none;
    }

    .hero-bismillah {
        width: 150px;
    }

    .hero-subtitle {
        width: 100%;
        max-width: 560px;
        font-size: 36px;
    }

    .hero-family-text {
        width: 307px;
        font-size: 21px;
    }
}
 /* =========================
   LOCATION
========================= */

#location {
    position: relative;
    width: 100%;
    min-height: 1100px;
    padding: 100px 20px 120px;
    background: #f9f0e0;
    text-align: center;
    overflow: hidden;
}

#location h2 {
    margin: 0 0 30px;
    font-family: "GT Super", serif;
    font-size: 41px;
    font-weight: 300;
    color: #a67d2b;
}

.location-top-decoration {
    width: 180px;
    margin: 0 auto 25px;
}

.location-top-decoration img {
    width: 100%;
    height: auto;
    display: block;
}

.location-name {
    margin: 0 auto 30px;
    font-family: "Ovo", serif;
    font-size: 20px;
    line-height: 1.5;
    color: #6a5140;
}

.location-center-image {
    width: 220px;
    margin: 0 auto 25px;
}

.location-center-image img {
    width: 100%;
    height: auto;
    display: block;
}

.location-noroot-nine {
    width: 150px;
    margin: 0 auto 35px;
}

.location-noroot-nine img {
    width: 100%;
    height: auto;
    display: block;
}

/* MAP + SVG FRAME */

.map-wrapper {
    position: relative;
    width: 341px;
    height: 341px;
    margin: 0 auto;
    overflow: hidden;
}

.map-wrapper iframe {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 335px;
    height: 335px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 15px;
    display: block;
    z-index: 1;
}

.location-map-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 341px;
    height: 341px;
    display: block;
    z-index: 2;
    pointer-events: none;
}

.location-noroot-ten {
    width: 150px;
    margin: 25px auto 0;
}

.location-noroot-ten img {
    width: 100%;
    height: auto;
    display: block;
}


/* MOBILE */

@media (max-width: 600px) {

    #location {
        padding-left: 15px;
        padding-right: 15px;
    }

    .location-top-decoration {
        width: 150px;
    }

    .location-center-image {
        width: 180px;
    }

    .location-noroot-nine,
    .location-noroot-ten {
        width: 120px;
    }

    .map-wrapper {
        width: 341px;
        height: 341px;
        max-width: 100%;
    }

    .map-wrapper iframe {
        top: 3px;
        left: 50%;
        width: 335px;
        height: 335px;
        transform: translateX(-50%);
    }

    .location-map-frame {
        width: 341px;
        height: 341px;
        left: 50%;
        transform: translateX(-50%);
    }
}

