:root {
    /* Modern Healthcare Palette - Deep Teal & Soft Mint */
    --primary: #0d9488;
    --primary-dark: #0f172a;
    --accent: #2dd4bf;
    --accent-light: #f0fdfa;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #fcfcfd;
    --white: #ffffff;
    --border: #e2e8f0;
    --surface: #ffffff;
    
    /* Typography - Sophisticated pairing */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Fraunces', serif;
    
    /* Design Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 48px;
    --container-width: 1300px;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px -10px rgba(13, 148, 136, 0.1);
    --shadow-bold: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

/* Dynamic Background Patterns */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(at 0% 0%, hsla(173, 85%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(180, 50%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(160, 40%, 90%, 1) 0, transparent 50%);
    opacity: 0.6;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3column%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header & Nav */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-pill {
    background: rgba(13, 148, 136, 0.05);
    padding: 8px 24px;
    border-radius: 100px;
    display: flex;
    gap: 24px;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

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

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

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.badge-intro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 32px;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent);
    opacity: 0.2;
    z-index: -1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.hero-main-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-animate 10s infinite alternate;
    z-index: -1;
    opacity: 0.1;
}

@keyframes blob-animate {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; }
}

.hero-image {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-bold);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.card-1 { bottom: 40px; left: -40px; }
.card-2 { top: 40px; right: -20px; }

/* Stats Section */
.stats {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.stats-container {
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    color: var(--white);
    box-shadow: var(--shadow-bold);
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 8px;
    font-family: var(--font-main);
    color: var(--accent);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 50px 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 32px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: rotate(10deg);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Booking Section */
.booking {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.booking-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
}

/* Doctors Section */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: left;
}

.doctor-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-bold);
}

.doctor-img-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.doctor-socials {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    transform: translateY(100px);
    transition: var(--transition);
}

.doctor-card:hover .doctor-socials {
    transform: translateY(0);
}

.doctor-social-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.doctor-img {
    height: 300px;
    background-color: #f1f5f9;
    width: 100%;
}

.doctor-info {
    padding: 24px;
    text-align: center;
}

.doctor-info h3 {
    margin-bottom: 5px;
}

.doctor-info p {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    background-color: #f0f7ff;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Footer */
footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Placeholder Helpers */
.placeholder-image {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.placeholder-avatar {
    width: 50px;
    height: 50px;
    background: #e2e8f0;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .booking {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}
