/* Base Styles */
:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Animations */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Button Effects */
.wave-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.wave-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.wave-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.wave-btn:hover:after {
    animation: wave 0.8s ease-out;
}

@keyframes wave {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

/* Hero Section */
.hero-bg {
    background-image: url('../hero.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    animation: zoomIn 20s infinite alternate linear;
}

.hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Dark overlay for better text contrast */
    z-index: 1;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Glassmorphism Navigation */
nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark Mode Navigation */
body.dark nav {
    background-color: rgba(17, 24, 39, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cards & Elements */
.service-card,
.video-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover,
.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Hero Text Enhancement */
#hero h1,
#hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Styles */
body.dark {
    background-color: #0f172a;
    color: #f1f5f9;
}

body.dark .bg-white {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

body.dark .bg-gray-50 {
    background-color: #111827 !important;
}

body.dark .bg-gray-100 {
    background-color: #1f2937 !important;
}

body.dark .bg-white.shadow,
body.dark .bg-white.shadow-sm,
body.dark .bg-white.shadow-md,
body.dark .bg-white.shadow-lg,
body.dark .bg-white.shadow-xl,
body.dark .bg-white.shadow-2xl {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark .text-gray-900 {
    color: #f8fafc !important;
}

body.dark .text-gray-600,
body.dark .text-gray-700,
body.dark .text-gray-500,
body.dark .text-gray-400 {
    color: #94a3b8;
}

body.dark .text-blue-600 {
    color: #60a5fa !important;
}

body.dark .border-gray-200,
body.dark .border-gray-300 {
    border-color: #334155 !important;
}

body.dark .bg-blue-50 {
    background-color: rgba(30, 58, 138, 0.5);
    /* Less intense blue */
    border-left-color: #60a5fa;
}

/* Specific Dark Mode for FAQ CTA */
body.dark .bg-blue-50\/80 {
    background-color: rgba(30, 41, 59, 0.8) !important;
    /* Darker background for CTA */
    border-color: #334155 !important;
}

body.dark .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.2) !important;
    /* Subtle blue highlight */
}

body.dark .bg-yellow-50 {
    background-color: rgba(234, 179, 8, 0.2) !important;
    border-color: #854d0e !important;
}

body.dark .text-yellow-700 {
    color: #fef08a !important;
}

/* ===== Public Calendar Cells ===== */
@keyframes calPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

@keyframes calShine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.cal-cell {
    position: relative;
    min-height: 40px;
    padding: 4px 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
    .cal-cell {
        min-height: 52px;
        padding: 6px 4px;
        gap: 3px;
        border-radius: 0.625rem;
    }
}

.cal-cell:hover:not(.cal-cell--empty) {
    transform: scale(1.08);
    z-index: 2;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.cal-cell--empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    min-height: 0;
}

.cal-day-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    line-height: 1;
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .cal-day-number {
        font-size: 0.9rem;
    }
}

/* ---- Today ---- */
.cal-cell--today {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(59, 130, 246, 0.15);
}

.cal-cell--today::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: calShine 3s ease-in-out infinite;
    pointer-events: none;
}

.cal-cell--today .cal-day-number {
    color: #1e40af;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* ---- Booked ---- */
.cal-cell--booked {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #f87171;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Bottom stripe — visible on any screen size */
.cal-cell--booked::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    border-radius: 0 0 0.5rem 0.5rem;
}

.cal-cell--booked:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(239, 68, 68, 0.15) !important;
}

.cal-cell--booked .cal-day-number {
    color: #991b1b;
    font-weight: 800;
}

/* Dot indicator */
.cal-dot-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8px;
}

.cal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f97316);
    flex-shrink: 0;
    animation: calPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

@media (min-width: 640px) {
    .cal-dot {
        width: 8px;
        height: 8px;
    }
}

/* ===== Dark mode calendar ===== */
body.dark .cal-cell {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark .cal-cell:hover:not(.cal-cell--empty) {
    background: linear-gradient(135deg, #1e3a5f 0%, #172554 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

body.dark .cal-cell--empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.dark .cal-day-number {
    color: #cbd5e1;
}

body.dark .cal-cell--today {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3), 0 4px 16px rgba(59, 130, 246, 0.2);
}

body.dark .cal-cell--today .cal-day-number {
    color: #93c5fd;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

body.dark .cal-cell--booked {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.1), 0 2px 8px rgba(239, 68, 68, 0.12);
}

body.dark .cal-cell--booked .cal-day-number {
    color: #fca5a5;
}

body.dark .cal-dot {
    background: linear-gradient(135deg, #f87171, #fb923c);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

body.dark .service-card,
body.dark .video-card {
    background-color: #1e293b;
    border: 1px solid #334155;
}

body.dark #booking-form input,
body.dark #booking-form select,
body.dark #booking-form textarea {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

/* Inputs */
#booking-form input,
#booking-form select,
#booking-form textarea {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
    transform: translateY(-1px);
}

/* Video Hover Effect */
.video-card img {
    position: relative;
    transition: transform 0.6s ease;
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-card .play-icon-overlay {
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
}

.video-card:hover .play-icon-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 4px solid #fff;
}

body.dark .map-container {
    border-color: #1e293b;
}

/* Popup/Modal */
#service-popup>div,
#privacy-modal>div,
#admin-login-modal>div {
    backdrop-filter: blur(0px);
    /* Reset for content */
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        animation: none;
    }

    .wave-btn:hover:after {
        animation: none;
    }
}

:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}