* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #687c70;
    --secondary-color: #d4af6a;
    --text-dark: #2c3537;
    --text-light: #ffffff;
    --bg-light: #f9f7f4;
    --accent: #b8a390;
    --music-overlay-target-x: calc(-50vw + 41px);
    --music-overlay-target-y: calc(50vh - 41px);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

html {
    color-scheme: light;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(104, 124, 112, 0.08) 0 18%, transparent 19%),
        radial-gradient(circle at 85% 12%, rgba(104, 124, 112, 0.06) 0 16%, transparent 17%),
        radial-gradient(circle at 12% 80%, rgba(104, 124, 112, 0.06) 0 16%, transparent 17%),
        radial-gradient(circle at 90% 75%, rgba(104, 124, 112, 0.08) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 45%, rgba(104, 124, 112, 0.04) 0 20%, transparent 21%);
    background-size: 180px 180px, 220px 220px, 200px 200px, 240px 240px, 300px 300px;
    background-position: 0 0, 60px 40px, 40px 120px, 140px 160px, 100px 80px;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: linear-gradient(rgba(7, 26, 20, 0.7), rgba(7, 26, 20, 0.55));
    background-color: #071a14;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 900px;
    height: 75%;
    border: 2px solid rgba(212, 175, 106, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    max-width: 860px;
    height: 72%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.5s ease-out;
}

.hero-ornament {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af6a, transparent);
    margin: 0 auto 25px;
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    margin-bottom: 25px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.hero-date {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    font-weight: 300;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounceDown 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(-45deg);
}

.scroll-hint {
    margin-bottom: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeHint 2.4s ease-in-out infinite;
}

.scroll-hint-mobile {
    display: none;
}

@media (max-width: 768px) {
    .scroll-hint-desktop {
        display: none;
    }

    .scroll-hint-mobile {
        display: inline;
    }
}

@keyframes fadeHint {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}


/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

nav.visible {
    transform: translateY(0);
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 60px;
    font-style: italic;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 60px 0;
}

.countdown-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-top: 10px;
}

/* Story Section */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
}

.story-content p {
    margin-bottom: 25px;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    text-align: left;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 0 0 10px var(--bg-light);
}

.timeline-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.timeline-location {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.timeline-description {
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-card-title {
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-card-text {
    line-height: 1.6;
    color: var(--text-dark);
}

/* RSVP Form */
.rsvp-form {
    max-width: 600px;
    margin: 60px auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rsvp-plus-one {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.rsvp-plus-one-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 22px;
    text-align: center;
}

.rsvp-plus-one-btn,
.rsvp-plus-one-btn:focus {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    font-size: 22px;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rsvp-plus-one-btn:hover {
    color: #ffffff;
    background: var(--text-dark);
}

.rsvp-plus-one-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rsvp-guest-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.rsvp-guest-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.rsvp-guest-item input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
}

.rsvp-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 20, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
    padding: 20px;
}

.rsvp-success-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.rsvp-success-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 28px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.rsvp-success-modal.is-visible .rsvp-success-card {
    transform: translateY(0);
}

.rsvp-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(104, 124, 112, 0.15);
    color: #2c3537;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.rsvp-success-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 8px;
    color: #2c3537;
}

.rsvp-success-card p {
    font-size: 1rem;
    color: #5a6662;
    line-height: 1.6;
}

.rsvp-success-close {
    margin-top: 18px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid #2c3537;
    background: transparent;
    color: #2c3537;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsvp-success-close:hover {
    background: #2c3537;
    color: #ffffff;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rsvp-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.h-captcha {
    margin-top: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.radio-option input {
    display: none;
}

.radio-option input:checked + label {
    color: white;
}

.radio-option input:checked ~ * {
    background: var(--primary-color);
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 60px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding-top: 100%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#potek.reveal,
#potek .timeline-item.reveal {
    opacity: 1;
    transform: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(100%, 1100px);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.lightbox-btn:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.6);
    border-color: #fff;
}

.lightbox-btn.prev {
    left: 24px;
}

.lightbox-btn.next {
    right: 24px;
}

.lightbox-btn.close {
    top: 24px;
    right: 24px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 60px 20px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.wat__music_player {
    position: absolute;
    z-index: 1200;
    font-family: 'Lato', sans-serif;
}

.wat__music_player_bottom_left {
    left: 20px;
}

.wat__music_player_fixed {
    position: fixed;
}

.wat__music_player_fixed.wat__music_player_bottom_left {
    bottom: 20px;
}

.wat__music_player_content {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 10000;
}

.wat__music_player_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #2c3537;
    border-radius: 50%;
    background: #ffffff;
    color: #2c3537;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.wat__music_player_btn:hover {
    background: #2c3537;
    color: #ffffff;
}

.wat__music_player_play_btn {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #2c3537;
    box-shadow: 0 0 0 4px #ffffff, 0 2px 10px rgba(0, 0, 0, 0.1), rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}


.wat__music_player_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.wat__music_player_overlay_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2c3537;
    color: #2c3537;
    cursor: pointer;
    box-shadow: 0 0 0 6px #ffffff, 0 4px 20px rgba(0, 0, 0, 0.15), rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.wat__music_player_overlay_icon svg {
    width: 60px;
    height: 60px;
}

/* Music overlay animation */
.wat__music_player_overlay_animating {
    pointer-events: none;
    background: rgba(255, 255, 255, 0);
}

.wat__music_player_overlay_animating .wat__music_player_overlay_icon {
    animation: musicOverlayMoveToCorner 0.6s ease-out forwards;
}

.wat__music_player_overlay_animating .wat__music_player_overlay_icon svg {
    animation: musicOverlayScaleDown 0.6s ease-out forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes musicOverlayMoveToCorner {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(var(--music-overlay-target-x), var(--music-overlay-target-y));
    }
}

@keyframes musicOverlayScaleDown {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.6);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.4rem;
        white-space: nowrap;
    }

    .hero-date {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 16px 14px;
    }

    .hero::before {
        width: 92%;
        height: 84%;
    }

    .hero::after {
        width: 89%;
        height: 81%;
    }

    .section-title {
        font-size: 2.5rem;
    }

    nav .container {
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 10px;
        -webkit-overflow-scrolling: touch;
    }

    nav .container::-webkit-scrollbar {
        display: none;
    }

    nav a {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-icon {
        position: absolute;
        left: 0;
    }

    .countdown {
        gap: 20px;
    }

    .countdown-item {
        min-width: 120px;
        padding: 20px;
    }

    .countdown-number {
        font-size: 3rem;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .rsvp-guest-item {
        grid-template-columns: 1fr;
    }

    .wat__music_player_fixed.wat__music_player_bottom_left {
        left: 12px;
        bottom: 12px;
    }

    .wat__music_player_play_btn {
        width: 38px;
        height: 38px;
    }

    .wat__music_player_overlay_icon {
        width: 84px;
        height: 84px;
    }

    .wat__music_player_overlay_icon svg {
        width: 48px;
        height: 48px;
    }

    :root {
        --music-overlay-target-x: calc(-50vw + 31px);
        --music-overlay-target-y: calc(50vh - 31px);
    }
}
