/* ============================================================
   WEDDING9 - Whimsical / Playful Wedding Template
   Fonts: Fredoka One (display), Nunito (headings), DM Sans (body)
   Colors: Coral, Teal, Yellow, Dark Slate, Warm Cream
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #FFF9F0;
    --white-color: #FFFFFF;
    --primary-light: rgba(255, 107, 107, 0.1);
    --secondary-light: rgba(78, 205, 196, 0.1);
    --accent-light: rgba(255, 230, 109, 0.15);
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 62, 80, 0.15);
    --shadow-colored: 0 8px 30px rgba(255, 107, 107, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 50px;
    --radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --font-display: 'Fredoka One', cursive;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-warm: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-cool: linear-gradient(135deg, var(--secondary-color), #6C63FF);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Animations --- */
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-color {
    0%, 100% { color: var(--primary-color); }
    33% { color: var(--secondary-color); }
    66% { color: var(--accent-color); }
}

@keyframes blob-morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 56% 44% / 60% 34% 66% 40%; }
    50% { border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%; }
    75% { border-radius: 42% 58% 64% 36% / 47% 54% 46% 53%; }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countdown-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-slide-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Global Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

::selection {
    background: var(--primary-color);
    color: var(--white-color);
}

/* --- Decorative Background Blobs --- */
.deco-blob {
    position: fixed;
    z-index: -1;
    opacity: 0.06;
    pointer-events: none;
}

.deco-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    right: -150px;
    border-radius: var(--radius-blob);
    animation: blob-morph 20s ease-in-out infinite;
}

.deco-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 20%;
    left: -120px;
    border-radius: var(--radius-blob);
    animation: blob-morph 25s ease-in-out infinite reverse;
}

.deco-blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 40%;
    right: -80px;
    border-radius: var(--radius-blob);
    animation: blob-morph 18s ease-in-out infinite 3s;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.preloader-inner {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.preloader-blob {
    position: absolute;
    width: 50px;
    height: 50px;
    animation: blob-morph 3s ease-in-out infinite, float 2s ease-in-out infinite;
}

.preloader-blob.blob-1 {
    background: var(--primary-color);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.preloader-blob.blob-2 {
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    animation-delay: 0.3s;
}

.preloader-blob.blob-3 {
    background: var(--accent-color);
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
}

#preloader .loading-text {
    font-family: var(--font-display);
    color: var(--dark-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: pulse-color 2s ease-in-out infinite;
}

/* --- Emoji Icon Styling --- */
.emoji-icon {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-icon {
    margin-bottom: 15px;
}

.section-header .section-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header .divider span {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-header .divider i {
    color: var(--accent-color);
    font-size: 1rem;
    animation: spin-slow 8s linear infinite;
}

/* --- Navbar --- */
.navbar {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
}

.navbar.navbar-scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    border-bottom-width: 2px;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.02);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-toggler:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25);
}

.navbar-toggler i {
    color: inherit;
}

.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--primary-light);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--primary-light);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide.default-bg {
    background: var(--gradient-primary);
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 107, 0.6) 0%,
        rgba(78, 205, 196, 0.5) 50%,
        rgba(255, 230, 109, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

.hero-content .name-box {
    margin-bottom: 25px;
}

.hero-content .first-name,
.hero-content .second-name {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--white-color);
    text-shadow: 3px 3px 0 var(--secondary-color), 6px 6px 0 rgba(44, 62, 80, 0.15);
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero-content .ampersand {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0 rgba(44, 62, 80, 0.15);
    margin: 10px 0;
    display: inline-block;
    animation: wobble 3s ease-in-out infinite;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--white-color);
    text-shadow: 3px 3px 0 var(--secondary-color);
}

.hero-content .wedding-date {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: inline-block;
    padding: 10px 35px;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* --- Countdown --- */
.countdown-container {
    margin-bottom: 30px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-box {
    width: 100px;
    height: 100px;
    background: var(--white-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: countdown-bounce 2s ease-in-out infinite;
    transition: var(--transition);
}

.countdown-box:nth-child(1) {
    border: 3px solid var(--primary-color);
    animation-delay: 0s;
}

.countdown-box:nth-child(2) {
    border: 3px solid var(--secondary-color);
    animation-delay: 0.2s;
}

.countdown-box:nth-child(3) {
    border: 3px solid var(--accent-color);
    animation-delay: 0.4s;
}

.countdown-box:nth-child(4) {
    border: 3px solid var(--primary-color);
    animation-delay: 0.6s;
}

.countdown-box:hover {
    transform: scale(1.1) rotate(5deg);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--dark-color);
}

.countdown-box:nth-child(1) .countdown-value { color: var(--primary-color); }
.countdown-box:nth-child(2) .countdown-value { color: var(--secondary-color); }
.countdown-box:nth-child(3) .countdown-value { color: #E6B800; }
.countdown-box:nth-child(4) .countdown-value { color: var(--primary-color); }

.countdown-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-color);
    opacity: 0.7;
}

/* --- Scroll Down Indicator --- */
.scroll-down {
    margin-top: 30px;
}

.scroll-down a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: float 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.scroll-down a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
}

/* --- Story Section --- */
.story-section {
    background-color: var(--light-color);
}

.story-content {
    background: var(--white-color);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.9;
}

.story-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.story-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--accent-light);
    border-radius: var(--radius-blob);
    animation: blob-morph 15s ease-in-out infinite;
    z-index: 0;
}

/* --- Agenda Section --- */
.agenda-section {
    background-color: var(--secondary-light);
}

.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.timeline-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 4px;
    background: var(--accent-color);
    border-radius: 4px;
    z-index: 1;
    transition: height 0.3s ease;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white-color);
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item:nth-child(3n+1) .timeline-dot {
    background: var(--primary-color);
}

.timeline-item:nth-child(3n+2) .timeline-dot {
    background: var(--secondary-color);
}

.timeline-item:nth-child(3n+3) .timeline-dot {
    background: var(--accent-color);
    color: var(--dark-color);
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.15) rotate(10deg);
}

.timeline-content {
    width: calc(50% - 50px);
    background: var(--white-color);
    padding: 25px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(3n+1) .timeline-content {
    border-left: 4px solid var(--primary-color);
}

.timeline-item:nth-child(3n+2) .timeline-content {
    border-left: 4px solid var(--secondary-color);
}

.timeline-item:nth-child(3n+3) .timeline-content {
    border-left: 4px solid var(--accent-color);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* --- Venue Section --- */
.venue-section {
    background-color: var(--primary-light);
    padding: 100px 0;
}

.location-tabs-wrapper {
    margin-bottom: 30px;
}

.location-tabs-wrapper .nav-pills {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.location-tabs-wrapper .nav-pills .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
    background: var(--white-color);
    border-radius: var(--radius-pill);
    padding: 12px 25px;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.location-tabs-wrapper .nav-pills .nav-link:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.location-tabs-wrapper .nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-color: transparent;
    box-shadow: var(--shadow-colored);
}

.location-tabs-wrapper .nav-pills .nav-link i {
    margin-right: 8px;
}

.venue-card {
    background: var(--white-color);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary-color);
    height: 100%;
    transition: var(--transition);
}

.venue-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.venue-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.venue-card h3 i {
    margin-right: 10px;
}

.venue-address {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--secondary-light);
    border-radius: var(--radius-sm);
}

.venue-address i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.venue-address address {
    margin: 0;
    font-style: normal;
    line-height: 1.6;
}

.travel-info {
    display: flex;
    gap: 12px;
}

.travel-info > i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.travel-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.venue-map {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--secondary-color);
}

.wedding-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
    animation: float 2s ease-in-out infinite;
}

.no-map {
    height: 400px;
    border-radius: var(--radius-lg);
    background: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.no-map-content {
    text-align: center;
    color: var(--dark-color);
    opacity: 0.5;
}

.no-map-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--secondary-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.3);
    z-index: 2;
}

.gallery-item:nth-child(even):hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.5), rgba(78, 205, 196, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white-color);
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* --- RSVP Section --- */
.rsvp-section {
    background-color: var(--light-color);
    position: relative;
}

.rsvp-card {
    background: var(--white-color);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.rsvp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.rsvp-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-warm);
}

.rsvp-card .form-control {
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-color);
}

.rsvp-card .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.15);
    background: var(--white-color);
}

.rsvp-card .form-floating label {
    font-family: var(--font-heading);
    color: #888;
}

.attendance-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: block;
}

.attendance-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.attendance-option {
    flex: 1;
    min-width: 200px;
}

.attendance-btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-pill) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border: 3px solid #e0e0e0;
    color: var(--dark-color);
    background: var(--white-color);
    transition: var(--transition);
    cursor: pointer;
}

.attendance-btn:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-check:checked + .attendance-btn {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

#attending_no:checked + .attendance-btn {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.attendance-btn i {
    margin-right: 8px;
}

.btn-submit {
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 15px 50px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: var(--white-color);
    border: none;
    box-shadow: var(--shadow-colored);
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.35);
    color: var(--white-color);
}

.btn-submit:active {
    transform: translateY(0);
}

/* RSVP Alert styling */
.rsvp-section .alert {
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
}

.rsvp-section .alert-success {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(255, 230, 109, 0.15));
    color: var(--dark-color);
    border-left: 4px solid var(--secondary-color);
}

.rsvp-section .alert-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--dark-color);
    border-left: 4px solid var(--primary-color);
}

/* --- Additional Info Section --- */
.additional-info-section {
    background-color: var(--accent-light);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--white-color);
    padding: 35px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.info-card-coral {
    border-left: 4px solid var(--primary-color);
}

.info-card-coral::before {
    background: var(--primary-color);
}

.info-card-coral .info-icon {
    color: var(--primary-color);
    background: var(--primary-light);
}

.info-card-teal {
    border-left: 4px solid var(--secondary-color);
}

.info-card-teal::before {
    background: var(--secondary-color);
}

.info-card-teal .info-icon {
    color: var(--secondary-color);
    background: var(--secondary-light);
}

.info-card-yellow {
    border-left: 4px solid var(--accent-color);
}

.info-card-yellow::before {
    background: var(--accent-color);
}

.info-card-yellow .info-icon {
    color: #C49800;
    background: var(--accent-light);
}

.info-card .info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.info-card .info-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Contacts Section --- */
.contacts-section {
    background-color: var(--light-color);
}

.contact-card {
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card:hover .contact-image img {
    transform: scale(1.05);
}

.contact-card-coral {
    border-top-color: var(--primary-color);
}

.contact-card-teal {
    border-top-color: var(--secondary-color);
}

.contact-card-yellow {
    border-top-color: var(--accent-color);
}

.contact-image {
    width: 100px;
    height: 100px;
    margin: 25px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    position: relative;
}

.contact-card-coral .contact-image {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-card-teal .contact-image {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.contact-card-yellow .contact-image {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contact-info {
    padding: 20px 25px 30px;
    text-align: center;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-role {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.contact-detail i {
    color: var(--primary-color);
    width: 18px;
}

.contact-detail a {
    color: var(--dark-color);
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--primary-color);
}

.contact-more-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    font-size: 0.85rem;
    color: #666;
}

.contact-cta h3 {
    font-family: var(--font-display);
    color: var(--dark-color);
}

.btn-contact {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: var(--white-color);
    border: none;
    box-shadow: var(--shadow-colored);
    transition: var(--transition);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    color: var(--white-color);
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--secondary-light);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: none !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item-coral {
    border-left: 4px solid var(--primary-color) !important;
}

.faq-item-teal {
    border-left: 4px solid var(--secondary-color) !important;
}

.faq-item-yellow {
    border-left: 4px solid var(--accent-color) !important;
}

.accordion-button {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
    background: var(--white-color);
    padding: 20px 25px;
    border-radius: var(--radius-md) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    border-color: var(--secondary-color);
}

.accordion-button::after {
    background-image: none;
    content: '+';
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: auto;
    height: auto;
    transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
    content: '-';
    transform: none;
    color: var(--primary-color);
}

.accordion-body {
    padding: 0 25px 25px;
    font-size: 0.95rem;
    line-height: 1.8;
    background: var(--white-color);
}

/* --- Footer --- */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 0;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-header {
    text-align: center;
    margin-bottom: 40px;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-date {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.footer-gallery {
    margin-bottom: 40px;
}

.footer-gallery-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-gallery-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer-gallery-item:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
}

.footer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: var(--transition);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.legal-links a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-colored);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--white-color);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* --- Modals --- */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-family: var(--font-display);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Swiper overrides for Additional Info (if used as slider fallback) --- */
.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.4;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

/* --- Leaflet map marker override --- */
.wedding-map-marker i {
    line-height: 40px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Extra Large (1400px+) --- */
@media (min-width: 1400px) {
    .hero-content .first-name,
    .hero-content .second-name {
        font-size: 5.5rem;
    }

    .hero-content .ampersand {
        font-size: 3.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Large Desktop (1200px - 1399px) --- */
@media (max-width: 1399px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Desktop (992px - 1199px) --- */
@media (max-width: 1199px) {
    .section {
        padding: 80px 0;
    }

    .hero-content .first-name,
    .hero-content .second-name {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* --- Tablet (768px - 991px) --- */
@media (max-width: 991px) {
    .section {
        padding: 70px 0;
    }

    .navbar-collapse {
        background: var(--white-color);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 15px;
        box-shadow: var(--shadow-md);
        animation: fade-slide-down 0.3s ease;
    }

    .navbar-nav {
        gap: 5px;
    }

    .navbar-nav .nav-link {
        text-align: center;
    }

    .hero-content .first-name,
    .hero-content .second-name {
        font-size: 3rem;
    }

    .hero-content .ampersand {
        font-size: 2.2rem;
    }

    .countdown-box {
        width: 85px;
        height: 85px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .story-content {
        padding: 35px 30px;
    }

    /* Timeline single-column layout */
    .timeline::before {
        left: 25px;
    }

    .timeline-progress {
        left: 25px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row !important;
    }

    .timeline-dot {
        left: 25px !important;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .venue-map {
        height: 300px;
        margin-top: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-names {
        font-size: 2rem;
    }

    .rsvp-card {
        padding: 35px 25px;
    }
}

/* --- Small Tablet (576px - 767px) --- */
@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content .first-name,
    .hero-content .second-name {
        font-size: 2.5rem;
    }

    .hero-content .ampersand {
        font-size: 1.8rem;
    }

    .hero-content .wedding-date {
        font-size: 1.1rem;
        padding: 8px 25px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-box {
        width: 75px;
        height: 75px;
    }

    .countdown-value {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }

    .story-content {
        padding: 25px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        border-radius: var(--radius-sm);
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .attendance-options {
        flex-direction: column;
        gap: 10px;
    }

    .attendance-option {
        min-width: 100%;
    }

    .venue-card {
        padding: 25px 20px;
    }

    .footer-names {
        font-size: 1.8rem;
    }

    .footer-gallery-item {
        width: 60px;
        height: 60px;
    }

    .rsvp-card {
        padding: 30px 20px;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 12px 35px;
    }

    .location-tabs-wrapper .nav-pills .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .deco-blob-1 { width: 300px; height: 300px; }
    .deco-blob-2 { width: 250px; height: 250px; }
    .deco-blob-3 { width: 200px; height: 200px; }
}

/* --- Mobile (up to 575px) --- */
@media (max-width: 575px) {
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header .divider span {
        width: 40px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-content .first-name,
    .hero-content .second-name {
        font-size: 2rem;
        text-shadow: 2px 2px 0 var(--secondary-color), 4px 4px 0 rgba(44, 62, 80, 0.1);
    }

    .hero-content .ampersand {
        font-size: 1.5rem;
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .wedding-date {
        font-size: 1rem;
        padding: 7px 20px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-box {
        width: 68px;
        height: 68px;
        border-width: 2px;
    }

    .countdown-value {
        font-size: 1.2rem;
    }

    .countdown-label {
        font-size: 0.5rem;
    }

    .scroll-down a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 18px 20px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-time {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    .rsvp-card {
        padding: 25px 15px;
    }

    .rsvp-card .form-control {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 20px;
    }

    .venue-map {
        height: 250px;
    }

    .no-map {
        height: 250px;
    }

    .contact-card {
        margin: 0 auto;
        max-width: 320px;
    }

    .footer-names {
        font-size: 1.5rem;
    }

    .footer-date {
        font-size: 0.95rem;
    }

    .footer-gallery-item {
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .legal-links {
        flex-direction: column;
        gap: 10px;
    }

    .deco-blob-1 { width: 200px; height: 200px; }
    .deco-blob-2 { width: 180px; height: 180px; }
    .deco-blob-3 { display: none; }
}

/* --- Very Small Mobile (up to 370px) --- */
@media (max-width: 370px) {
    .hero-content .first-name,
    .hero-content .second-name {
        font-size: 1.7rem;
    }

    .hero-content .ampersand {
        font-size: 1.3rem;
    }

    .countdown-box {
        width: 60px;
        height: 60px;
    }

    .countdown-value {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.45rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-slide {
        transition: none;
    }
}

/* --- Print Styles --- */
@media print {
    .navbar,
    .back-to-top,
    .scroll-down,
    .deco-blob,
    #preloader {
        display: none !important;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    .hero-content .first-name,
    .hero-content .second-name {
        color: var(--dark-color);
        text-shadow: none;
    }
}
