@font-face {
    font-family: "classic-script-mn";
    src: url(https://use.typekit.net/af/a8c1bc/0000000…/31/l?primer=7cdcb44…&fvd=n4&v=3) format("woff2"), url(https://use.typekit.net/af/a8c1bc/0000000…/31/d?primer=7cdcb44…&fvd=n4&v=3) format("woff"), url(https://use.typekit.net/af/a8c1bc/0000000…/31/a?primer=7cdcb44…&fvd=n4&v=3) format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
}


@font-face {
    font-family: "span";
    src: url(https://use.typekit.net/af/c5aa0d/0000000…/31/l?primer=7cdcb44…&fvd=n2&v=3) format("woff2"), url(https://use.typekit.net/af/c5aa0d/0000000…/31/d?primer=7cdcb44…&fvd=n2&v=3) format("woff"), url(https://use.typekit.net/af/c5aa0d/0000000…/31/a?primer=7cdcb44…&fvd=n2&v=3) format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 200;
    font-stretch: normal;
}

:root {
    /* Day Mode (Default) */
    --bg-color: #faf9f5;
    --text-color: #2b3a28;
    --accent-color: #bec6bb;
    --card-bg: #ffffff;
    --border-color: rgba(138, 154, 134, 0.3);
    --btn-bg: #2b3a28;
    --btn-text: #faf9f5;
    --btn-hover: #4a5c47;
    --img-filter: brightness(1);

    --font-heading: 'ClassicScriptMN', cursive;
    --font-body: 'span', sans-serif;
    --dark-p: #c9d6c4;

    --transition-speed: 0.8s;
}

.dress-image {
    margin-top: -200px;
}

.dark-bg {
    background-color: var(--dark-p);
}


[data-theme="night"] {
    /* Night Mode */
    --bg-color: #171b26;
    --text-color: #f8f5eb;
    --accent-color: #d4af37;
    --card-bg: #222838;
    --border-color: rgba(212, 175, 55, 0.3);
    --btn-bg: #d4af37;
    --btn-text: #171b26;
    --btn-hover: #e5cd6f;
    --img-filter: brightness(0.85) contrast(1.1);
    /* Slight mood shift for the images */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    transition: filter var(--transition-speed) ease;
    filter: var(--img-filter);
}

/* Base button */
.btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
}

/* Fixed Controls */
.fixed-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

/* c9d6c4 */

.control-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.control-btn .icon {
    display: none;
}

[data-theme="night"] .day-icon {
    display: block;
}

:not([data-theme="night"]) .night-icon {
    display: block;
}

.control-btn.playing .muted-icon {
    display: none;
}

.control-btn.playing .playing-icon {
    display: block;
}

.control-btn:not(.playing) .playing-icon {
    display: none;
}

.control-btn:not(.playing) .muted-icon {
    display: block;
}


/* Entrance Screen */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 1s ease, visibility 1s;
}

.entrance-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.envelope-container {
    text-align: center;
    /* animation: float 4s ease-in-out infinite; */
}

.envelope-img {
    max-width: 300px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.full-viewport-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    cursor: pointer;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

/* Main Content */
.hidden {
    display: none;
    opacity: 0;
}

main {
    /* max-width: 800px; */
    margin: 0 auto;
    opacity: 1;
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 5rem 2rem;
    position: relative;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 8rem;
    width: 100vw;
    height: 100vh;
    position: relative;
    max-height: 700px;
    overflow: hidden;
    color: white;
}

.hero-image {

    overflow: hidden;
    /* Soft vignette */
    /* box-shadow: inset 0 0 50px var(--bg-color); */
    position: absolute;
    width: 100vw;
    height: 105vh;
    max-height: 800px;
    margin: -5vh -2rem;
    top: 0;
    background-color: black;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 80%;
}

.hero-text {
    position: relative;
    z-index: 1;
}


.pre-title {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
}

.hero-text .pre-title {
    color: white
}

.hero-text .couple-names {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .date,
.hero-text .venue-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.date {

    bottom: 0;
    position: absolute;
    z-index: 1;
    width: 100%;
    margin: 0 -2rem;
    padding: 20px;
}


.details-section-alternate {
    background-color: var(--accent-color);
}

.details-section-alternate h2,
.details-section-alternate .label,
.details-section-alternate .pre-title {
    color: white;
}



/* Countdown Section */

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.shadow-soft {
    --tw-shadow: 0 2px 8px rgba(180, 130, 140, .08);
    --tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.timer-box .number {
    font-family: var(--font-head);
    font-size: 3rem;
    padding: 20px 40px;
    border-radius: 10px;
    line-height: 1;
    background-color: white;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.timer-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Details Section */
.details-grid {
    display: grid;
    /* grid-template-columns: 1fr; */
    gap: 2rem;
}

@media(min-width: 600px) {
    .details-grid {
        /* grid-template-columns: 1fr 1fr; */
    }
}

.detail-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    max-width: 800px;
    margin: 0 auto;
}

.detail-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--accent-color);
}

.link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Timeline Elegant Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 20px 0;
    font-size: 1.25rem;
}

.timeline-section {
    text-align: center;

}

.timeline-section img {
    margin: 0 auto;
    max-width: 150px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Tick marks connected to central line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background-color: var(--accent-color);
    top: 25px;
    z-index: 1;
}

.timeline-item.left::after {
    right: -15px;
}

.timeline-item.right::after {
    left: -15px;
}

.timeline-item .time {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 0.1rem;
}

.timeline-item h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--text-color);
    letter-spacing: 2px;
}

/* Animations */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px) !important;
    transition: all 0.8s ease;
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0) !important;
}



/* Dress Code */
.dress-card {
    margin-top: 150px;
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 12px;
}

.dress-icon-placeholder {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Gift Section */
#gifts {
    background-color: var(--bg-color);
    text-align: center;
}

.gift-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 4rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="night"] .gift-card {
    background-color: rgba(34, 40, 56, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.gift-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.gift-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gift-option {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--card-bg);
}

.gift-option summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s;
}

.gift-option summary::-webkit-details-marker {
    display: none;
}

[data-theme="night"] .gift-option summary {
    background-color: rgba(34, 40, 56, 0.5);
}

.gift-option summary:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

[data-theme="night"] .gift-option summary:hover {
    background-color: rgba(34, 40, 56, 0.8);
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.option-title {
    font-weight: 600;
    color: var(--text-color);
}

.preferred-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: #e0e0e0;
    color: #6b6b6b;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

[data-theme="night"] .preferred-badge {
    background-color: #3b4255;
    color: #d4af37;
}

.chevron {
    width: 1.2rem;
    height: 1.2rem;
    color: #a0a0a0;
    transition: transform 0.3s;
}

.gift-option[open] .chevron {
    transform: rotate(180deg);
}

.option-details {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    text-align: left;
    border-top: 1px solid var(--border-color);
}

[data-theme="night"] .option-details {
    background-color: rgba(34, 40, 56, 0.2);
}

.bank-row {
    margin-bottom: 1.2rem;
}

.bank-row:last-child {
    margin-bottom: 0;
}

.bank-row-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.bank-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.bank-value {
    color: var(--text-color);
    font-weight: 600;
}

.iban {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background-color: var(--border-color);
}

@media(max-width: 600px) {
    .gift-card {
        padding: 2rem 1.5rem;
    }
}

/* RSVP */
.rsvp-section {
    text-align: center;
    padding-bottom: 10rem;
}

.rsvp-section p+p {
    margin-bottom: 5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    border-top: 1px solid var(--border-color);
}

/* Responsive */

@media screen and (max-width: 1200px) {
    .hero {
        max-height: 500px;
    }


}



@media screen and (max-width: 600px) {
    .timeline::after {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 5px;
        /* crosses the left: 20px center line */
        right: auto;
    }

    .hero {
        max-height: unset;
    }

    .hero-image {
        max-height: unset;
        margin: 0 -2rem;
    }

    /* .hero-text {
        top: 50%;
    } */

    .dress-card {
        margin-top: 50px;
    }



}