/* ==========================================================================
   BookingMaster.lk - Public Website Styles (Light Theme)
   ========================================================================== */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   Gradient & Background Utilities
   ========================================================================== */
.hero-gradient {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 35%, #f3f0ff 70%, #eef2ff 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Floating Orb Animations
   ========================================================================== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #93c5fd, #c4b5fd);
    top: -100px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #a5b4fc, #67e8f9);
    bottom: -80px;
    left: -80px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #c4b5fd, #93c5fd);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -20px) scale(1.03); }
    66% { transform: translate(-15px, 25px) scale(0.97); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.1); }
}

/* ==========================================================================
   Glassmorphism Navbar
   ========================================================================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-transparent {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-transparent .nav-brand-text { color: #111827; }
.navbar-transparent .nav-link { color: #4b5563; }
.navbar-transparent .nav-link:hover { color: #111827; background: rgba(0, 0, 0, 0.04); }
.navbar-transparent .nav-link-active { color: #2563eb; background: #eff6ff; }
.navbar-transparent .nav-divider { background: #e5e7eb; }
.navbar-transparent .nav-login { color: #4b5563; }
.navbar-transparent .nav-login:hover { color: #111827; background: rgba(0, 0, 0, 0.04); }
.navbar-transparent .nav-brand-icon { background: #2563eb; }
.navbar-transparent .nav-hamburger { color: #374151; }

.navbar-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar-solid .nav-brand-text { color: #111827; }
.navbar-solid .nav-link { color: #4b5563; }
.navbar-solid .nav-link:hover { color: #111827; background: #f3f4f6; }
.navbar-solid .nav-link-active { color: #2563eb; background: #eff6ff; }
.navbar-solid .nav-divider { background: #e5e7eb; }
.navbar-solid .nav-login { color: #4b5563; }
.navbar-solid .nav-login:hover { color: #111827; background: #f3f4f6; }
.navbar-solid .nav-brand-icon { background: #2563eb; }
.navbar-solid .nav-hamburger { color: #374151; }

/* ==========================================================================
   Button Effects
   ========================================================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-secondary {
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-white {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-white::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.08), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.btn-white:hover::after {
    left: 120%;
}

/* ==========================================================================
   Card Effects
   ========================================================================== */
.glass-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.glass-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.feature-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-card .icon-wrap {
    transition: all 0.4s ease;
}

.feature-card:hover .icon-wrap {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ==========================================================================
   Counter Animation
   ========================================================================== */
.counter-number {
    display: inline-block;
}

/* ==========================================================================
   Grid Dot Pattern
   ========================================================================== */
.dot-pattern {
    background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.dot-pattern-dark {
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
    display: none;
    animation: slideDown 0.3s ease;
}

.mobile-menu.open {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Form Input Fields
   ========================================================================== */
.input-field {
    transition: all 0.2s ease;
    border: 1.5px solid #e5e7eb;
}

.input-field:hover {
    border-color: #d1d5db;
}

.input-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ==========================================================================
   Spinner
   ========================================================================== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Check Bounce Animation
   ========================================================================== */
@keyframes checkBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.check-bounce { animation: checkBounce 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; opacity: 0; }

/* ==========================================================================
   Code Input (Verify Page)
   ========================================================================== */
.code-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s ease;
    caret-color: #2563eb;
}

.code-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
    background: #fff;
}

.code-input.filled {
    border-color: #2563eb;
    background: #eff6ff;
}

/* ==========================================================================
   Auth Page Brand Panel
   ========================================================================== */
.auth-brand-panel {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #312e81 100%);
    position: relative;
    overflow: hidden;
}

.auth-brand-panel .orb {
    opacity: 0.15;
}

.auth-brand-panel .dot-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.auth-brand-panel .gradient-text {
    background: linear-gradient(135deg, #93c5fd, #c4b5fd, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Section Divider
   ========================================================================== */
.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* ==========================================================================
   FAQ Accordion Hover
   ========================================================================== */
.faq-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.faq-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

/* ==========================================================================
   Pricing Card Glow
   ========================================================================== */
.pricing-highlight {
    position: relative;
}

.pricing-highlight::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

/* ==========================================================================
   Gradient Icon Background
   ========================================================================== */
.icon-gradient {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.icon-gradient-vivid {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .orb { display: none; }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 640px) {
    .orb {
        opacity: 0.12;
    }
    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 150px; height: 150px; }
}

/* ==========================================================================
   How It Works - Step Cards
   ========================================================================== */
.step-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    border-top: 2px dashed #cbd5e1;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .step-connector { display: none; }
}

/* ==========================================================================
   Property Type Cards
   ========================================================================== */
.property-type-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.property-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.property-type-card .icon-wrap {
    transition: all 0.4s ease;
}

.property-type-card:hover .icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Feature Showcase
   ========================================================================== */
.showcase-mockup {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.showcase-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.showcase-bullet i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   Trust Section Stats (Light)
   ========================================================================== */
.trust-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-stat:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

/* ==========================================================================
   Security & Technology Pills
   ========================================================================== */
.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e40af;
    transition: all 0.3s ease;
}

.security-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.security-pill i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Wave Divider
   ========================================================================== */
.wave-divider {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ==========================================================================
   Showcase Mockup Elements (Calendar, Guest List, Chart)
   ========================================================================== */
.mockup-bar {
    border-radius: 4px;
    height: 8px;
}

.mockup-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.mockup-row:last-child {
    border-bottom: none;
}

.mockup-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* ==========================================================================
   Footer Styles (Dark)
   ========================================================================== */
.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-link:hover i {
    color: #60a5fa;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   CTA Section (Light)
   ========================================================================== */
.cta-light-gradient {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f5f3ff 100%);
}
