/* 02-PREMIUM-CLINIC SAAS-STYLE CSS */
:root {
    --primary: #4F46E5; /* Indigo */
    --primary-light: rgba(79, 70, 229, 0.1);
    --primary-dark: #3730A3;
    --secondary: #10B981; /* Emerald */
    --secondary-light: rgba(16, 185, 129, 0.1);
    --accent: #111827;
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: rgba(17, 24, 39, 0.08);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --shadow-soft: 0 10px 30px -5px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px -5px rgba(14, 111, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

section {
    scroll-margin-top: 120px;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ================= UTILITIES ================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.rounded-xl { border-radius: var(--radius-lg) !important; }
.rounded-lg { border-radius: var(--radius-md) !important; }
.section-pad { padding: 100px 0; }

.btn-primary-saas {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(14, 111, 255, 0.3);
    text-decoration: none;
    display: inline-block;
}
.btn-primary-saas:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(14, 111, 255, 0.4);
    color: #fff;
}
.btn-outline-saas {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-saas:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}
.btn-link-saas {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.btn-link-saas:hover { gap: 10px; }

/* ================= NAVBAR ================= */
.navbar-saas {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    padding: 12px 24px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.navbar-saas a:not(.btn-primary-saas) { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.2s; }
.navbar-saas a:not(.btn-primary-saas):hover { color: var(--primary); }
.nav-links-saas { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; list-style: none;}
.brand-saas { font-size: 1.2rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--accent) !important; display: flex; align-items: center; gap: 8px;}
.brand-saas .icon-wrapper { background: var(--primary); color: white; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* ================= HERO ================= */
.hero-saas {
    min-height: 80vh;
    padding-top: 150px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.06), transparent 60%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.06), transparent 60%),
                linear-gradient(180deg, #F9FAFB 0%, #F0F4F8 100%);
}
.hero-title-saas {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-p-saas { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; }

/* Hero Images */
.hero-image-cluster { position: relative; width: 100%; height: 600px; }
.hero-main-img {
    position: absolute; right: 0; top: 0; width: 85%; height: 500px;
    border-radius: var(--radius-lg); object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.floating-widget-1 {
    position: absolute; left: 0; top: 80px; width: 280px;
    padding: 20px; z-index: 2; animation: float 6s ease-in-out infinite;
}
.floating-widget-2 {
    position: absolute; right: -30px; bottom: 40px; width: 250px;
    padding: 20px; z-index: 3; animation: float 7s ease-in-out 1s infinite;
}
.widget-icon-wrap { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* ================= STATS RIBBON ================= */
.stats-ribbon { margin-top: -60px; position: relative; z-index: 10; }
.stat-card-saas {
    background: #fff; border-radius: var(--radius-md); padding: 30px;
    box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 20px;
    transition: 0.3s; border: 1px solid var(--border);
}
.stat-card-saas:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stat-icon-saas { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.icon-primary { background: var(--primary-light); color: var(--primary); }
.icon-secondary { background: var(--secondary-light); color: var(--secondary); }
.stat-val { font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; line-height: 1; margin-bottom: 5px; color: var(--accent);}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500;}

/* ================= ABOUT ================= */
.about-img-wrap { position: relative; }
.about-img-main { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-quote { position: absolute; bottom: -30px; right: 20px; max-width: 300px; padding: 25px; border-radius: var(--radius-md); }

/* ================= SERVICES ================= */
.services-saas {
    padding: 100px 0;
}
.masonry-grid {
    margin: 60px 0;
    column-count: 1;
    column-gap: 30px;
}
@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}
@media (min-width: 992px) {
    .masonry-grid { column-count: 3; }
}
.service-card-saas {
    background: #fff; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border); transition: 0.4s; position: relative;
    display: flex; flex-direction: column;
    break-inside: avoid;
    margin-bottom: 30px;
}
.service-card-saas:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.service-card-saas .card-img { width: 100%; height: 220px; object-fit: cover; }
.service-card-saas.large .card-img { height: 350px; }
.service-card-body { padding: 30px; flex: 1; display: flex; flex-direction: column;}
.service-icon-float {
    position: absolute; top: 20px; right: 20px; width: 48px; height: 48px;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(5px); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary); box-shadow: var(--shadow-soft);
}

/* ================= DEPARTMENTS (HORIZONTAL SLIDER) ================= */
.slider-container {
    display: flex; gap: 30px; overflow-x: auto; padding-bottom: 40px; padding-top: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.slider-container::-webkit-scrollbar { display: none; }
.department-card-saas {
    flex: 0 0 420px; scroll-snap-align: start;
    background: #fff; border-radius: var(--radius-md); padding: 15px;
    border: 1px solid var(--border); transition: 0.3s;
}
.department-card-saas:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px);}
.dept-img { width: 100%; height: 260px; border-radius: var(--radius-sm); object-fit: cover; margin-bottom: 20px;}

/* ================= DOCTORS ================= */
.doc-card-saas {
    background: #fff; border-radius: var(--radius-md); padding: 15px;
    border: 1px solid var(--border); text-align: center; transition: 0.3s; position: relative; overflow: hidden;
}
.doc-card-saas:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.doc-img-wrap { width: 100%; height: 320px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; position: relative;}
.doc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.doc-card-saas:hover .doc-img-wrap img { transform: scale(1.05); }
.doc-rating { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); padding: 6px 12px; border-radius: 100px; font-weight: 600; font-size: 0.85rem; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 5px; color: #F59E0B;}

/* ================= TESTIMONIALS ================= */
.testimonial-card-saas {
    background: #fff; border-radius: var(--radius-md); padding: 40px;
    border: 1px solid var(--border); box-shadow: var(--shadow-soft); height: 100%;
}
.testi-user { display: flex; align-items: center; gap: 15px; margin-bottom: 20px;}
.testi-user img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover;}
.google-badge { color: #4285F4; font-size: 1.2rem;}

/* ================= CTA ================= */
.cta-saas {
    background: linear-gradient(135deg, var(--accent) 0%, #1e293b 100%);
    border-radius: var(--radius-lg); padding: 100px 40px; text-align: center;
    color: #fff; position: relative; overflow: hidden;
}
.cta-saas h2 { color: #fff; font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 20px;}
.cta-glow-1 { position: absolute; top: -50%; left: -10%; width: 500px; height: 500px; background: var(--primary); filter: blur(100px); opacity: 0.3; border-radius: 50%; pointer-events: none;}
.cta-glow-2 { position: absolute; bottom: -50%; right: -10%; width: 400px; height: 400px; background: var(--secondary); filter: blur(100px); opacity: 0.2; border-radius: 50%; pointer-events: none;}

/* ================= FOOTER ================= */
.footer-saas { padding: 80px 0 40px; background: #fff; border-top: 1px solid var(--border); }
.footer-saas h5 { font-size: 1.1rem; margin-bottom: 25px; color: var(--accent);}
.footer-saas ul { list-style: none; padding: 0; }
.footer-saas ul li { margin-bottom: 12px; }
.footer-saas ul li a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.footer-saas ul li a:hover { color: var(--primary); }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-main); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); transition: 0.3s; margin-right: 10px;}
.social-links a:hover { background: var(--primary); color: #fff; }

/* Theme Gear */
.theme-gear {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: #fff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15); z-index: 1050; transition: all 0.3s ease; border: 2px solid var(--primary);
}
.theme-gear:hover { background: var(--primary); color: #fff; transform: translateY(-50%) rotate(90deg); }
