/**
 * Jaldhan Yatra - Modern Responsive Theme CSS
 * Enhanced with Dynamic Water Effects & Animations
 */

:root {
    --emerald-primary: #059669;
    --emerald-dark: #064e3b;
    --emerald-light: #d1fae5;
    --water-blue: #0284c7;
    --water-dark: #0369a1;
    --amber-accent: #f59e0b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Utilities */
.text-emerald { color: var(--emerald-primary) !important; }
.bg-emerald { background-color: var(--emerald-primary) !important; }
.bg-emerald-dark { background-color: var(--emerald-dark) !important; }
.bg-emerald-light { background-color: var(--emerald-light) !important; }
.bg-light-blue { background-color: #f0f9ff; }
.border-emerald { border: 3px solid var(--emerald-primary); }

.fs-7 { font-size: 0.85rem; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.w-85 { width: 85%; }

/* Buttons & Shimmer Effect */
.btn-emerald {
    background-color: var(--emerald-primary);
    border-color: var(--emerald-primary);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-emerald:hover {
    background-color: #047857;
    border-color: #047857;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.btn-emerald::after, .btn-warning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.btn-emerald:hover::after, .btn-warning:hover::after {
    left: 150%;
}

/* Top Bar */
.top-bar {
    background-color: var(--emerald-dark);
    font-size: 0.85rem;
}

/* Navbar */
.site-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

.navbar {
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar .navbar-nav {
    align-items: center;
}

.navbar .nav-link {
    font-weight: 500;
    color: #334155;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap !important;
    font-size: 0.92rem;
    line-height: 1.3;
    position: relative;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--emerald-primary) !important;
    background-color: #f0fdf4;
}

.navbar .btn {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Carousel Multi-Slider */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 600px;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.88) 0%, rgba(2, 132, 199, 0.78) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Animated Floating Water Droplets */
.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
    animation: floatUp 12s infinite linear;
}

@keyframes floatUp {
    0% { transform: translateY(100%) scale(0.6); opacity: 0; }
    30% { opacity: 0.8; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-120%) scale(1.1); opacity: 0; }
}

/* Custom Navigation Controls */
.carousel-btn-prev, .carousel-btn-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.25s ease;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    text-decoration: none;
}

.carousel-btn-prev:hover, .carousel-btn-next:hover {
    background: var(--emerald-primary);
    color: #ffffff;
    border-color: var(--emerald-primary);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.45);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

/* Custom Indicators */
.hero-indicators {
    bottom: 45px;
    z-index: 10;
}

.hero-indicators [data-bs-target] {
    width: 14px;
    height: 6px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-indicators .active {
    width: 38px;
    background-color: #f59e0b; /* Amber */
}

/* Animated Water Wave at Hero Base */
.water-waves-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -65px;
    z-index: 5;
}

.waves {
    position: relative;
    width: 100%;
    height: 65px;
    margin-bottom: -7px;
    min-height: 50px;
    max-height: 85px;
}

.parallax-waves > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax-waves > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax-waves > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax-waves > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax-waves > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* Live Pulsing Dot Indicator */
.pulse-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Glassmorphism & Card Hover Effects */
.hero-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.pillar-card, .event-card, .partner-card, .guest-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(5, 150, 105, 0.14) !important;
}

.pillar-card:hover .icon-circle {
    transform: scale(1.12) rotate(6deg);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.09) !important;
}

.guest-card {
    overflow: hidden;
}

.guest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12) !important;
}

.guest-card .guest-img {
    transition: transform 0.45s ease;
}

.guest-card:hover .guest-img {
    transform: scale(1.08);
}

.stat-box {
    padding: 12px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

/* Infinite Scrolling Partner Logo Marquee */
.marquee-container {
    overflow: hidden;
    user-select: none;
    position: relative;
    padding: 15px 0;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    animation: marquee-scroll 28s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-marquee-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    min-width: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-marquee-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.15);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-zoom {
    transform: scale(0.92);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Floating Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--emerald-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #047857;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.55);
}

/* Footer */
.footer-section {
    background-color: #042f2e;
    position: relative;
}

.footer-logo {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon:hover {
    background: var(--emerald-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #0369a1 100%);
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 5.5rem;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, transparent 60%);
    animation: banner-glow 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes banner-glow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(30px, -20px); }
}

.page-banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.page-banner-wave svg {
    display: block;
    width: 100%;
    height: 38px;
}

.hover-emerald:hover {
    color: var(--emerald-primary) !important;
}

/* Card Hover Lift & Glow */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
    will-change: transform, box-shadow;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(6, 78, 59, 0.12) !important;
}

.hover-lift-sm {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(6, 78, 59, 0.1) !important;
}

/* Image Zoom Hover */
.overflow-hidden-wrapper {
    overflow: hidden;
    position: relative;
}

.hover-zoom-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover .hover-zoom-img,
.overflow-hidden-wrapper:hover .hover-zoom-img {
    transform: scale(1.08);
}

/* Glassmorphism Card */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Animated Pulse Badge */
.badge-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-pulse::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: badge-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes badge-ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Process Step Number Badge */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.3);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.hover-lift:hover .step-number {
    transform: scale(1.15) rotate(5deg);
}

/* Quote Card with Watermark */
.quote-card {
    position: relative;
    border-left: 5px solid var(--emerald-primary);
    background: #f0fdf4;
    padding: 24px;
    border-radius: 0 16px 16px 0;
    overflow: hidden;
}

.quote-card::after {
    content: '💧';
    position: absolute;
    right: 15px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.12;
    pointer-events: none;
}

/* Interactive Accordion Effect */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.08);
}

.accordion-button:not(.collapsed) {
    background-color: #f0fdf4;
    color: #064e3b;
    font-weight: 700;
}

/* Shimmer Highlight Box */
.highlight-pill {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-radius: 50px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #065f46;
}

/* Smooth Desktop Hover Dropdown */
@media (min-width: 1200px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}
