/* =========================================
   Siddhi Vinayak Medical Agency - CSS
   ========================================= */

:root {
    /* Color Palette */
    --primary-color: #0B5ED7;
    --secondary-color: #00A884;
    --text-dark: #0A192F;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-dark: #F8F9FA;
    --text-light: #ADB5BD;
    --bg-light: #121212;
    --bg-white: #1E1E1E;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-color: #121212;
    color: #F8F9FA;
}

/* Base Overrides */
a { text-decoration: none; transition: var(--transition-fast); }
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* Header & Navbar */
header {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

header.scrolled {
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] header.scrolled {
    background-color: #1E1E1E;
}

.nav-link {
    color: var(--text-dark);
    text-transform: capitalize;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Cards & Categories */
.category-card {
    background-color: var(--bg-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

[data-theme="dark"] .category-card {
    background-color: #1E1E1E;
    border: 1px solid #333 !important;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn {
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
}

.call-btn {
    bottom: 80px;
    right: 20px;
    background-color: var(--primary-color);
}

.back-to-top {
    bottom: 20px;
    left: 20px;
    background-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.footer-links li a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
}

.footer-links li a:hover, .text-white-hover:hover {
    color: var(--secondary-color) !important;
    padding-left: 8px;
}