/* 
 * style.css - Modern Luxury Wedding Invitation
 * Bektur & Begai
 */

:root {
    --white: #ffffff;
    --soft-pink: #fff0f3;
    --sage-green: #e1ece6;
    --gold: #c5a059;
    --gold-light: #e6cfa3;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Dust Particles Wrap */
.bg-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, var(--white) 0%, var(--soft-pink) 50%, var(--sage-green) 100%);
}

#particles-canvas, #petals-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#particles-canvas {
    opacity: 0.6;
}

#petals-canvas {
    z-index: 5; /* Petals should fall in front of content but behind UI elements if needed */
    pointer-events: none;
}

/* Site Wrapper */
.site-wrapper {
    opacity: 1;
    transition: opacity 1s ease;
}

.site-wrapper.hidden {
    display: none;
    opacity: 0;
}

.hero {
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 10s linear;
}

.hero.active .hero-bg-image {
    transform: scale(1);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.hero-names {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: var(--white);
    line-height: 1.1;
    margin: 1rem 0;
    text-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    background: linear-gradient(to right, #fff 0%, var(--gold-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 1.5rem auto 0;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Ornament Animation */
.ornament-svg {
    width: 300px;
    margin: 0 auto;
    color: var(--gold);
    opacity: 0.6;
}

.ornament-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.ornament-svg.animate-ornament .ornament-path {
    animation: drawOrnament 3s forwards ease-out;
}

@keyframes drawOrnament {
    to {
        stroke-dashoffset: 0;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.6s var(--ease-apple), box-shadow 0.6s var(--ease-apple);
    border: 1px solid var(--soft-pink);
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-apple);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-apple);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}
.section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: var(--gold-light);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-title);
}

/* Countdown */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.timer-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s var(--ease-apple);
}

.timer-item:hover {
    transform: translateY(-5px);
}

.timer-item span {
    display: block;
    font-size: 3rem;
    font-family: var(--font-title);
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
}

.timer-item label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: transform 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
    border-color: var(--gold-light);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.detail-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-value {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Red divider enhancement */
.section-divider {
    padding: 2rem 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--gold-light);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
    padding: 0 2rem;
}

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

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

.timeline-item .time {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--gold);
}

.timeline-item .event {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* RSVP Form */
.rsvp-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem 3rem;
    border-radius: 40px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-desc {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--gold);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* Map */
.radio-group-kyrgyz ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 10px 0;
}

.radio-group-kyrgyz li {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
}

.radio-group-kyrgyz input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--gold);
    cursor: pointer;
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    background: var(--soft-pink);
    text-align: center;
}

.couple-names-footer {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-top: 1rem;
    color: var(--gold);
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-toggle {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 1px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.music-bars span {
    width: 3px;
    background: var(--gold);
    height: 5px;
    border-radius: 1px;
}

.is-playing .music-bars span {
    animation: musicWave 1s infinite alternate;
}

.is-playing .music-bars span:nth-child(1) { animation-delay: 0.1s; }
.is-playing .music-bars span:nth-child(2) { animation-delay: 0.3s; }
.is-playing .music-bars span:nth-child(3) { animation-delay: 0.5s; }
.is-playing .music-bars span:nth-child(4) { animation-delay: 0.2s; }

@keyframes musicWave {
    from { height: 5px; }
    to { height: 20px; }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-apple);
}

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

/* Gold Shimmer Effect */
.gold-shimmer {
    background: linear-gradient(
        45deg,
        var(--gold) 25%,
        var(--gold-light) 50%,
        var(--gold) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
    to { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px;
    }
    .timer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-names {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Apple Style Fade In */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    width: 2px;
    height: 40px;
    background: var(--gold-light);
    display: block;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
