/* Base Variables & Reset */
:root {
    /* Modern Premium Palette */
    --primary-color: #0d9488; /* Teal */
    --primary-light: #ccfbf1;
    --primary-dark: #0f766e;
    --secondary-color: #0ea5e9; /* Light Blue */
    --secondary-light: #e0f2fe;
    
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #94a3b8;
    
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --white: #ffffff;
    
    --border-color: rgba(226, 232, 240, 0.8);
    --border-light: rgba(255, 255, 255, 0.5);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(13, 148, 136, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: clip;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Modern Typography */
h1, h2, h3, h4, .font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; position: relative; z-index: 2; }
.text-center { text-align: center; }

.section-header { max-width: 700px; margin: 0 auto 60px; }
.sub-heading {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-4 { margin-top: 2rem; }

/* 1. Scrolling Banner (Marquee) */
.top-ticker {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    font-size: 0.85rem;
}

.ticker-wrap { display: inline-block; }

.ticker-content {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-content span {
    margin-right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.icon-sm { width: 14px; height: 14px; }
.icon-xs { width: 12px; height: 12px; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 1. Top Bar / Sub Header */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar i {
    width: 14px;
    height: 14px;
}

/* 2. Classic Medical Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-text strong { font-family: 'Outfit', 'Poppins', sans-serif; font-size: 1.4rem; background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }
.logo-text span { font-size: 0.75rem; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: var(--white);
}

.dropdown { position: relative; }
.dropdown-icon { font-size: 0.75rem; transition: var(--transition); margin-top: 2px; }

.dropdown:hover .dropdown-icon { transform: rotate(180deg); color: var(--primary-color); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white);
    min-width: 310px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 12px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-main);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dp-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dp-icon svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
}

.btn-icon { width: 18px; height: 18px; transition: var(--transition); }
.btn:hover .btn-icon { transform: translateX(4px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
    opacity: 0.95;
}

.btn-glow:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-white { background: var(--white); color: var(--primary-color); }
.btn-white:hover { background: var(--bg-main); transform: translateY(-2px); }

.btn-outline-white { border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary-color); }

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-box { width: 24px; height: 18px; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    position: absolute;
    transition: var(--transition);
    border-radius: 4px;
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; }
.hamburger-inner::after { content: ""; bottom: -8px; }

.hamburger.is-active .hamburger-inner { background-color: transparent; }
.hamburger.is-active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.hamburger.is-active .hamburger-inner::after { bottom: 0; transform: rotate(-45deg); }

.mobile-nav-bottom { display: none; }

/* Abstract Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary-light); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary-light); top: 30%; left: -100px; }
.shape-3 { width: 500px; height: 500px; background: var(--primary-light); bottom: 10%; right: -200px; }
.shape-4 { width: 400px; height: 400px; background: var(--secondary-light); top: 20%; left: -150px; }

/* Glass Card Global */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    border-color: var(--white);
}

/* 14. Modern Footer (Dark Theme with Orb Glow) */
.footer { 
    background-color: #171f2c; /* Deep dark slate matching the image */
    padding-top: 100px; 
    border-top: none; 
    color: rgba(255,255,255,0.7); 
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(13, 148, 136, 0.35); /* Soft teal glowing orb */
    border-radius: 50%;
    filter: blur(80px);
    top: -100px;
    right: -100px;
    z-index: 0;
}
.footer-container { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 40px; 
    margin-bottom: 60px; 
    position: relative;
    z-index: 1;
}

.footer-brand-img { height: 48px; width: auto; object-fit: contain; }
.logo-footer { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; text-decoration: none; }
.footer .logo-text strong { background: none; -webkit-text-fill-color: var(--white); color: var(--white); }
.footer .logo-text span { color: rgba(255,255,255,0.6); }
.footer-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 300px; }

.social-links { display: flex; gap: 12px; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.1); }
.social-btn:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); transform: translateY(-3px); }

.footer-links h3, .footer-contact h3 { font-family: 'Poppins', sans-serif; font-size: 1.2rem; color: var(--white); margin-bottom: 24px; }
.footer-links ul li { margin-bottom: 16px; }
.footer-links ul li a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links ul li a:hover { color: var(--white); transform: translateX(5px); }

.cd-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.cd-item > svg { color: var(--primary-light); width: 24px; height: 24px; }
.cd-item span { display: block; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.cd-item p, .cd-item a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.cd-item a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; position: relative; z-index: 1; }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.legal-links { display: flex; gap: 24px; }
.legal-links a { font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.legal-links a:hover { color: var(--white); }

/* Animations & Reveals */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (max-width: 768px) {
    .top-bar-container { flex-direction: column; gap: 10px; justify-content: center; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hamburger { display: block; }
    .hidden-mobile { display: none; }
    .nav { position: fixed; top: 80px; right: -100%; width: 100%; height: calc(100vh - 80px); background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 40px 24px; transition: var(--transition); overflow-y: auto; z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    .nav.active { right: 0; }
    .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: 16px; }
    .nav-link { padding: 16px 0; width: 100%; font-size: 1.25rem; font-family: 'Poppins', sans-serif; font-weight: 600; border-bottom: 1px solid var(--border-color); border-radius: 0; justify-content: space-between; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 16px 0 0 16px; background: transparent; display: none; }
    .dropdown.active .dropdown-menu { display: flex; }
    .dropdown.active .dropdown-icon { transform: rotate(180deg); }
    .mobile-nav-bottom { display: block; margin-top: 40px; width: 100%; }
    .w-full { width: 100%; }
    .header-right { position: relative; z-index: 1001; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-container { flex-direction: column; gap: 16px; text-align: center; }
}
