/* ========================================================
   Medical Template - Premium Styles
   ======================================================== */

:root {
    /* Color Palette */
    --primary-color: #0d6efd; /* Trustworthy Blue */
    --primary-light: #e7f1ff;
    --primary-dark: #0a58ca;
    
    --secondary-color: #198754; /* Health Green for WhatsApp/Success */
    --secondary-dark: #146c43;
    
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-out;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 40px rgba(13, 110, 253, 0.1);
}

/* ========================================================
   Base & Reset Overrides
   ======================================================== */
body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--dark-color);
}

.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.tracking-wide {
    letter-spacing: 2px;
}

.max-w-700 {
    max-width: 700px;
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================================
   Navigation
   ======================================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-normal);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--dark-color) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

@media (max-width: 991px) {
    .navbar {
        background-color: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
    .nav-link::after {
        display: none;
    }
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1920&q=80') no-repeat center right;
    background-size: cover;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.2) 100%);
}

.relative-z {
    position: relative;
    z-index: 2;
}

.badge-custom {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--dark-color);
}

.stat-item h3 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-bg::before {
        background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
    }
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================================
   About Section
   ======================================================== */
.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: var(--border-radius);
    top: 20px;
    left: -20px;
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    border-top: 4px solid var(--primary-color);
}

.icon-badge {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .about-image-wrapper {
        margin-bottom: 3rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================================
   Services Section
   ======================================================== */
.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-card:hover::after {
    width: 100%;
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-weight: 600;
}

/* ========================================================
   Testimonials Section
   ======================================================== */
.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.rating {
    color: #ffd700;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-color);
    font-size: 1.05rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

/* ========================================================
   Contact Section
   ======================================================== */
.contact-info {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.contact-info::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    transition: var(--transition-fast);
}

.form-control:focus {
    box-shadow: 0 0 0 4px var(--primary-light);
    border-color: var(--primary-color);
    background-color: #fff;
}

.form-label {
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .contact-info {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
}

/* ========================================================
   Footer
   ======================================================== */
.footer {
    border-top: 5px solid var(--primary-color);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* ========================================================
   WhatsApp Float Button
   ======================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.4);
}

/* ========================================================
   Animations (Intersection Observer)
   ======================================================== */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.fade-in-up {
    transform: translateY(40px);
}

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

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

/* When class .is-visible is added by JS */
.animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
