.carousel-dots {
  display: none;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(2,6,23,0.25);
}
.carousel-dot.active { background: rgba(2,6,23,0.65); }

@media (max-width: 768px) {
  .carousel-dots { display: flex; }
}

.sd-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef7ff 0%, #eaf5ff 30%, #e9fbf4 70%, #e8faf3 100%);
}

.sd-wrapper > .specialities { background: linear-gradient(180deg, rgba(37,179,102,0.08) 0%, rgba(37,179,102,0.14) 100%); padding-top: 32px; padding-bottom: 40px; }
.sd-wrapper > .doctors { background: linear-gradient(120deg, rgba(0,64,151,0.95) 0%, rgba(0,64,151,0.88) 35%, rgba(37,179,102,0.88) 100%); padding-top: 60px; }

/* remove standalone section blends inside wrapper */
.sd-wrapper .blend-curve, .transition-band { display: none !important; }
/* Colorful Brand-Forward Theme Variables */
:root {
    /* Brand cores */
    --primary-color: #004097; /* Brand blue */
    --secondary-color: #25B366; /* Brand teal */
    --accent-color: #7c3aed; /* Accent purple for highlights */
    --text-color: #0f172a; /* Slate-900 */
    --light-text: #64748b; /* Slate-500 */
    --background: #ffffff;
    --light-bg: #f6fbff; /* Very light blue */
    --border-color: #e5e7eb;
    --shadow: rgba(2, 6, 23, 0.10);

    /* Vibrant gradients */
    --gradient-primary: linear-gradient(135deg, #004097 0%, #2563eb 50%, #60a5fa 100%);
    --gradient-secondary: linear-gradient(135deg, #25B366 0%, #10b981 50%, #34d399 100%);
    --gradient-hero: linear-gradient(135deg, #012a6b 0%, #004097 35%, #0c8e66 70%, #25B366 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-deep: linear-gradient(135deg, #0b1e3a 0%, #0d3b66 50%, #0f766e 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only - for accessibility and SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    min-width: 320px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(30,58,138,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.35);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 20px rgba(5,150,105,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.35);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    padding: 0.85rem 0;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.10);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.navbar.is-scrolled {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 30px rgba(17,24,39,0.12);
    border-bottom-color: rgba(17,24,39,0.10);
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,58,138,0.25), rgba(124,58,237,0.25), transparent);
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Fullscreen overlay menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.menu-overlay.active { display: block; }

.menu-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,64,151,0.94), rgba(37,179,102,0.94));
    backdrop-filter: blur(4px);
}

.menu-overlay-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: white;
}

.menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    display: grid;
    place-items: center;
}

.menu-links {
    list-style: none;
    display: grid;
    gap: 1rem;
    text-align: left;
    justify-items: start;
}
.menu-links li {
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding: 0.5rem 0;
}
.menu-links li:last-child { border-bottom: none; }

.menu-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem 0.25rem 1.5rem;
}
.menu-links a::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 0.9em;
}
.menu-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(199,249,225,0.9));
    transition: width 0.3s ease, left 0.3s ease;
}
.menu-links a:hover::after,
.menu-links a:focus::after {
    width: 80%;
    left: 10%;
}

.menu-quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hide quick actions on mobile/tablet per request */
@media (max-width: 1024px) {
  .menu-quick-actions { display: none; }
}

/* Smaller branding and menu text on mobile */
@media (max-width: 768px) {
  .nav-logo h2 { font-size: 1.1rem; }
  .menu-links a { font-size: 1.35rem; }
}

/* Floating Contact FAB + popup */
.contact-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 12px 24px rgba(0, 64, 151, 0.35);
    z-index: 1500;
    cursor: pointer;
}

.contact-fab i { font-size: 1.5rem; }

.contact-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 64, 151, 0.45);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 64, 151, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(0, 64, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 64, 151, 0); }
}

.contact-popup {
    position: fixed;
    right: 20px;
    bottom: 84px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 1500;
}

.contact-popup[hidden] { display: none; }

.contact-popup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.2);
    color: white;
}

.contact-meta span { color: rgba(255,255,255,0.9); font-size: 0.85rem; display: block; }
.contact-meta strong { color: white; }

.contact-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
}

.contact-close:hover { opacity: 1; }

.contact-popup-body { padding: 1rem; }

.contact-numbers { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    margin-bottom: 1rem; 
}

.contact-numbers .btn {
    margin: 0;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-quick-links { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.contact-quick-links a { 
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    background: rgba(37, 179, 102, 0.1);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.contact-quick-links a:hover { background: rgba(37, 179, 102, 0.2); }

/* Mobile menu behavior */
@media (max-width: 1024px) {
  .nav-menu { display: none !important; }
  .hamburger { display: flex !important; }
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
}

.hero--photo {
  background:
    /* Semi-transparent overlay */
    linear-gradient(to bottom, rgba(0,64,151,0.5) 0%, rgba(2,6,23,0.6) 100%),
    /* Gradient overlay for text area */
    radial-gradient(ellipse at center top, rgba(0,64,151,0.8) 0%, transparent 70%),
    url('images/hero-clinic.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero--photo .hero-image { display: none; }
.hero--photo .hero-container { grid-template-columns: 1fr; }

/* Add a text-specific background gradient for better readability */
.hero--photo .hero-content {
    position: relative;
    z-index: 2;
}

.hero--photo .hero-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -1rem;
    background: 
        radial-gradient(ellipse 120% 80% at center, rgba(0,64,151,0.4) 0%, transparent 70%),
        linear-gradient(135deg, rgba(2,6,23,0.3) 0%, transparent 50%);
    z-index: -1;
    border-radius: 20px;
}

/* Hero canvas and particles */
#hero-wave {
  position: absolute;
  inset: 0;
    width: 100%;
    height: 100%;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section-divider svg { display: block; width: 100%; height: auto; margin-top: -40px; }
/* Section blending: teal bridge with overlap to hide seams */
.blend-curve {
  position: relative;
  height: 72px;
  margin-top: -6px;   /* overlap previous section */
  margin-bottom: -6px;/* overlap next section */
  background:
    radial-gradient(130% 160% at 50% -10%, rgba(37,179,102,0.85) 0%, rgba(37,179,102,0.55) 35%, rgba(37,179,102,0.0) 70%),
    linear-gradient(180deg, #eef7ff 0%, rgba(0,64,151,0.96) 100%);
}

@media (max-width: 768px) {
  .blend-curve { height: 52px; margin-top: -4px; margin-bottom: -4px; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(600px 300px at 85% 20%, rgba(255,255,255,0.12), transparent 60%),
      radial-gradient(500px 260px at 15% 70%, rgba(255,255,255,0.10), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,0.05), transparent 60%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 120%;
    background:
      radial-gradient(600px 300px at 85% 20%, rgba(59,130,246,0.25), transparent 60%),
      radial-gradient(500px 260px at 15% 70%, rgba(124,58,237,0.22), transparent 60%),
      radial-gradient(420px 220px at 50% -10%, rgba(5,150,105,0.22), transparent 60%);
    filter: blur(8px);
    z-index: 1;
    animation: glowDrift 16s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(10px) scale(1.03); opacity: 0.95; }
  100% { transform: translateY(-6px) scale(1.02); opacity: 1; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.7),
        0 4px 12px rgba(0,0,0,0.4),
        0 0 20px rgba(0,64,151,0.3);
    margin-bottom: 1.2rem;
    font-size: 4rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.7),
        0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    transition: opacity 0.25s ease;
}

/* Hero Statistics */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    max-width: 520px;
}

.hero-stat {
    text-align: center;
    padding: 0.7rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.2rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
    line-height: 1.2;
}

/* Hero Stats Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 50px;
        min-height: 70vh;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 2.5rem;
        max-width: 100%;
    }
    
    .hero-stat {
        padding: 0.6rem;
    }
    
    .hero-stat-number {
        font-size: 1.4rem;
    }
    
    .hero-stat-label {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 50px;
        min-height: 75vh;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 3rem;
    }
    
    .hero-stat {
        padding: 0.6rem;
    }
    
    .hero-stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
}

/* Hero buttons removed - using floating contact FAB instead */

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(37,179,102,0.08) 0%, rgba(37,179,102,0.14) 100%);
    position: relative;
}

.statistics .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.statistics .section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.statistics .section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.stats-grid::-webkit-scrollbar {
    display: none;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 12px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    scroll-snap-align: start;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.18);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.15), rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.15)) padding-box,
                var(--gradient-secondary) border-box;
    border: 4px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: ringSpin 6s linear infinite reverse;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile optimization for stats - scrollable layout */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 180px);
        gap: 1.5rem;
        padding: 0 20px;
        margin: 0;
        max-width: none;
        overflow-x: auto;
        justify-content: start;
    }
    
    .stat-item {
        padding: 1.5rem 0.75rem;
        min-width: 160px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 160px);
    gap: 1rem;
        padding: 0 15px;
        justify-content: start;
    }
    
    .stat-item {
        min-width: 140px;
        padding: 1.25rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

.hero-badges { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-badges span {
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Contact header colors on dark background */
.contact .section-header h2 { background: none; -webkit-text-fill-color: initial; color: #ffffff; }
.contact .section-header p { color: #e2e8f0; }

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 1.25rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(30,58,138,0.25), rgba(124,58,237,0.25));
}

/* Ensure underline compliments dark contact theme */
.contact .section-header::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(199,249,225,0.65));
}

/* Specialities Section */
.specialities {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(37,179,102,0.08) 0%, rgba(37,179,102,0.14) 100%);
}

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


.speciality-card {
    background: white;
    padding: 1.5rem 1.75rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.speciality-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.20);
    border-color: var(--secondary-color);
}



.speciality-icon {
    width: 96px;
    height: 96px;
    position: relative;
    background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.15), rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.15)) padding-box,
                var(--gradient-primary) border-box;
    border: 4px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 16px 36px rgba(30,58,138,0.28);
    animation: ringSpin 6s linear infinite;
}

.speciality-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.speciality-card:hover .speciality-icon::after { transform: scale(1); }
.speciality-card:hover .speciality-icon i { transform: scale(1.06); }

.speciality-icon i {
    font-size: 2.2rem;
    color: white;
}

.speciality-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.speciality-card p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Doctors Section */
.doctors {
    padding: 80px 0;
    position: relative;
    background:
      radial-gradient(900px 480px at 15% 0%, rgba(255,255,255,0.06), transparent 60%),
      radial-gradient(900px 480px at 85% 100%, rgba(255,255,255,0.06), transparent 60%),
      linear-gradient(120deg, rgba(0,64,151,0.95) 0%, rgba(0,64,151,0.88) 35%, rgba(37,179,102,0.88) 100%);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Laptop layout: 3 cards per row and smaller icon area */
@media (min-width: 1024px) and (max-width: 1439px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .doctor-photo {
    height: 350px !important;
  }
  .doctor-photo i {
    font-size: 3.2rem;
  }
}

.doctor-card {
    background: rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Netflix-style horizontal scroll on mobile */
@media (max-width: 768px) {
  .stats-grid,
  .specialities-grid,
  .doctors-grid,
  .facilities-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .stat-item,
  .speciality-card,
  .doctor-card,
  .facility-item {
    scroll-snap-align: start;
  }
  
  .doctor-photo {
    height: 300px !important;
  }
}

.doctor-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.doctor-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.22); }
.doctor-card:hover::after { transform: translateX(120%); }

.doctor-photo {
    height: 400px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
      var(--gradient-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    display: block;
}

.doctor-photo:hover img {
    transform: scale(1.05);
}

.fallback-icon {
    display: none;
    font-size: 2.8rem;
    color: #ffffff;
    opacity: 0.95;
    animation: iconFloat 4s ease-in-out infinite;
}

/* Ensure fallback icon is properly hidden by default */
.doctor-photo .fallback-icon {
    display: none !important;
}

/* Show fallback icon only when image fails to load */
.doctor-photo img[style*="display: none"] + .fallback-icon {
    display: flex !important;
}



.doctor-photo i:not(.fallback-icon) {
    font-size: 2.8rem;
    color: #ffffff;
    opacity: 0.95;
    animation: iconFloat 4s ease-in-out infinite;
}

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

.doctor-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.doctor-info h4 {
    color: #c7f9e1;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.qualifications {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.profile {
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    flex: 1;
}

/* Ensure section header is readable on dark gradient */
.doctors .section-header h2 {
  background: none;
  -webkit-text-fill-color: initial;
  color: #ffffff;
}
.doctors .section-header p { color: #e2e8f0; }

/* Doctors underline to match Contact (white->mint) */
.doctors .section-header::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(199,249,225,0.65));
}

/* Facilities Section */
.facilities {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(37,179,102,0.08) 0%, rgba(37,179,102,0.14) 100%);
}
.df-wrapper {
  position: relative;
  overflow: hidden;
  background: transparent;
  margin-top: -1px; /* hide potential seam */
}

/* Ensure Facilities text readable near white region */
.df-wrapper .facilities .section-header h2 { background: none; -webkit-text-fill-color: initial; color: var(--primary-color); }
.sd-wrapper .specialities .section-header h2 { background: none; -webkit-text-fill-color: initial; color: var(--primary-color); }
.df-wrapper .facilities .section-header p { color: var(--light-text); }

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.facility-item {
    background: rgba(255,255,255,0.85);
    padding: 1.5rem 1.75rem 1.25rem;
    border-radius: 18px;
    box-shadow: 0 12px 30px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.18);
    border-color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.92);
}

.facility-icon {
    width: 88px;
    height: 88px;
    position: relative;
    background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.15), rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.15)) padding-box,
                var(--gradient-secondary) border-box;
    border: 4px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: ringSpin 6s linear infinite reverse;
}

.facility-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 60%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.facility-item:hover .facility-icon::after { transform: scale(1); }
.facility-item:hover .facility-icon i { transform: scale(1.06); }

.facility-icon i {
    font-size: 2rem;
    color: white;
}

.facility-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.facility-item p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: 80px 0;
    background:
      radial-gradient(900px 480px at 15% 0%, rgba(255,255,255,0.06), transparent 60%),
      radial-gradient(900px 480px at 85% 100%, rgba(255,255,255,0.06), transparent 60%),
      linear-gradient(120deg, rgba(0,64,151,0.95) 0%, rgba(0,64,151,0.88) 35%, rgba(37,179,102,0.88) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
    margin-bottom: 2rem;
}

.about-text p {
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 12px;
}

.about-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255,255,255,0.22);
    scroll-snap-align: start;
}

@media (max-width: 768px) {
  .about-gallery { grid-auto-columns: 88%; }
}

/* Appointments Section */
.appointments {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(37,179,102,0.08) 0%, rgba(37,179,102,0.14) 100%);
}

.appointments-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.appointment-cta h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}
.appointments .appointment-cta h3 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--primary-color);
}

.appointments .contact-numbers h4 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--primary-color);
}

/* Match Facilities heading style for Appointments */
.appointments .section-header h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--primary-color);
}

.appointment-cta p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.appointment-buttons {
    margin-bottom: 2rem;
}

.contact-numbers h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-item:hover {
    background: var(--border-color);
    transform: translateX(5px);
}

.whatsapp-item {
    background: var(--secondary-color);
    color: white;
}

.whatsapp-item:hover {
    background: var(--accent-color);
    color: white;
}

.whatsapp-item i {
    color: white;
}

.phone-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background:
      radial-gradient(900px 480px at 15% 0%, rgba(255,255,255,0.06), transparent 60%),
      radial-gradient(900px 480px at 85% 100%, rgba(255,255,255,0.06), transparent 60%),
      linear-gradient(120deg, rgba(0,64,151,0.95) 0%, rgba(0,64,151,0.88) 35%, rgba(37,179,102,0.88) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #ffffff;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-item i {
    color: #c7f9e1;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
}

.contact-item a {
    color: #e0f2fe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--accent-color);
}

.map-link i {
    font-size: 0.9rem;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.map-container-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-container {
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255,255,255,0.22);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.map-container.static .map-click-hint { display: inline-flex; }
.map-container.static:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }

.map-placeholder {
    text-align: center;
    color: #e2e8f0;
}

.map-placeholder i {
    font-size: 3rem;
    color: #c7f9e1;
    margin-bottom: 1rem;
}

.map-placeholder h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.map-click-hint {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.map-click-hint:hover { background: rgba(255,255,255,0.28); }

.map-click-hint i {
    font-size: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(37,179,102,0.08) 0%, rgba(37,179,102,0.14) 100%);
    color: var(--text-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 2rem;
    text-align: center;
    color: var(--light-text);
}

/* Responsive Design */

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-image img {
        max-width: 400px;
        max-height: 300px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .about-image img {
        max-width: 350px;
        max-height: 250px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-container {
        gap: 4rem;
        align-items: center;
    }

    .about-content {
        gap: 3rem;
        align-items: center;
    }

    .container {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .specialities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Defer to overlay menu; hide old slide-in nav */
    .hamburger { display: flex !important; }
    .nav-menu, .nav-menu.active { display: none !important; left: auto; }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        word-break: keep-all;
        hyphens: none;
    }
    
    .hero-content h1 br {
        display: block;
    }

    .hero-content p {
        text-align: center;
        padding: 0 1rem;
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .about-content,
    .appointments-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .specialities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .contact-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        word-break: keep-all;
        hyphens: none;
    }
    
    .hero-content h1 br {
        display: block;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-container {
        padding: 0 1.5rem;
        text-align: center;
    }

    .hero-content p {
        padding: 0 1rem;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .about,
    .specialities,
    .doctors,
    .facilities,
    .appointments,
    .contact {
        padding: 60px 0;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
    }
    
    .hero-content p {
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        max-width: 260px;
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

/* Laptop/Desktop Specific Styles */
@media (min-width: 1024px) {
    .hero-image img {
        max-width: 500px;
        max-height: 400px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .about-image img {
        max-width: 450px;
        max-height: 350px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .hero-container {
        gap: 6rem;
        align-items: center;
    }

    .about-content {
        gap: 5rem;
        align-items: center;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 4rem;
        line-height: 1.2;
    }
    
    .hero-content h1 br {
        display: none;
    }

    .hero-content p {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .specialities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 2.5rem;
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .hero-image img {
        max-width: 600px;
        max-height: 500px;
    }

    .about-image img {
        max-width: 550px;
        max-height: 450px;
    }

    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }
}

/* Accessibility */
.btn:focus,
.nav-menu a:focus,
.phone-item:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1200;
    transition: width 0.1s ease;
}

/* Loading animations */
.speciality-card,
.doctor-card,
.facility-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

/* 3D tilt hover */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt:hover { transform: rotateX(6deg) rotateY(-6deg) translateY(-6px); }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for grid items */
.speciality-card:nth-child(1) { animation-delay: 0.1s; }
.speciality-card:nth-child(2) { animation-delay: 0.2s; }
.speciality-card:nth-child(3) { animation-delay: 0.3s; }
.speciality-card:nth-child(4) { animation-delay: 0.4s; }
.speciality-card:nth-child(5) { animation-delay: 0.5s; }
.speciality-card:nth-child(6) { animation-delay: 0.6s; }
.speciality-card:nth-child(7) { animation-delay: 0.7s; }
.speciality-card:nth-child(8) { animation-delay: 0.8s; }
.speciality-card:nth-child(9) { animation-delay: 0.9s; }
.speciality-card:nth-child(10) { animation-delay: 1.0s; }
.speciality-card:nth-child(11) { animation-delay: 1.1s; }
.speciality-card:nth-child(12) { animation-delay: 1.2s; }

.doctor-card:nth-child(1) { animation-delay: 0.1s; }
.doctor-card:nth-child(2) { animation-delay: 0.2s; }
.doctor-card:nth-child(3) { animation-delay: 0.3s; }
.doctor-card:nth-child(4) { animation-delay: 0.4s; }
.doctor-card:nth-child(5) { animation-delay: 0.5s; }
.doctor-card:nth-child(6) { animation-delay: 0.6s; }
.doctor-card:nth-child(7) { animation-delay: 0.7s; }
.doctor-card:nth-child(8) { animation-delay: 0.8s; }
.doctor-card:nth-child(9) { animation-delay: 0.9s; }
.doctor-card:nth-child(10) { animation-delay: 1.0s; } 