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

html {
    scroll-behavior: smooth;
}

body.scroll-off {
    overflow: hidden;
}

body:not(.scroll-off) main {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

header{
    height: 100vh;
    background-color: #222222;
}

.hero {
    position: relative;
    background: url('../img/hero.png') no-repeat center;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content h1 span{
    color: #4797ff;
}

.content h4 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: normal;
    padding-bottom: 1rem;
}

.profile-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
}

.profile-icon img{
    border: 1px solid #fff;
    width: 40%;
    border-radius: 50%;
}

.next-button{
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 50px;
    border-radius:15px;
    color: #000;
    z-index: 999;
}

.next-button a{
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.next-button a p::after{
    content: '';
    display: block;
    width: 20%;
    margin: 0.5rem auto 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease-in-out;
}

.next-button img{
    width: 1.8rem;
}

.count-down-date {
    display: flex;
    justify-content: center;
    position: a;
}

.count-down {
    display: flex;
    gap: 20px;
}

.count-down-item {
    background: #fff;
    border: 1px solid #4797ff;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.count-down-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4797ff;
    display: block;
}

.count-down-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin: 0;
}

/* Nav-Maps */
.navmap-container {
    position: fixed;
    z-index: 100;
    bottom: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.navmap-container.show {
    opacity: 1;
    pointer-events: auto;
}

.map-content {
    background: #79797996;
    padding: 0.3rem;
    margin: 1rem;
    border-radius: 8px;
}

.map-content img {
    width: 1.5rem;
    display: block;
}

/* MAIN */
main {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    background-color: #f9f9f9;
    color: #333;
    padding-bottom: 50px;
}

.container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quran-opening {
    text-align: center;
    padding: 60px 20px;
    background-color: #4797ff;
    color: #333;
}

.quran-verse{
    background-color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

.quran-verse-content {
    font-style: italic;
    font-family: 'serif';
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
    color: #666;
    padding: 20px;
}

.quran-verse-content img{
    width: 40%;
    display: block;
    padding:20px;
}

.quran-verse-content span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
    font-size: 0.85rem;
    color: #4797ff;
}

.islamic-opening {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    color: #333;
}

.salam {
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.invitation-text {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* gallery container */
.gallery-container {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    padding-top: 20px;
}

.gallery-track {
    display: flex;
    width: calc(250px * 8);
    animation: scroll 30s linear infinite;
}

.gallery-track img {
    width: 20vw;
    max-width: 250px;
    min-width: 150px;
    height: auto;
    object-fit: cover;
    margin: 0 10px;
    border-radius: 5px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 4));
    }
}

.gallery-track:hover {
    animation-play-state: paused;
}

/* Profile */
.profile {
    text-align: center;
}

.couple {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.mempelai {
    flex: 1;
}

.mempelai p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #777;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mempelai h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #4797ff;
}

.and {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #777;
}

/* Main Event */
.event-header{
    background-color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding-top: 40px;
    color: #4797ff;
}

.events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 20px 60px 20px;
    background-color: #fff;
}

.event-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0.4rem;
    height: 100%;
    background-color: #4797ff;
}

.event-card h3 {
    margin-bottom: 15px;
    color: #4797ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-line{
    content: '';
    position: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #22222238;
}

.event-date{
    padding-top: 1rem;
}

.event-date p:first-child{
    font-size: 0.8rem;
    color: #222222;
}

.event-date p:last-child{
    color: #000000;
    font-size: 1.2rem;
    font-weight: bold;
}

.event-location{
    padding: 2rem;
}

.event-location p{
    font-size: 0.8rem;
}

.add-calendar a{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4797ff;
    width: max-content;
    padding: 0.4rem 0.5rem;
    border-radius: 0.6rem;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
}

.add-calendar p{
    font-size: 0.5rem;
    font-weight: bold;
}

.add-calendar img{
    width: 1.4rem;
    height: max-content;
}

.add-calendar p{
    font-size: 0.7rem;
}

/* Story h1 */
.story-h1{
    font-size:1.3rem;
    text-transform: uppercase;
    color: #4797ff;
    text-align: center;
    padding-top: 2rem;
}

.story-card{
    position: relative;
    padding: 1.6rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.story-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height:0.8rem;
    width: 100%;
    background-color: #4797ff;
    border-radius: 15px 15px 0 0;
}

.story-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.story-left h2{
    font-size: 1.2rem;
}

.story-date p{
    font-size: 0.8rem;
    color: #222222;
    border-bottom: 1px solid #22222238;
    padding: 0.3rem 0;
    font-weight: bold;
}

.story-right img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    margin-top: -6rem;
    border: 4px solid #fff;
}

.story-desc p{
    font-size:1rem;
    padding-top: 0.3rem;
    text-align: justify;
    line-height: 1;
    color: #222222;
}

.story-line-card{
    content: '';
    position: block;
    bottom: 0;
    left: 0;
    margin-left:1rem;
    width: 0.4rem;
    height: 2rem;
    background-color:#4797ff;
}

.story-line-card-after{
    content: '';
    position: block;
    bottom: 0;
    left: 0;
    margin-left:1rem;
    width: 0.4rem;
    height: 5rem;
    background-color:#4797ff;
}


/* Main maps */
.maps {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.maps h3 {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    color:#4797ff ;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gift Content */
.send-gift{
    background-color:#4797ff;
    padding: 40px 20px;
}

.send-gift h3{
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

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

.gift-content p{
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    padding: 0.5rem 0;
}

.gift-button{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: #000000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.gift-button img{
    width: 1.5rem;
    height: auto;
}

.gift-button p{
    font-size: 0.9rem;
    color: #fff;
}

.gift-button:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Closing */
.closing h3{
    font-size: 1.2rem;
    text-transform:uppercase;
    color: #4797ff;
    text-align: center;
}

.closing-content{
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.closing-img{
    display:flex;
    align-items: center;
    justify-content: center;
}

.closing-img img{
    width: 30%;
    height:auto;
    border-radius:10px;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.closing-img img:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.line{
    content: '';
    position: block;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 1px;
    margin: 0.5rem auto;
    background-color: #22222238;
}

.closing-content h4{
    text-align: center;
    font-weight: bold;
    padding-top:1.2rem;
    font-size:2.5rem;
    font-family: 'Great Vibes', cursive;
}

.closing-content p{
    text-align: center;
    font-weight: bold;
    padding-top:1rem;
    font-size:1.2rem;
}

/* footer */
footer{
    background-color: #222222;
    padding: 1rem;
    color: #fff;
}

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

.foooter-content{
    width: 100%;
    gap: 1rem;
}

.footer-content p:first-child{
    font-size: 2.4rem;
    font-family:'Courier New', Courier, monospace;
    font-weight:bolder;
    text-transform: uppercase;
}

.footer-content p:last-child{
    text-align: center;
    font-size: 0.8rem;
    padding-top: 1rem;
    color: #b1b1b1;
}

.footer-contact{
    display: flex;
    align-items: center;
    justify-content:start;
    gap: 1rem;
    text-align: center;
    padding:3rem 0 1rem 0;
}

.footer-contact img{
    width: 3.5rem;
    height: auto;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #fff;    
}

.portofolio{
    padding: 0.5rem 0 0.5rem 0;
}

.portofolio a{
    color: #4797ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 3.5rem;
    }
    
    .content h3 {
        font-size: 1.2rem;
    }

    /* MAIN */
    .couple {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Footer */
    .footer-content p:first-child{
        font-size: 2rem;
    }

    .footer-contact{
        padding:2rem 0 1rem 0;
    }

    .footer-container img{
        width: 2.5rem;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero{
        height:100vh;
    }

    .content{
        padding-top: 20%;
    }

    .content h1 {
        font-size: 2.5rem;
    }
    
    .content h3 {
        font-size: 1rem;
    }

    .content h4{
        padding-bottom: 1rem;
        font-size: 0.9rem;
    }

    .next-button a{
        font-size: 0.7rem;
    }

    .next-button img{
        width: 1.5rem;
    }

    /* MAIN */
    .quran-verse {
        font-size: 0.9rem;
    }
    
    .count-down {
        gap: 10px;
    }
    
    .count-down-item {
        width: 65px;
        height: 65px;
    }

    .count-down-number {
        font-size: 1.2rem;
    }

    /* Main-Couple */
    .couple {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .mempelai {
        width: 100%;
    }

    .mempelai h2 {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .mempelai p {
        font-size: 0.7rem;
        margin-bottom: 10px;
        max-width: 90%;
    }

    .and {
        font-size: 2rem;
        margin: 10px 0;
    }

    /* story */
    .story-h1{
        font-size:1.1rem;
    }

    .story-card{
        padding: 1rem;
    }

    .story-left h2{
        font-size: 1.1rem;
    }

    .story-date p{
        font-size: 0.7rem;
    }

    .story-right img {
        width: 140px;
        height: 170px;
    }

    .story-desc p{
        font-size:0.8rem;
        padding-top: 0.3rem;
    }

    .story-line-card-after{
        height: 6rem;
    }

    /* closing */
    .closing h3{
        font-size: 1.2rem;
    }

    .closing-content h4{
        font-size: 1.8rem;
    }

    .closing-content p{
        font-size: 1rem;
    }

    .closing-img img{
        width: 40%;
    }
}

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


@media (max-width: 380px){
    .next-button a{
        font-size: 0.6rem;
    }
}

/* Typewriter-text */
.typewriter-text {
    font-family: 'Montserrat', sans-serif;
    display: block;
    white-space: normal;
    overflow: visible;
    opacity: 1;
    text-align: center;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #777;
    margin: 10px auto;
    max-width: 90%;
}

.typewriter-text.active {
    animation: fadeInText 1.5s ease forwards;
}

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

@keyframes printEffect {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* LOADING SCREEN */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
}

.loader-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInName 1.5s ease forwards;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: #eeeeee;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #4797ff;
    animation: fillProgress 2s ease-in-out forwards;
}

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

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* KARTU BCA */
.hidden {
    display: none !important;
}

.gift-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-top: 4rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gift-card-container:not(.hidden) {
    display: flex !important;
    opacity: 1;
}

.gift-card {
    width: 100%;
    max-width: 400px;
    min-height: 220px; 
    aspect-ratio: 1.58 / 1;
    background: linear-gradient(135deg, #a5d1e9 0%, #76afd3 40%, #5b99c2 100%);
    border-radius: 15px;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gift-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 15px;
}

.bca-logo {
    position: absolute;
    top: 15px;
    right: 20px;
}

.bca-logo img {
    width: clamp(45px, 12vw, 65px);
    filter: brightness(0) invert(1);
}

.chip {
    width: 13%;
    aspect-ratio: 1.3 / 1;
    background: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #b8860b 100%);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-bottom: 10px;
}

.chip-line {
    height: 1px;
    background: rgba(0,0,0,0.2);
    width: 100%;
}

.middle-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.card-number {
    font-size: clamp(1rem, 5.2vw, 1.5rem);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-break: break-all;
    line-height: 1.2;
}

.card-holder {
    font-size: clamp(0.7rem, 4vw, 1rem);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0.9;
}

.mastercard-logo {
    position: absolute;
    bottom: 12px;
    right: 20px;
    text-align: center;
}

.circles {
    display: flex;
    justify-content: center;
}

.circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.red { background: #eb001b; margin-right: -8px; }
.yellow { background: #f79e1b; opacity: 0.8; }

.mastercard-logo span {
    font-size: 7px;
    display: block;
    font-weight: bold;
}

.copy-button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}