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

:root {
    --primary-color: #aa8e69;
    /* Elegant gold/sand */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #fbf9f6;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Serif Armenian', 'Montserrat', serif;
}

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

/* Typography styles */
h1,
h2,
h3,
h4,
.title,
.subtitle,
.section-title {
    font-family: var(--font-heading);
    font-weight: 400;
}

.text-elegant {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.heart {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
    transform: rotate(45deg);
    animation: pulse 1s infinite;
}

.heart::before,
.heart::after {
    content: '';
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -15px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -15px;
}

@keyframes pulse {
    0% {
        transform: rotate(45deg) scale(0.8);
    }

    50% {
        transform: rotate(45deg) scale(1.1);
    }

    100% {
        transform: rotate(45deg) scale(0.8);
    }
}

.loading-text {
    margin-top: 30px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Helper Classes */
.section {
    padding: 100px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1100px;
}

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

.text-light {
    color: var(--text-light);
}

.bg-light {
    background-color: #fff;
}

.pattern-bg {
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23aa8e69' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero Section */
/* Hero Split Section */
.hero-split {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-image-side {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 80vh;
    min-height: 500px;
    border-radius: 20px 20px 200px 200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 20px 20px 200px 200px;
    /* Arch shape */
    position: relative;
    z-index: 2;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

/* /* Play Overlay Styles */
.play-overlay {
    position: absolute;
    top: 75%; /* Lowered so it doesn't block faces */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* allow clicking on the button area itself */
}

.play-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.play-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    cursor: pointer;
}

.play-overlay:hover .play-btn {
    transform: scale(1.15) translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.play-icon-large {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-left: 4px; /* Visual center adjustment for play triangle */
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.hero-image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px 20px 200px 200px;
    z-index: 1;
}

.hero-text-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: #fff;
    position: relative;
}

/* Add a beautiful floral/elegant pattern to the text side background */
.hero-text-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23aa8e69' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-content .title {
    color: var(--text-dark);
    font-size: 4rem;
    line-height: 1.1;
    margin: 30px 0;
    text-shadow: none;
}

.hero-content .amp {
    font-size: 3rem;
}

.hero-content .date.decorative {
    color: var(--text-dark);
    border-color: var(--primary-color);
}

.split-timer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.split-timer .time-box span {
    color: var(--primary-color);
    text-shadow: none;
    font-size: 2.5rem;
}

.split-timer .time-box p {
    color: #555;
    font-weight: 500;
}

.dark-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.hero .content {
    z-index: 1;
    padding: 0 20px;
}

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

.title {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.amp {
    color: var(--primary-color);
    font-style: italic;
    font-family: var(--font-heading);
}

.date.decorative {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding: 10px 20px;
}

/* Scroll Down */
.scroll-down-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    text-decoration: none;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #fff;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

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

/* Invitation */
.rings-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.floral-divider {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 30px;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.invite-text {
    max-width: 700px;
    margin: 0 auto;
}

/* Split Section */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.split-image,
.split-text {
    flex: 1;
    min-width: 300px;
}

.image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.image-wrapper:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.shadow-lg {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Countdown */
.countdown-section {
    position: relative;
}

.parallax-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timer-hero {
    margin-top: 30px;
    padding: 20px 40px;
}

.time-box {
    text-align: center;
    color: #fff;
    min-width: 100px;
}

.time-box span {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.time-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Details Section */
.details-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.detail-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--primary-color);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.detail-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.detail-card .time {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.thank-you {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Footer */
footer {
    padding: 30px;
    background: #222;
    color: #888;
    font-size: 0.9rem;
}

/* Animations & Scroll reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        padding-top: 50px;
    }

    .hero-image-side {
        padding: 20px;
        min-height: auto;
    }

    .hero-image-wrapper {
        min-height: 350px;
        height: 50vh;
        max-width: 100%;
    }

    .hero-text-side {
        padding: 30px 15px;
    }

    .hero-content .title {
        font-size: 3rem;
        margin: 15px 0;
    }

    .hero-content .amp {
        font-size: 2rem;
    }

    .split-timer {
        gap: 10px;
        flex-wrap: wrap;
    }

    .split-timer .time-box span {
        font-size: 2rem;
    }

    .title {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .glass {
        padding: 20px;
        gap: 15px;
    }

    .time-box {
        min-width: 70px;
    }

    .time-box span {
        font-size: 2.5rem;
    }

    .time-box p {
        font-size: 0.8rem;
    }
}

/* Timeline / Schedule */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-light);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-icon {
    font-size: 1.5rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0;
}

.timeline-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background-color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(170, 142, 105, 0.3);
}

.location-link:hover {
    background-color: #927552;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(170, 142, 105, 0.4);
}

.nav-icon {
    width: 16px;
    height: 16px;
}

.closing-image-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
}

.closing-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.closing-image-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.closing-image-wrapper:hover .closing-img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.closing-image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: 1;
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

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

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot {
        left: 21px !important;
    }
}
