/* assets/css/style.css */
/* Luxury Healthcare Theme for Health Care Foundation */

:root {
    --primary: #0F6FFF;
    --primary-light: rgba(15, 111, 255, 0.06);
    --secondary: #16C47F;
    --secondary-light: rgba(22, 196, 127, 0.06);
    --bg-light: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 111, 255, 0.08);
    --card-shadow: 0 20px 40px rgba(15, 111, 255, 0.04);
    --transition-speed: 0.4s;
    --font-multiplier: 1;
    --grad-primary: linear-gradient(135deg, #0F6FFF 0%, #16C47F 100%);
    --grad-luxury: linear-gradient(135deg, rgba(15, 111, 255, 0.03) 0%, rgba(22, 196, 127, 0.03) 100%);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-light: #070a13;
    --bg-card: rgba(15, 23, 42, 0.9);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(15, 111, 255, 0.15);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --grad-luxury: linear-gradient(135deg, rgba(15, 111, 255, 0.01) 0%, rgba(22, 196, 127, 0.01) 100%);
}

/* Accessibility */
body.font-lg { --font-multiplier: 1.25; }
body.contrast-high {
    --primary: #0000ff;
    --secondary: #008000;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --text-color: #000000;
    --text-muted: #111111;
    --border-color: #000000;
}
body.contrast-high.dark-mode {
    --bg-light: #000000;
    --bg-card: #000000;
    --text-color: #ffffff;
    --text-muted: #eeeeee;
    --border-color: #ffffff;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    font-size: calc(1rem * var(--font-multiplier));
}

p, li, label, input, textarea, select, button {
    font-size: calc(1rem * var(--font-multiplier));
    line-height: 1.7;
}

/* Luxury Spacing */
section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

/* Grid & Dots backgrounds - Anti empty space */
.mesh-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(15, 111, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 111, 255, 0.015) 1px, transparent 1px);
}
.bg-dots {
    background-size: 30px 30px;
    background-image: radial-gradient(rgba(22, 196, 127, 0.03) 1.5px, transparent 1.5px);
}

/* Gradient Blurs circles */
.blur-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}
.blur-primary { background: var(--primary); top: 10%; left: -5%; }
.blur-secondary { background: var(--secondary); bottom: 15%; right: -5%; }

/* Transparent Glass navbar */
header.sticky-header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}
header.sticky-header.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(15, 111, 255, 0.03);
}
@media (max-width: 1199px) {
    header.sticky-header {
        top: 0 !important;
    }
    .navbar-collapse {
        background: var(--bg-card);
        border-radius: 20px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 20px 40px rgba(15, 111, 255, 0.06);
        border: 1px solid var(--border-color);
    }
}
body.dark-mode header.sticky-header.scrolled {
    background: rgba(7, 10, 19, 0.85);
}

/* Top bar styles */
.top-contact-strip {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-contact-strip a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.top-contact-strip a:hover {
    color: var(--secondary);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.45rem;
}

/* Navbar links */
.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 0.65rem 1.1rem !important;
    position: relative;
    transition: color 0.3s;
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-nav .nav-link {
        padding: 0.65rem 0.55rem !important;
        font-size: 0.85rem;
    }
}
@media (min-width: 1400px) {
    .navbar-nav .nav-link {
        padding: 0.65rem 0.8rem !important;
        font-size: 0.95rem;
    }
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 5px;
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 50%;
}

/* Compact button overrides inside the header on desktop */
@media (min-width: 1200px) {
    header .btn-premium-grad {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    header .btn-premium-border {
        padding: 0.45rem 1.1rem !important;
        font-size: 0.85rem !important;
    }
    header .btn-outline-primary {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

/* Mega dropdown menu */
header.sticky-header .container,
header.sticky-header .container-fluid {
    position: relative;
}
.mega-menu {
    position: static !important;
}
.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(15, 111, 255, 0.08);
    display: none;
}
.mega-menu:hover .mega-menu-content {
    display: block;
}

/* Luxury buttons */
.btn-premium-grad {
    background: var(--grad-primary);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(15, 111, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, opacity 0.3s;
}
.btn-premium-grad:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(22, 196, 127, 0.3);
    opacity: 0.95;
}
.btn-premium-grad i {
    transition: transform 0.3s;
}
.btn-premium-grad:hover i {
    transform: translateX(4px);
}

.btn-premium-border {
    background: transparent;
    color: var(--secondary) !important;
    border: 2px solid var(--secondary);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-premium-border:hover {
    background: var(--grad-primary);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(22, 196, 127, 0.2);
}

/* Hero elements redraft */
.hero-creative-section {
    padding: 12rem 0 8rem;
    background: var(--grad-luxury);
}

.hero-vector-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.hero-doctor-img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--grad-primary);
    padding: 10px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(15, 111, 255, 0.15);
}

/* Bouncing elements */
@keyframes luxuryFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}
.floating-stat-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 1rem 1.8rem;
    border-radius: 18px;
    animation: luxuryFloat 5s ease-in-out infinite;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}
.f-card-1 { top: 8%; left: -8%; animation-delay: 0s; }
.f-card-2 { bottom: 20%; right: -8%; animation-delay: 2s; }
.f-card-3 { bottom: -2%; left: 8%; animation-delay: 4s; }

/* Luxury Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.5s;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 111, 255, 0.12);
    border-color: rgba(22, 196, 127, 0.3);
}

/* Luxury Consultation Form Card */
.appointment-glass-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(15, 111, 255, 0.12);
    box-shadow: 0 30px 60px rgba(15, 111, 255, 0.08);
    border-radius: 28px;
}
body.dark-mode .appointment-glass-card {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(59, 130, 246, 0.2);
}

.appointment-glass-card .form-control,
.appointment-glass-card .form-select {
    border: 1.5px solid rgba(15, 111, 255, 0.08);
    background-color: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    transition: all 0.3s;
}
.appointment-glass-card .form-control:focus,
.appointment-glass-card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(22, 196, 127, 0.15);
    background-color: #ffffff;
}
body.dark-mode .appointment-glass-card .form-control:focus,
body.dark-mode .appointment-glass-card .form-select:focus {
    background-color: #0b0f19;
}

/* Wave section divides */
.section-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.section-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.section-wave-divider .shape-fill {
    fill: #ffffff;
}
body.dark-mode .section-wave-divider .shape-fill {
    fill: #070a13;
}

/* featured profiles */
.team-member-card .img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 20px 20px 0 0;
}
.team-member-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.team-member-card:hover .img-wrapper img {
    transform: scale(1.08);
}

/* Swiper slider style updates */
.testimonials-slider {
    padding: 2rem 0 4rem;
}
.testimonial-premium-card {
    padding: 3.5rem;
    border-radius: 24px;
    position: relative;
}
.testimonial-premium-card .quote-mark {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.08;
    font-family: serif;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 30px !important;
    border-radius: 6px !important;
}

/* Gallery hover */
.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.4s ease;
    padding: 2rem;
}
.gallery-item-card:hover .gallery-hover-overlay {
    opacity: 1;
}

/* Footer widget headings */
.footer-heading {
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
}
.footer-section {
    background-color: #05080f;
    color: #94a3b8;
    padding: 6rem 0 2rem;
}
.footer-section a {
    color: #94a3b8;
}

/* Custom stats cards */
.stat-box {
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Gradient Background Class */
.gradient-bg {
    background: var(--grad-primary);
}

/* Site Loader Screen Styles */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(15, 111, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Timeline Custom Styles */
.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-badge {
    position: absolute;
    left: -41px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 3px var(--primary);
}
.timeline-badge.bg-secondary {
    box-shadow: 0 0 0 3px var(--secondary);
}
.timeline-badge.bg-success {
    box-shadow: 0 0 0 3px var(--green);
}

/* Custom Icons Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-box.bg-primary-light {
    background-color: var(--primary-light);
    color: var(--primary);
}
.icon-box.bg-secondary-light {
    background-color: var(--secondary-light);
    color: var(--secondary);
}
.icon-box.bg-green-light {
    background-color: var(--green-light);
    color: var(--green);
}

/* Offset subpage top banners under fixed navbar */
.gradient-bg.text-center {
    padding-top: 10rem !important;
    padding-bottom: 6rem !important;
}

/* Watermark Indices & Custom Hover cards for Programs */
.program-premium-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary) !important;
}
.program-premium-card:nth-child(even) {
    border-top-color: var(--secondary) !important;
}
.card-watermark-num {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.05;
    user-select: none;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}
.program-premium-card:hover .card-watermark-num {
    opacity: 0.12;
    transform: translateY(-5px);
}

/* Header Text & Logo Contrast Overrides on Dark Inner Banners */
header.header-dark-bg:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}
header.header-dark-bg:not(.scrolled) .nav-link:hover,
header.header-dark-bg:not(.scrolled) .nav-link.active {
    color: #ffffff !important;
}
header.header-dark-bg:not(.scrolled) .navbar-brand text {
    fill: #ffffff !important;
}
header.header-dark-bg:not(.scrolled) .btn-premium-border {
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}
header.header-dark-bg:not(.scrolled) .btn-premium-border i {
    color: #ffffff !important;
}
header.header-dark-bg:not(.scrolled) .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}
header.header-dark-bg:not(.scrolled) .btn-outline-primary i {
    color: #ffffff !important;
}

/* Dynamic line color highlight under active subpages on dark background */
header.header-dark-bg:not(.scrolled) .navbar-nav .nav-link::after {
    background-color: #ffffff !important;
}



