/* ==========================================================================
   SHALINI EYE HOSPITAL - LUXURY OPHTHALMIC CENTER DESIGN SYSTEM
   ========================================================================== */

:root {
    --color-teal: #2A6F6D;
    --color-teal-dark: #1b4f4d;
    --color-teal-light: #3d8b88;
    --color-gold: #D4AF37;
    --color-indigo: #1F2937;
    --color-slate: #475569;
    --color-muted: #64748b;
    --color-ivory: #FAF9F6;
    --color-white: #ffffff;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Inter', -apple-system, sans-serif;
    
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(42, 111, 109, 0.15);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-slate);
    background-color: #fafbfc;
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-indigo);
    font-weight: 800;
    line-height: 1.25;
}

.serif-font {
    font-family: var(--font-heading);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-teal) 0%, #0ea5e9 40%, var(--color-gold) 75%, var(--color-teal) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradientShine 6s linear infinite;
}

@keyframes gradientShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(42, 111, 109, 0.1);
    color: var(--color-teal);
    border: 1.5px solid rgba(42, 111, 109, 0.25);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: clamp(2.2rem, 3.5vw, 2.9rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-muted);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: var(--color-white);
    padding: 0.9rem 1.85rem;
    border-radius: 14px;
    font-weight: 750;
    font-size: 0.96rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(42, 111, 109, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(42, 111, 109, 0.45);
    background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    color: var(--color-teal);
    border: 1.5px solid rgba(42, 111, 109, 0.35);
    padding: 0.9rem 1.85rem;
    border-radius: 14px;
    font-weight: 750;
    font-size: 0.96rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    background: #f0fdfa;
    border-color: var(--color-teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(42, 111, 109, 0.15);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 111, 109, 0.12);
    padding: 0.9rem 0;
    transition: all 0.3s ease;
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.brand-text-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.1;
}

.brand-text-box span {
    font-size: 0.76rem;
    color: var(--color-teal);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--color-slate);
    text-decoration: none;
    font-weight: 650;
    font-size: 0.94rem;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: var(--color-teal);
}

/* Hero Section */
.hero-section {
    padding: 5.5rem 0 5rem 0;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(42, 111, 109, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
                #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.8rem, 4.5vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(42, 111, 109, 0.15);
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 850;
    color: var(--color-teal);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-item p {
    font-size: 0.88rem;
    color: var(--color-muted);
    font-weight: 650;
}

.hero-visual-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(42, 111, 109, 0.2);
}

.hero-visual-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-visual-card:hover img {
    transform: scale(1.04);
}

/* Hero Entrance Animations */
.hero-badge-anim {
    opacity: 0;
    transform: translateY(-16px);
    animation: heroFadeDown 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

/* Typewriter cursor */
.hero-title-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background: var(--color-teal);
    margin-left: 3px;
    animation: cursorBlink 0.75s step-end infinite;
    vertical-align: text-bottom;
    border-radius: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* After-title: each element hides until JS adds .item-revealed */
.hero-desc-anim,
.hero-actions-anim,
.hero-stats-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-desc-anim.item-revealed,
.hero-actions-anim.item-revealed,
.hero-stats-anim.item-revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual-anim {
    opacity: 0;
    transform: translateX(35px) scale(0.96);
    animation: heroVisualEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.35s;
}

@keyframes heroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroVisualEntrance {
    from {
        opacity: 0;
        transform: translateX(35px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-floating-pill {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 111, 109, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    animation: floatingPill 4s ease-in-out infinite;
}

@keyframes floatingPill {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

.scroll-reveal.fade-in-left.revealed {
    transform: translateX(0);
}

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

.scroll-reveal.fade-in-right.revealed {
    transform: translateX(0);
}

.scroll-reveal.fade-in-top {
    transform: translateY(-30px);
}

.scroll-reveal.fade-in-top.revealed {
    transform: translateY(0);
}

.scroll-reveal.zoom-in {
    transform: scale(0.92);
}

.scroll-reveal.zoom-in.revealed {
    transform: scale(1);
}

.scroll-reveal.delay-100 { transition-delay: 0.1s; }
.scroll-reveal.delay-150 { transition-delay: 0.15s; }
.scroll-reveal.delay-200 { transition-delay: 0.2s; }
.scroll-reveal.delay-250 { transition-delay: 0.25s; }
.scroll-reveal.delay-300 { transition-delay: 0.3s; }
.scroll-reveal.delay-350 { transition-delay: 0.35s; }
.scroll-reveal.delay-400 { transition-delay: 0.4s; }
.scroll-reveal.delay-500 { transition-delay: 0.5s; }

.pill-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Doctor / Leadership Section */
.doctors-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.doctor-profile-card {
    background: #ffffff;
    border: 1.5px solid rgba(42, 111, 109, 0.18);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.doctor-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-teal);
}

.doctor-avatar-circle {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    border: 3px solid var(--color-teal);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(42, 111, 109, 0.2);
}

.doctor-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-title-box h3 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.doctor-designation {
    color: var(--color-teal);
    font-weight: 750;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.doctor-credentials {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.doctor-bio {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.doctor-specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.specialty-tag {
    background: #f0fdfa;
    color: var(--color-teal);
    border: 1px solid rgba(42, 111, 109, 0.2);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

/* Services / Departments */
.services-section {
    padding: 6rem 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--color-teal);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(42, 111, 109, 0.1);
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
    background: var(--color-teal);
    color: #ffffff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.94rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Gallery Showcase */
.gallery-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 260px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: #ffffff;
}

.gallery-caption {
    font-size: 0.95rem;
    font-weight: 750;
}

/* Contact & Booking */
.contact-section {
    padding: 6rem 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-info-card {
    background: #f8fafc;
    border: 1.5px solid rgba(42, 111, 109, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.booking-form-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-indigo);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(42, 111, 109, 0.15);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: #0f172a;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .doctor-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .doctor-avatar-circle {
        margin: 0 auto;
    }
    
    .doctor-specialties-tags {
        justify-content: center;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .services-grid,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
    }
}
