:root {
    --primary-color: #FF2E63;
    /* Bold Vibrant Pink-Red */
    --secondary-color: #08D9D6;
    /* Vivid Cyan/Turquoise */
    --accent-color: #E2F3F5;
    /* Light Mint/Cyan */
    --gold: #FFB347;
    /* Brilliant Gold */
    --bg-color: #ffffff;
    /* Pure white */
    --bg-light: #F7F9FA;
    /* Fresh light gray */
    --text-dark: #252A34;
    /* Deep elegant slate */
    --text-light: #ffffff;
    --text-muted: #718093;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title.left-align {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--gold);
    margin: 15px auto 0;
}

.section-title.left-align::after {
    margin: 15px 0 0;
}

/* Glassmorphism Utilities */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-nav.scrolled {
    box-shadow: var(--glass-shadow);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 3rem;
}

.dresscode-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: var(--glass-shadow);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-top: 5px solid var(--gold);
}

.dresscode-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

.navbar.scrolled .hamburger .bar {
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-color: var(--bg-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    padding-top: 100px;
    /* Space for navbar */
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image-wrapper {
    flex: 1;
    text-align: center;
}

.hero-img-element {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.sub-headline {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.headline {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ampersand {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--gold);
    font-size: 0.9em;
    font-style: Arial;
}

.divider {
    font-size: 1.8rem;
    color: var(--gold);
    margin: 1.5rem 0;
}

.date {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.location-hero {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-countdown {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: inline-flex;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item .number {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.countdown-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down a {
    color: var(--primary-color);
    font-size: 2rem;
    text-decoration: none;
    display: inline-block;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--gold);
}

/* Layout Utilities */
.section {
    padding: 8rem 0;
    position: relative;
}

.pt-0 {
    padding-top: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.mt-large {
    margin-top: 6rem;
}

/* About Section & Profiles */
.about-section {
    background-color: var(--bg-light);
    overflow: hidden;
}

.couple-profiles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.heart-divider {
    font-size: 2.5rem;
    color: var(--gold);
    animation: bounce 3s infinite;
}

.profile-card {
    text-align: center;
    padding: 2rem 1.5rem;
    flex: 1;
    max-width: 350px;
}

.profile-img {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Fix for image blur on hover scaling */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.profile-card:hover .profile-img {
    transform: scale(1.05) translateY(-5px) translateZ(0);
    border-color: var(--primary-color);
}

.profile-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-text {
    flex: 1;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-image {
    flex: 1;
    position: relative;
}

.plain-img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Info Section */
.info-section {
    background-color: var(--accent-color);
    background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    position: relative;
}

.info-section::before,
.info-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100px;
    left: 0;
}

.info-section::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-light), transparent);
}

.info-section::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.card {
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.card.highlight-card {
    border-top: 4px solid var(--primary-color);
    transform: scale(1.05);
}

.card.highlight-card:hover {
    transform: scale(1.05) translateY(-10px);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--bg-light);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    color: var(--gold);
}

.card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.card-details {
    margin-bottom: 1.5rem;
}

.card .time {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.card .place {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.map-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 20px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.map-link:hover {
    background: var(--gold);
    color: white;
}

.card .note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* Dress Code Section */
.dresscode-section {
    background-color: var(--bg-light);
    position: relative;
}

.dresscode-img-container {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.dresscode-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.dresscode-img:hover {
    transform: scale(1.02) translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(255, 46, 99, 0.25));
}

.dresscode-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-top: 5px solid var(--gold);
}

.dresscode-desc {
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: var(--text-muted);
}


.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.swatch {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 3px solid white;
}

.color-item:hover .swatch {
    transform: scale(1.15) rotate(15deg);
    border-color: var(--glass-bg);
}

.color-bright-1 {
    background-color: #ff6b6b;
}

/* Bright Coral/Red */
.color-bright-2 {
    background-color: #4ecdc4;
}

/* Vibrant Teal */
.color-bright-3 {
    background-color: #ffd166;
}

/* Sunny Yellow */
.color-bright-4 {
    background-color: #c95fd6;
}

/* Bold Fuchsia/Purple */

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 10px;
}

.footer-message {
    font-size: 1.2rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
}

.footer-divider {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Button */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2.8rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(226, 180, 189, 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
    transform: translateY(-3px);
}

/* RSVP Section */
.rsvp-section {
    position: relative;
    background-image: url('spolu.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    padding: 10rem 0;
}

.rsvp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(252, 250, 248, 0.8), rgba(252, 250, 248, 0.6));
}

.relative-container {
    position: relative;
    z-index: 1;
}

.rsvp-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
}

.rsvp-desc {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Scroll Animations */
.animate-on-scroll {
    /* Fallback for browsers that block JS (like some Brave settings) */
    opacity: 1;
    visibility: visible;
}

html.js .animate-on-scroll {
    opacity: 0;
    visibility: hidden;
}

html.js .animate-on-scroll.visible {
    visibility: visible;
}

.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-down {
    animation: fadeDown 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-left {
    animation: slideLeft 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-right {
    animation: slideRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* ------------- Responsive Design ------------- */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .headline {
        font-size: 4.5rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Text down, image up or vice versa */
        gap: 2rem;
        text-align: center;
        margin-top: 4rem;
    }

    .hero-text {
        text-align: center;
    }

    .about-content {
        gap: 3rem;
    }

    .card.highlight-card {
        transform: scale(1);
    }

    .card.highlight-card:hover {
        transform: translateY(-10px);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .couple-profiles {
        flex-direction: column;
        gap: 1.5rem;
    }

    .heart-divider {
        margin: 1rem 0;
    }

    .headline {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        justify-content: center;
        transition: 0.3s;
        gap: 3rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .section-title.left-align {
        text-align: center;
    }

    .section-title.left-align::after {
        margin: 15px auto 0;
    }

    .image-frame {
        max-width: 500px;
        margin: 0 auto;
    }

    .glass-panel,
    .glass-card,
    .rsvp-content {
        padding: 2rem 1.5rem;
    }

    .rsvp-section {
        padding: 6rem 0;
    }

    .dresscode-img-container {
        margin: 1rem -1.5rem 0;
        width: calc(100% + 3rem);
        max-width: none;
        padding: 0;
    }

    .dresscode-img {
        width: 100%;
        border-radius: 0;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .headline {
        font-size: 3.5rem;
    }

    .hero-countdown {
        gap: 1rem;
        padding: 1rem;
    }

    .countdown-item .number {
        font-size: 1.5rem;
    }

    .countdown-item .label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .sub-headline {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .date {
        font-size: 1.8rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cards-grid {
        gap: 1.5rem;
    }

    .card h3 {
        font-size: 1.8rem;
    }

    .swatch {
        width: 70px;
        height: 70px;
    }

    .color-item span {
        font-size: 1rem;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}