@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-light: #fdfdfc;
    --bg-green: #596b53;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-accent: #e2e6df;
    --font-script: 'Alex Brush', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-serif);
    overflow-x: hidden;
    line-height: 1.6;
}

body.locked {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Intro Cover / Sliding Doors */
.intro-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--bg-green);
    z-index: 1;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.door-left {
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.door-right {
    right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-cover.open .door-left {
    transform: translateX(-100%);
}

.intro-cover.open .door-right {
    transform: translateX(100%);
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    transition: opacity 0.5s ease;
}

.intro-cover.open .intro-content {
    opacity: 0;
    pointer-events: none;
}

.intro-pre {
    font-family: var(--font-sans);
    letter-spacing: 5px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-accent);
}

.intro-names {
    font-family: var(--font-script);
    font-size: 6.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 0.9;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.intro-names .ampersand {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

.open-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 40px;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.open-btn:hover {
    background-color: var(--text-light);
    color: var(--bg-green);
}

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

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

/* Themes */
.section-green {
    background-color: var(--bg-green);
    color: var(--text-light);
}

.section-green .dim-text {
    color: rgba(255, 255, 255, 0.8);
}

.section-green .accent-text {
    color: var(--text-accent);
}

.section-green .highlight-text,
.section-green .name {
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-light .dim-text {
    color: #666666;
}

.section-light .accent-text {
    color: #555555;
}

.section-light .highlight-text,
.section-light .name {
    color: var(--bg-green);
}

.serif-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.floral-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    background-image: url('assets/floral_corner.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.85;
    mix-blend-mode: multiply;
}

.floral-bg.top-left {
    top: -50px;
    left: -50px;
}

.floral-bg.bottom-right {
    bottom: -50px;
    right: -50px;
    transform: rotate(180deg);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pre-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: #777;
}

.main-title {
    font-family: var(--font-script);
    font-size: 6.5rem;
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--bg-green);
}

.main-title .ampersand {
    font-size: 4rem;
    color: #555;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 5px;
    color: #333;
}

.scroll-down-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    z-index: 20;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.scroll-down p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #555;
}

.scroll-down i {
    font-size: 1.2rem;
    color: var(--bg-green);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Invitation Section */
.invitation {
    padding: 120px 0;
    position: relative;
}

.bismillah {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.parents-block {
    margin-bottom: 40px;
}

.address {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    opacity: 0.85;
}

.invite-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.8;
    opacity: 0.95;
}

.couple-names {
    margin-bottom: 60px;
}

.couple-names .name {
    font-family: var(--font-script);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
}

.weds-wrapper {
    margin: 15px 0;
}

.weds {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.8;
}

.groom-parents .s-o {
    font-weight: 700;
    margin-bottom: 5px;
}

/* Event Details Section */
.event {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 50px;
}

.event-card {
    background-color: var(--bg-green);
    color: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 80px 25px 80px 25px;
    /* Matching the beautiful leaf shape */
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.date-time-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.month-row {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.grid-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-1 {
    text-align: right;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.day-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.time {
    font-size: 1.3rem;
    margin-top: 5px;
}

.col-2 {
    text-align: center;
    padding: 0 20px;
}

.day-num {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
}

.year {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.col-3 {
    text-align: left;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.venue-line {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

.venue-line .at {
    font-weight: 700;
    margin-right: 5px;
}

.indent-1 {
    padding-left: 5px;
}

.indent-2 {
    padding-left: 10px;
}

.hijri-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-top: 30px;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0.8;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-green);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.powered-by {
    font-family: var(--font-script);
    font-size: 2rem;
    color: #777;
}

.powered-by a {
    color: var(--bg-green);
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 0.7;
}

/* Music Toggle Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--bg-green);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-btn .bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}

.music-btn .bar {
    width: 4px;
    background-color: #ffffff;
    border-radius: 2px;
    height: 100%;
    transition: height 0.3s ease;
}

/* Equalizer Animation when playing */
.music-btn.playing .bar {
    animation: eq-bounce 1s infinite ease-in-out;
}

.music-btn.playing .bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 60%;
}

.music-btn.playing .bar:nth-child(2) {
    animation-delay: 0.3s;
    height: 100%;
}

.music-btn.playing .bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 70%;
}

.music-btn.playing .bar:nth-child(4) {
    animation-delay: 0.4s;
    height: 80%;
}

/* Paused state */
.music-btn:not(.playing) .bar {
    height: 4px !important;
    animation: none;
}

@keyframes eq-bounce {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .floral-bg {
        width: 300px;
        height: 300px;
    }

    .music-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .main-title {
        font-size: 4rem;
    }

    .main-title .ampersand {
        font-size: 3rem;
    }

    .couple-names .name {
        font-size: 3.5rem;
    }

    .event-card {
        padding: 40px 20px;
        border-radius: 60px 15px 60px 15px;
    }

    .grid-body {
        flex-direction: column;
        gap: 15px;
    }

    .col-1 {
        text-align: center;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding-bottom: 15px;
    }

    .col-3 {
        text-align: center;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        padding-top: 15px;
    }

    .indent-1,
    .indent-2 {
        padding-left: 0;
    }
}

/* Quran Quote Styling */
.quran-section {
    padding: 100px 0 20px 0;
    position: relative;
}
.quran-quote {
    margin-bottom: 40px;
    padding: 0 20px;
}
.arabic-quote {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 700;
}
.quote-divider {
    width: 80px;
    height: 2px;
    background-color: #c5a059;
    margin: 0 auto 35px auto;
    opacity: 0.5;
}
.english-meaning {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.surah-ref {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
}
.colored {
    color: #c5a059; /* A richer gold suitable for light backgrounds */
}