/* 
   - Jeevandeep Special Care
   - Unique Floating Capsule Header CSS
*/

:root {
    --primary: #2E2A6E; /* Deep Purple */
    --primary-alt: #1a164b;
    --secondary: #F3F4F6; /* Light Grey */
    --accent: #003e2f; /* Greenish Accent */
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #6B7280;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-mid: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 40px -10px rgba(46, 42, 110, 0.15);
}

/* 1. Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: #fcfcfd;
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* 2. Universal Button Styling (Unique Design) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(46, 42, 110, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-alt);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 42, 110, 0.35);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

/* 3. Unique Floating Header */
.main-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-mid);
    padding: 0 20px; /* Outer spacing */
    pointer-events: none; /* Let clicks pass through outside the capsule */
}

.header-inner {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    height: 85px;
    padding: 0 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-mid);
    pointer-events: auto; /* Active inside the capsule */
    max-width: 1300px;
    margin: 0 auto;
}

/* Sticky State changes */
.main-header.sticky {
    top: 0;
    padding: 0;
}

.main-header.sticky .header-inner {
    max-width: 100%;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-bottom: 1px solid #f3f4f6;
    height: 75px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Logo Styling - Unique design for rounded logo */
.logo-circle {
    width: 110px;
    height: 102px;
    background: #fff;
    border: 1px solid #004d33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}

#headerLogo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.main-header.sticky .logo-circle {
    width: 71px;
    height: 65px;
}

/* 4. Desktop Navigation (Latest Trends) */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 10px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 20px;
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 2px;
    transition: var(--transition-fast);
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Unique Hover Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: -20px;
    width: 250px;
    background: var(--white);
    border-radius: 4px;
    padding: 15px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #f3f4f6;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: var(--text-main);
}

.dropdown-menu li a:hover {
    background-color: #f9fafb;
    color: var(--primary);
    padding-left: 30px; /* Tiny slide effect */
}

/* 5. Header CTA & Mobile Interface */
.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Unique Hamburger Toggle */
.mobile-toggle {
    display: none;
    background: var(--secondary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.toggle-box {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}

.bar-2 { width: 70%; margin-left: auto; }

.mobile-toggle:hover .bar-2 { width: 100%; }

/* 6. Mobile Side Menu Overlay (Blurry & Glassy) */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 42, 110, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* From Left */
    width: 320px;
    height: 100%;
    background-color: var(--white);
    z-index: 1600;
    transition: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 20px 0 60px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-logo {
    height: 50px;
    border-radius: 50%;
}

.sidebar-close {
    background: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

.sidebar-content {
    flex: 1;
    padding: 5px 19px;
    overflow-y: auto;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    display: block;
    padding: 5px 0;
}

.sidebar-link.active {
    color: var(--primary);
}

/* Mobile Sidebar Dropdowns (Unique Accordion) */
.sidebar-link-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-toggle {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--secondary);
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.dropdown-toggle.active {
    background: var(--primary);
    color: #fff;
    transform: rotate(45deg);
}

.sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    padding-left: 20px;
    border-left: 1.5px solid #f3f4f6;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sidebar-dropdown.show {
    max-height: 400px;
    margin-bottom: 20px;
}

.sidebar-dropdown li a {
    display: block;
    padding: 3px 0;
    font-size: 15px;
    color: #565655;
}

.sidebar-footer {
    padding: 30px 24px;
    background: #fdfdfd;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 7. Responsive Breakpoints */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .header-inner {
        height: 75px;
        padding: 0 20px;
    }
    .logo-circle {
        width: 55px;
        height: 55px;
    }
    /* Sticky overrides for tablet */
    .main-header.sticky {
        top: 0 !important;
        padding: 0 !important;
    }
    .main-header.sticky .header-inner {
        height: 75px !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e5e7eb;
        max-width: 100%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
}

@media (max-width: 640px) {
    .main-header {
        top: 10px;
        padding: 0 10px;
    }
    .header-inner {
        height: 65px;
        padding: 0 24px;
    }
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    .btn {
        padding: 8px 18px;
        font-size: 14px;
    }
    .mobile-toggle {
        width: 40px;
        height: 40px;
    }
    /* Sticky overrides for mobile to fix transparency and overlapping */
    .main-header.sticky {
        top: 0 !important;
        padding: 0 !important;
    }
    .main-header.sticky .header-inner {
        height: 65px !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e5e7eb;
        max-width: 100%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
}

/* 8. Hero Slider (Owl Carousel) */
.hero-slider-wrap {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    /* Since we have a floating header with top: 20px, we should account for it if needed,
       but usually hero backgrounds go behind or start from top */
}

.hero-slide-content {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    /* Ensure the background images cover the entire slide */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    position: relative;
}

/* Button variants specifically for Dark Backgrounds */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Custom Owl Carousel Dots */
.hero-slider.owl-theme .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider.owl-theme .owl-dots .owl-dot.active span {
    width: 35px;
    border-radius: 10px;
    background: var(--accent);
}

/* Custom Owl Carousel Nav (Arrows) */
.hero-slider.owl-theme .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
    margin: 0;
    z-index: 10;
}

.hero-slider.owl-theme .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    pointer-events: auto;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hero-slider.owl-theme .owl-nav button:hover {
    background: var(--primary) !important;
    transform: scale(1.1);
}

/* Animations reset for Owl Loop logic */
.owl-item.active .animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Responsive adjustments for Hero Section */
@media (max-width: 1024px) {
    .hero-slider.owl-theme .owl-nav {
        display: none; /* Hide arrows on tablet/mobile to save space */
    }
}

@media (max-width: 768px) {
    /* Adjust height to 80vh on mobile */
    .hero-slide-content {
        height: 60vh;
        min-height: 500px;
        padding-top: 60px;
        background-position: left !important;  

    }
    .hero-slide-content h1 {
        font-size: 2.5rem;  
        line-height: 1.2;
    }
    .hero-slide-content p {
        font-size: 1.125rem;  
    }
}

@media (max-width: 480px) {
    .hero-slide-content {
        height: 60vh;
        min-height: 450px;
    }
    .hero-slide-content h1 {
        font-size: 2.2rem;
    }
    .hero-slide-content .flex.gap-4 {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-slide-content .flex.gap-4 .btn {
        width: 100%;
    }
}

/* 9. Info Highlight Cards Section */
.info-cards-section {
    position: relative;
    z-index: 20;
    margin-top: 50px; /* Pull up over the hero banner */
    padding-bottom: 50px;
}

@media (max-width: 1024px) {
    .info-cards-section {
        margin-top: -50px;
    }
}

.info-card {
    background-color: #9e9e9e4a; /* Very light mint/cyan */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #004d33; /* Dark green */
    font-size: 24px;
}

.divider-dashed {
    height: 1px;
    width: 100%;
    border-bottom: 1px dashed #c0e0dc;
    margin: 10px 0 20px 0;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: #004d33;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Specific Middle Image Card */
.bg-image-card {
    background-image: linear-gradient(to right, rgba(0, 77, 51, 0.85) 0%, rgba(0, 77, 51, 0.2) 100%), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .bg-image-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 40px;
    }
}

.inner-white-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    color: #333;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 320px;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .inner-white-card {
        margin-top: 0;
    }
}

.inner-white-card:hover {
    transform: translateY(-5px);
}

/* Card Button Variant */
.btn-card {
    background-color: var(--primary); /* Deep Purple */
    color: white;
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.btn-card:hover {
    background-color: var(--primary-alt);
}

.btn-card .icon-right {
    background: white;
    color: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 10. Service Cards (Design Option 2) */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #f3f4f6;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(46,42,110,0.1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f0fdf9;
    color: #1AAB83;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: 0.4s;
}

.service-card:hover .service-icon-wrapper {
    background: #1AAB83;
    color: white;
    transform: rotateY(180deg);
}

.service-link {
    color: #1AAB83;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 11. Department Slider Specific Styles */
.department-slider {
    padding-bottom: 20px;
}

.department-slider .owl-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px !important;
}

.department-slider .owl-nav button {
    width: 50px !important;
    height: 50px !important;
    background: #fff !important;
    color: var(--primary) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.department-slider .owl-nav button:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(46, 42, 110, 0.2);
}

.department-slider .owl-dots {
    margin-top: 25px !important;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.department-slider .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: #d1d5db !important;
    margin: 0 !important;
    transition: 0.3s !important;
    border-radius: 50% !important;
}

.department-slider .owl-dot.active span {
    width: 25px !important;
    background: var(--accent) !important;
    border-radius: 10px !important;
}

.service-link i {
    transition: 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Abstract hover shape behind card text */
.service-hover-shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent, rgba(26,171,131,0.05));
    border-radius: 50%;
    z-index: -1;
    transition: 0.5s;
}

.service-card:hover .service-hover-shape {
    transform: scale(2);
    background: linear-gradient(135deg, transparent, rgba(46,42,110,0.05));
}

/* General Layout Utilities used in new sections */
.scroll-animate {
    opacity: 0; /* Hidden by default until intersected */
    visibility: hidden;
}
.scroll-animate.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 11. Custom Animations */
@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes floatAnimReverse {
    0% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(15px) rotate(8deg); }
    100% { transform: translateY(0px) rotate(12deg); }
}

.float-anim {
    animation: floatAnim 6s ease-in-out infinite;
}

.float-anim-reverse {
    animation: floatAnimReverse 5s ease-in-out infinite;
}
