/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
:root {
    --emerald: #18412e;
    --emerald-light: #2c5945;
    --emerald-dark: #0f281c;
    --emerald-deep: #0a1e12;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --cream: #fbf8f1;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --ease-spring: cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-dark-bg: rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.font-display {
    font-family: var(--font-display);
}

.layout-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* =========================================
   UTILITIES & COMPONENTS
   ========================================= */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 24px;
    position: relative;
}

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

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glassmorphism-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 48px;
    max-width: 200px;
}

.divider-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background-color: rgba(212, 175, 55, 0.6);
    transform: rotate(45deg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
    color: var(--gold);
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
}

.btn-primary:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--emerald-deep), var(--emerald-dark), var(--emerald-deep));
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.3);
    filter: blur(1px);
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.05);
    filter: blur(60px);
    z-index: 1;
}

.circle-top {
    top: 40px;
    left: 40px;
    width: 256px;
    height: 256px;
}

.circle-bottom {
    bottom: 40px;
    right: 40px;
    width: 320px;
    height: 320px;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 48px;
}

.hero-photo {
    position: relative;
    margin-bottom: 32px;
    height: 256px;
    width: 192px;
    overflow: hidden;
    border-radius: 100px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.hero-photo:hover img {
    transform: scale(1.05);
}

.floral-ornament {
    opacity: 0.6;
}

.top-ornament {
    margin-bottom: 24px;
    width: 192px;
}

.bottom-ornament {
    margin-top: 32px;
    width: 192px;
    transform: rotate(180deg);
}

.hero-subtitle {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(212, 175, 55, 0.7);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    color: var(--cream);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-ampersand {
    margin: 8px 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
}

@media (min-width: 768px) {
    .hero-ampersand {
        font-size: 1.875rem;
    }
}

.hero-date {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    color: rgba(212, 175, 55, 0.8);
}

@media (min-width: 768px) {
    .hero-date {
        font-size: 1.25rem;
    }
}

/* Countdown */
.countdown {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .countdown {
        gap: 24px;
    }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: 12px 16px;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .countdown-item {
        padding: 16px 24px;
    }
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

@media (min-width: 768px) {
    .countdown-value {
        font-size: 1.875rem;
    }
}

.countdown-label {
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(251, 248, 241, 0.6);
}

@media (min-width: 768px) {
    .countdown-label {
        font-size: 0.75rem;
    }
}

/* =========================================
   STORY SECTION
   ========================================= */
.story-text {
    max-width: 768px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 1.125rem;
    color: rgba(251, 248, 241, 0.8);
    line-height: 1.8;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 896px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.story-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 16px;
    transition: all 0.7s ease;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    text-align: center;
}

.story-card:hover {
    transform: translateY(-16px) scale(1.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
}

/* =========================================
   DETAILS SECTION
   ========================================= */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.details-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.7s ease;
    text-align: center;
}

.details-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.details-icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-bottom: 16px;
}

.details-label {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.details-value {
    color: rgba(251, 248, 241, 0.7);
    font-size: 0.875rem;
}

.maps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 48px auto 0;
}

@media (min-width: 768px) {
    .maps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.map-container {
    padding: 24px;
    border-radius: 16px;
    border-color: rgba(212, 175, 55, 0.2);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.map-container:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.map-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 4px;
    text-align: center;
}

.map-subtitle {
    color: rgba(251, 248, 241, 0.8);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 16px;
}

.map-container iframe {
    border-radius: 12px;
    width: 100%;
}

/* =========================================
   TIMELINE SECTION
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    z-index: 10;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background-color: var(--emerald-dark);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
    }
}

.timeline-content {
    margin-left: 48px;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.5s ease;
    width: calc(100% - 48px);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -5px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

@media (min-width: 768px) {
    .timeline-content {
        margin-left: 0;
        width: 50%;
    }

    .timeline-content.left {
        margin-right: auto;
        padding-right: 32px;
        text-align: right;
    }

    .timeline-content.right {
        margin-left: auto;
        padding-left: 32px;
        text-align: left;
    }
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.timeline-desc {
    color: rgba(251, 248, 241, 0.6);
    font-size: 0.875rem;
}

/* =========================================
   DRESSCODE SECTION
   ========================================= */
.dresscode-text {
    max-width: 768px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 1.125rem;
    color: rgba(251, 248, 241, 0.8);
    line-height: 1.8;
}

.colors-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .colors-wrap {
        gap: 48px;
    }
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.color-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .color-circle {
        width: 64px;
        height: 64px;
    }
}

.color-item:hover .color-circle {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.color-name {
    font-size: 0.875rem;
    color: rgba(251, 248, 241, 0.7);
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-subtitle {
    text-align: center;
    color: rgba(251, 248, 241, 0.6);
    margin-bottom: 48px;
    margin-top: -32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.7s ease;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px -10px rgba(212, 175, 55, 0.3);
}

.gallery-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-inner svg {
    width: 48px;
    height: 48px;
    color: rgba(251, 248, 241, 0.15);
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-inner svg {
    transform: scale(1.25);
    color: rgba(212, 175, 55, 0.4);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* =========================================
   RSVP SECTION
   ========================================= */
.rsvp-form {
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .rsvp-form {
        padding: 48px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(251, 248, 241, 0.8);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--cream);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
    color: rgba(251, 248, 241, 0.3);
}

.short-input {
    max-width: 100px;
}

.text-area {
    resize: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .radio-group {
        flex-direction: row;
    }
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.radio-label span {
    color: rgba(251, 248, 241, 0.8);
    font-size: 0.875rem;
}

input[type="radio"] {
    accent-color: var(--gold);
}

.form-btn {
    width: 100%;
    margin-top: 16px;
}

.rsvp-success {
    text-align: center;
    padding: 48px 24px;
    border-radius: 16px;
    margin-bottom: 48px;
    animation: fade-up 0.5s ease-out forwards;
}

.success-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.success-subtitle {
    color: rgba(251, 248, 241, 0.8);
}

/* =========================================
   FOOTER SECTION
   ========================================= */
.footer {
    padding: 48px 24px;
    text-align: center;
    background-color: var(--emerald-deep);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-subtitle {
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* =========================================
   ANIMATIONS & REVEAL CLASSES
   ========================================= */
@keyframes float {

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

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

@keyframes float-slow {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.8;
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fade-up {
    animation: fade-up 1s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-fx {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Reveal States */
.reveal,
.reveal-scale {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-out;
    transition-delay: var(--delay, 0ms);
}

.reveal {
    transform: translateY(40px);
}

.reveal-scale {
    transform: scale(0.9);
}

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