/* ==========================================================================
   DESIGN SYSTEM - DR. ANUJ SINGH (OFFICIAL PORTAL)
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Custom Variables & Tokens --- */
:root {
  /* Colors */
  --bg-primary: #060913;
  --bg-secondary: #0d1527;
  --bg-card: #121b33;
  --bg-glass: rgba(13, 21, 39, 0.7);
  --bg-glass-hover: rgba(18, 30, 56, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-teal: #0ea5e9;
  --accent-teal-glow: rgba(14, 165, 233, 0.3);
  --accent-gold: #e2b857;
  --accent-gold-glow: rgba(226, 184, 87, 0.3);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(14, 165, 233, 0.15);
  --border-gold-glow: rgba(226, 184, 87, 0.2);
  
  --gradient-teal: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --gradient-gold: linear-gradient(135deg, #e2b857 0%, #c59b3f 100%);
  --gradient-dark: linear-gradient(180deg, #060913 0%, #0c1122 100%);
  --gradient-text: linear-gradient(135deg, #f8fafc 30%, #94a3b8 100%);
  --gradient-accent-text: linear-gradient(135deg, #0ea5e9 0%, #e2b857 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  
  /* Radius & Shadows */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-glow: 0 8px 30px rgba(14, 165, 233, 0.12);
  --shadow-gold-glow: 0 8px 30px rgba(226, 184, 87, 0.12);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  touch-action: manipulation;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Ambient glow backgrounds */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.orb-primary {
  width: clamp(200px, 35vw, 400px);
  height: clamp(200px, 35vw, 400px);
  background-color: var(--accent-teal);
  top: 10%;
  left: -150px;
  animation: orbBreath 8s ease-in-out infinite;
}

.orb-secondary {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background-color: var(--accent-gold);
  bottom: 20%;
  right: -200px;
  animation: orbBreath 10s ease-in-out infinite reverse;
}

/* Glassmorphism elements */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(14, 165, 233, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-teal);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(226, 184, 87, 0.05);
}

.btn-secondary:hover {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-gold-glow);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.header-scrolled {
  padding: 10px 0;
  background: rgba(6, 9, 19, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.3;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-teal);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 110;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 150px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f8fafc 10%, #94a3b8 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.hero-title span {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-background-ring {
  position: absolute;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(226, 184, 87, 0.03) 60%, transparent 100%);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  animation: rotate 60s linear infinite;
  z-index: 1;
}

.hero-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-teal);
}

.doctor-quick-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-avatar-placeholder {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.profile-name {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.profile-tag {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 12px;
}

.hospital-tag-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.hospital-mini-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hospital-mini-badge svg {
  color: var(--accent-gold);
}

/* ==========================================================================
   SPECIALTIES SECTION
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 32px;
}

.specialty-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.specialty-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 70%);
  z-index: 0;
}

.specialty-icon {
  width: 60px;
  height: 60px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent-teal);
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.specialty-card:hover .specialty-icon {
  background: var(--gradient-teal);
  color: var(--text-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.specialty-card:nth-child(2):hover .specialty-icon {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold-glow);
}

.specialty-card:nth-child(2) {
  border-color: rgba(226, 184, 87, 0.1);
}
.specialty-card:nth-child(2):hover {
  border-color: rgba(226, 184, 87, 0.3);
}

.specialty-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.specialty-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.specialty-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-teal);
  position: relative;
  z-index: 1;
}

.specialty-card:nth-child(2) .specialty-link {
  color: var(--accent-gold);
}

.specialty-link svg {
  transition: var(--transition-fast);
}

.specialty-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   ABOUT & CREDENTIAL TIMELINE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.about-intro-box {
  padding: 40px;
}

.experience-tag-large {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.exp-year {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.exp-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.about-intro-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-intro-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.credentials-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  width: 1px;
  height: calc(100% - 16px);
  background-color: var(--border-color);
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  color: var(--accent-gold);
}

.timeline-content {
  padding-top: 6px;
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   HOSPITAL AFFILIATIONS
   ========================================================================== */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
}

.hospital-card {
  padding: 40px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  align-items: start;
}

.hospital-logo-icon {
  width: 70px;
  height: 70px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
}

.hospital-card:nth-child(2) .hospital-logo-icon {
  color: var(--accent-gold);
  background: rgba(226, 184, 87, 0.03);
}

.hospital-name {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.hospital-loc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hospital-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.hospital-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-teal);
}

.hospital-card:nth-child(2) .hospital-link {
  color: var(--accent-gold);
}

/* ==========================================================================
   GEO FAQ SECTION
   ========================================================================== */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
}

.faq-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.faq-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-right: 20px;
}

.faq-trigger {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-trigger {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-content {
  padding: 0 32px 24px;
  color: var(--text-secondary);
  font-size: 0.975rem;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-content {
  border-top-color: var(--border-color);
}

/* ==========================================================================
   CONTACT & BOOKING FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card-box {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-details p, .info-details a {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-icon:hover {
  background: var(--gradient-teal);
  color: var(--text-primary);
  border-color: transparent;
  transform: translateY(-2px);
}

.booking-form-box {
  padding: 40px;
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-teal);
  background: rgba(14, 165, 233, 0.02);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #03060d;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-teal);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   ANIMATIONS & PULSE
   ========================================================================== */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbBreath {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.15); }
}

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

/* ==========================================================================
   PROCEDURES ROW (Chip Tags)
   ========================================================================== */
.procedures-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.procedure-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.procedure-chip:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   TECHNOLOGY SECTION
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
}

.tech-card {
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tech-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.tech-title {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.tech-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   TRAINING SECTION
   ========================================================================== */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.training-card {
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.training-flag {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}

.training-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.training-institution {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.training-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fellowship-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.fellowship-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: rgba(226, 184, 87, 0.06);
  border: 1px solid rgba(226, 184, 87, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.fellowship-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   PATIENT STORIES SECTION
   ========================================================================== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.story-card {
  padding: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.story-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.4;
  margin-bottom: -16px;
}

.story-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
  font-style: italic;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.story-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.story-name {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.story-procedure {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 500;
}

/* ==========================================================================
   PROFILE CREDENTIALS MINI
   ========================================================================== */
.profile-credentials-mini {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ==========================================================================
   DOCTOR IMAGES - RESPONSIVE
   ========================================================================== */
.doctor-image-hero {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
  border: 2px solid var(--border-glow);
}

.doctor-image-about {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(226, 184, 87, 0.15);
  border: 2px solid var(--border-gold-glow);
  margin: 24px auto;
  display: block;
}

.doctor-image-gallery {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.doctor-image-gallery:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.image-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.image-showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.image-showcase-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 9, 19, 0.8) 100%);
  pointer-events: none;
}

.image-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ==========================================================================
   VIDEO GALLERY SECTION
   ========================================================================== */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.video-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper-shorts {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 aspect ratio for shorts */
  height: 0;
  overflow: hidden;
  max-height: 500px;
}

.video-wrapper-shorts iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.video-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.video-featured {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.video-featured .video-wrapper {
  padding-bottom: 42.86%; /* 21:9 ultra-wide for featured */
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
}

.video-item {
  display: flex;
  flex-direction: column;
}

/* Image Showcase */
.image-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.image-showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-showcase-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}



/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1), transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger variants */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE DESIGN - ALL BREAKPOINTS
   ========================================================================== */

/* --- TABLET (1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-badge, .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns, .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .training-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  /* Video Gallery */
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-featured .video-wrapper {
    padding-bottom: 56.25%;
  }
  /* Doctor Images */
  .doctor-image-hero {
    max-width: 320px;
  }
  .doctor-image-about {
    max-width: 280px;
  }
  .image-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- SMALL TABLET / LARGE PHONE (768px) --- */
@media (max-width: 768px) {
  /* Layout */
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 56px 0;
  }
  .section-title-wrapper {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .section-tag {
    font-size: 0.8rem;
  }

  /* Navigation */
  .nav-wrapper {
    height: 68px;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: slideDown 0.25s ease forwards;
  }
  .nav-link {
    font-size: 1rem;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .mobile-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }
  .stat-number {
    font-size: 1.85rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .glow-background-ring {
    max-width: 320px;
  }
  .hero-card {
    max-width: 100%;
    padding: 24px;
  }

  /* Specialties */
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .specialty-card {
    padding: 28px;
  }
  .specialty-title {
    font-size: 1.3rem;
  }
  .procedure-chip {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .procedures-row {
    gap: 8px;
    margin-top: 28px;
  }

  /* Technology */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tech-card {
    padding: 24px;
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
  .tech-icon {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .tech-title {
    font-size: 1.05rem;
  }
  .tech-desc {
    font-size: 0.85rem;
  }

  /* Training */
  .training-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  .training-card {
    padding: 28px;
  }
  .fellowship-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .fellowship-badge {
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* About / Timeline */
  .about-intro-box {
    padding: 28px;
  }
  .exp-year {
    font-size: 3rem;
  }
  .about-intro-title {
    font-size: 1.6rem;
  }
  .about-intro-desc {
    font-size: 0.95rem;
  }
  .timeline-item {
    gap: 16px;
  }
  .timeline-item:not(:last-child)::before {
    left: 15px;
    top: 36px;
  }
  .timeline-marker {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .timeline-title {
    font-size: 1.05rem;
  }
  .timeline-desc {
    font-size: 0.9rem;
  }

  /* Hospitals */
  .hospitals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hospital-card {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hospital-logo-icon {
    width: 50px;
    height: 50px;
  }
  .hospital-name {
    font-size: 1.3rem;
  }
  .hospital-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hospital-link {
    min-height: 44px;
    display: inline-flex;
    padding: 8px 0;
  }

  /* Patient Stories */
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-card {
    padding: 24px;
  }
  .story-text {
    font-size: 0.9rem;
  }

  /* FAQ */
  .faq-header {
    padding: 18px 20px;
  }
  .faq-question {
    font-size: 0.95rem;
    padding-right: 12px;
  }
  .faq-content {
    padding: 0 20px 20px;
    font-size: 0.9rem;
  }

  /* Blogs section */
  #blogs .specialties-grid {
    grid-template-columns: 1fr;
  }

  /* Video Gallery - Mobile */
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .video-featured {
    grid-column: auto;
  }
  .video-featured .video-wrapper {
    padding-bottom: 56.25%;
  }
  .video-wrapper-shorts {
    padding-bottom: 100%;
    max-height: 400px;
  }
  .video-card {
    max-width: 100%;
  }

  /* Doctor Images - Mobile */
  .doctor-image-hero {
    max-width: 280px;
  }
  .doctor-image-about {
    max-width: 240px;
  }
  .image-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .doctor-image-gallery {
    height: 220px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-card-box {
    padding: 24px;
  }
  .booking-form-box {
    padding: 28px;
  }
  .form-title {
    font-size: 1.4rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-control {
    padding: 12px 16px;
    font-size: 16px !important; /* prevents iOS auto-zoom on focus */
    -webkit-text-size-adjust: 100%;
  }
  .booking-form {
    gap: 16px;
  }
  .btn {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 14px 24px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 28px;
  }
  .footer-bottom p:last-child {
    text-align: center;
    max-width: 100%;
  }

  /* Glow orbs - prevent horizontal scroll */
  .orb-primary {
    width: 250px;
    height: 250px;
    left: -100px;
  }
  .orb-secondary {
    width: 300px;
    height: 300px;
    right: -120px;
  }
}

/* --- SMALL PHONE (576px) --- */
@media (max-width: 576px) {
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 48px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-badge-text {
    font-size: 0.65rem;
  }
  .hero-badge {
    padding: 6px 12px;
  }
  .stat-item {
    align-items: center;
    text-align: center;
  }
  .hero-card {
    padding: 20px;
  }
  .profile-name {
    font-size: 1.15rem;
  }
  .profile-tag {
    font-size: 0.8rem;
  }
  .profile-credentials-mini {
    font-size: 0.8rem;
  }
  .hospital-mini-badge {
    font-size: 0.8rem;
  }
  .specialty-card {
    padding: 24px;
  }
  .about-intro-box {
    padding: 24px;
  }
  .exp-year {
    font-size: 2.5rem;
  }
  .about-intro-title {
    font-size: 1.4rem;
  }
  .booking-form-box {
    padding: 20px;
  }
  .form-title {
    font-size: 1.25rem;
  }
  .contact-card-box {
    padding: 20px;
    gap: 20px;
  }
  .info-icon {
    width: 36px;
    height: 36px;
  }
  .info-details p, .info-details a {
    font-size: 0.95rem;
  }
}

/* --- EXTRA SMALL PHONE (480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .hero-stats {
    gap: 16px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .glow-background-ring {
    max-width: 260px;
  }
  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
  .logo-title {
    font-size: 1.05rem;
  }
  .logo-sub {
    font-size: 0.58rem;
  }
  .faq-header {
    padding: 14px 16px;
  }
  .faq-question {
    font-size: 0.88rem;
  }
  .faq-content {
    padding: 0 16px 16px;
    font-size: 0.85rem;
  }
  .story-quote-mark {
    font-size: 3rem;
    margin-bottom: -12px;
  }
}

/* --- TINY SCREENS (360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
    min-height: 44px;
  }
  .specialty-card {
    padding: 20px;
  }
  .hospital-card {
    padding: 16px;
  }
}

/* --- PRINT STYLES --- */
@media print {
  .header, .glow-orb, .glow-background-ring, .mobile-toggle,
  .hero-visual, .btn, .booking-form-box, .social-links {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding: 20px 0;
  }
  .glass-panel {
    background: #f9f9f9;
    border: 1px solid #ddd;
    backdrop-filter: none;
  }
  a {
    color: #000;
  }
}

/* GOOGLE REVIEWS SECTION */
.google-carousel-wrapper { overflow: hidden; width: 100%; margin-top: 40px; position: relative; }
.google-carousel-track { display: flex; gap: 20px; width: max-content; animation: scrollMarquee 40s linear infinite; }
.google-carousel-wrapper:hover .google-carousel-track { animation-play-state: paused; }
.google-review-card { width: 350px; max-width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: flex; flex-direction: column; gap: 16px; transition: transform 0.3s ease; }
.google-review-card:hover { transform: translateY(-5px); border-color: var(--accent-teal); }
.google-review-header { display: flex; align-items: center; gap: 12px; }
.google-review-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.google-review-meta { display: flex; flex-direction: column; }
.google-reviewer-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.google-review-stars { color: #fbbc04; font-size: 1.1rem; line-height: 1; letter-spacing: 2px; }
.google-review-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; font-style: italic; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 10px)); } }
@media (max-width: 768px) { .google-review-card { width: 300px; padding: 20px; } }

/* FORM SELECT OPTION FIX FOR DARK MODE */
select.form-control option {
  background-color: #1a1e29;
  color: #f8fafc;
}

/* ==========================================================================
   GLOBAL PRELOADER & SKELETON STATES
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(226, 184, 87, 0.1);
  border-top-color: var(--accent-gold);
  animation: spin 1s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}
.preloader-circle::after {
  content: 'AS';
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-gold);
  animation: pulse 2s ease-in-out infinite;
  position: absolute;
}
@keyframes spin { 
  to { transform: rotate(360deg); } 
}

/* SKELETON LOADING */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
img.skeleton {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img.skeleton.loaded {
  opacity: 1;
  background: none;
  animation: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   MODERN BLOG / EDITORIAL SECTION
   ========================================================================== */
.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.blog-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.03), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-teal);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.blog-card:hover::before {
  opacity: 1;
}

.blog-card-featured {
  border-color: var(--border-gold-glow);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(226,184,87,0.03) 100%);
}
.blog-card-featured:hover {
  border-color: var(--accent-gold);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-meta-standard {
  color: var(--text-secondary);
}

.blog-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.blog-card-featured .blog-title {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.blog-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}
.blog-card-featured .blog-desc {
  font-size: 1.05rem;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.3s ease;
}
.blog-card-featured .blog-link {
  color: var(--accent-gold);
}
.blog-link svg {
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-link svg {
  transform: translateX(6px);
}
.blog-card-featured:hover .blog-link svg {
  transform: translateX(6px);
}
.blog-card:hover .blog-title {
  color: var(--accent-teal);
}
.blog-card-featured:hover .blog-title {
  color: var(--accent-gold);
}

@media (max-width: 1024px) {
  .blog-featured-grid, .blog-standard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-featured-grid, .blog-standard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-card {
    padding: 24px;
  }
  .blog-card-featured .blog-title {
    font-size: 1.5rem;
  }
  .blog-title {
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   FLOATING CHAT ASSISTANT WIDGET
   ========================================================================== */
.chat-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: var(--font-body);
}

.chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0d233a 100%);
  color: var(--text-primary);
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.25);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.4);
}

.chat-notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--accent-gold);
  border-radius: 50%;
  border: 2px solid #060913;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(0.9); opacity: 1; }
}

.chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  height: 520px;
  max-height: 80vh;
  background: rgba(10, 16, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(9, 14, 28, 0.9) 0%, rgba(6, 9, 19, 0.9) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.chat-header-status {
  font-size: 0.72rem;
  color: var(--accent-teal);
  font-weight: 500;
}

.chat-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.chat-close:hover {
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat Messages */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-msg {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.chat-msg.assistant {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-bubble-text {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.assistant .chat-bubble-text {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-radius: 0 16px 16px 16px;
  border: 1px solid var(--border-color);
}

.chat-msg.user .chat-bubble-text {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0d2a2f 100%);
  color: var(--text-primary);
  border-radius: 16px 0 16px 16px;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.chat-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-left: 4px;
}

.chat-msg.user .chat-msg-time {
  align-self: flex-end;
  margin-right: 4px;
}

/* Options / Buttons in Chat */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -4px;
  max-width: 85%;
  align-self: flex-start;
}

.chat-opt-btn {
  background: rgba(10, 16, 32, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.chat-opt-btn:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--accent-teal);
  color: var(--text-primary);
  transform: translateX(4px);
}

/* Massive Premium WhatsApp Button */
.chat-whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  cursor: pointer !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
  transition: all 0.3s ease !important;
  margin-top: 8px !important;
  animation: pulse-whatsapp 2s infinite;
  align-self: stretch;
}

.chat-whatsapp-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(6, 9, 19, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
}

.chat-input-area input:focus {
  border-color: var(--accent-teal);
  outline: none;
}

.chat-send {
  background: var(--accent-teal);
  border: none;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-send:hover {
  background: #0d9488;
  transform: scale(1.05);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE CHAT WIDGET
   ========================================================================== */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .chat-backdrop {
    display: block; /* ensure backdrop renders */
  }
  
  .chat-bubble.open-state-hide {
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
  }
  
  .chat-window {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 85% !important; /* Slide up 85% of screen */
    max-height: 85vh;
    border-radius: 24px 24px 0 0; /* rounded top edges only */
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  }
  
  .chat-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .chat-messages {
    padding: 16px;
  }

  .chat-msg {
    max-width: 85%; /* slightly wider on mobile for text reading */
  }

  .chat-options {
    max-width: 95%; /* wider buttons on mobile for easy finger tap */
    width: 100%;
  }

  .chat-opt-btn {
    padding: 12px 16px; /* larger tap targets */
    font-size: 0.9rem;
  }

  .chat-whatsapp-btn {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }
}