/* ============================================
   B N RHEUMATOLOGY ASSOCIATES
   Modern Medical Practice Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a5c6b;
  --primary-dark: #0f3d48;
  --primary-light: #2a8a9e;
  --accent: #c9a96e;
  --accent-light: #dfc594;
  --bg: #fafaf8;
  --bg-alt: #f0efeb;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-white {
  color: var(--white);
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1.5px;
  background: var(--primary);
}

.section-label-light {
  color: var(--accent-light);
}

.section-label-light::before {
  background: var(--accent-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 92, 107, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--text);
}

.logo-b {
  color: var(--accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-links li a {
  color: var(--text-light);
}

.navbar.scrolled .nav-links li a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg {
  background: linear-gradient(135deg, #0f3d48 0%, #1a5c6b 30%, #2a8a9e 60%, #1a5c6b 100%);
}

/* Abstract medical pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(201, 169, 110, 0.06) 0%, transparent 45%);
}

/* ---------- Hero Video Background ---------- */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 72, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-light);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  animation: scrollPulse 2s infinite;
}

/* ---------- About ---------- */
.about-section {
  background: var(--bg);
}

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

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.about-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.6);
  gap: 16px;
}

.about-img-placeholder p {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.accent-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.accent-text {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

.about-description {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 92, 107, 0.08);
  border-radius: 12px;
  color: var(--primary);
}

.about-feature strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Parallax Dividers ---------- */
.parallax-divider {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.divider-bg-1 {
  background: linear-gradient(135deg, #1a5c6b 0%, #0f3d48 50%, #1a5c6b 100%);
}

.divider-bg-2 {
  background: linear-gradient(135deg, #0f3d48 0%, #1a5c6b 40%, #2a8a9e 100%);
}

.divider-bg-3 {
  background: linear-gradient(135deg, #1a5c6b 0%, #0f3d48 60%, #2a8a9e 100%);
}

.divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 72, 0.6);
  z-index: 1;
}

.divider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.divider-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Conditions ---------- */
.conditions-section {
  background: var(--bg-alt);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.condition-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.condition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(26, 92, 107, 0.15);
}

.condition-icon {
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.condition-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ---------- Why Choose Us ---------- */
.why-section {
  min-height: auto;
  padding: 120px 0;
}

.why-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ---------- Video ---------- */
.video-section {
  background: var(--bg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 800px;
  margin: 0 auto;
}

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

/* ---------- New Patients ---------- */
.patients-section {
  background: var(--bg-alt);
}

.patients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.patient-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.patient-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.patient-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-alt);
}

.patient-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 92, 107, 0.08);
  border-radius: 12px;
  color: var(--primary);
}

.patient-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.patient-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.patient-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.patient-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Stats ---------- */
.stat-grid {
  display: flex;
  gap: 80px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- Referring ---------- */
.referring-section {
  background: var(--bg);
}

.referring-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.referring-description {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.referring-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.referring-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}

.referring-step strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.referring-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: sticky;
  top: 120px;
}

.cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.cta-phone {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--accent-light);
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.cta-box .btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.contact-icon {
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Floating Medical Shapes ---------- */
.floating-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.floating-shapes-light {
  z-index: 0;
}

.float-shape {
  position: absolute;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* --- Hero dark floating shapes --- */
.shape-dna {
  width: 60px;
  top: 10%;
  left: 5%;
  opacity: 1;
  animation: floatDrift1 28s infinite linear, floatRotate 40s infinite linear;
}

.shape-antibody {
  width: 55px;
  top: 15%;
  right: 8%;
  opacity: 1;
  animation: floatDrift2 32s infinite linear, floatSway 18s infinite ease-in-out;
}

.shape-joint {
  width: 70px;
  bottom: 20%;
  left: 12%;
  opacity: 1;
  animation: floatDrift3 26s infinite linear, floatSway 22s infinite ease-in-out;
}

.shape-cell {
  width: 60px;
  top: 55%;
  right: 15%;
  opacity: 1;
  animation: floatDrift4 30s infinite linear, floatRotate 35s infinite linear reverse;
}

.shape-molecule {
  width: 50px;
  bottom: 15%;
  right: 5%;
  opacity: 1;
  animation: floatDrift5 34s infinite linear, floatRotate 50s infinite linear;
}

.shape-cross {
  width: 40px;
  top: 35%;
  left: 20%;
  opacity: 1;
  animation: floatDrift6 24s infinite linear, floatSway 16s infinite ease-in-out;
}

.shape-dna2 {
  width: 40px;
  bottom: 30%;
  right: 25%;
  opacity: 1;
  animation: floatDrift7 36s infinite linear, floatSway 20s infinite ease-in-out;
}

.shape-spine {
  width: 30px;
  top: 20%;
  left: 40%;
  opacity: 1;
  animation: floatDrift8 30s infinite linear, floatRotateSlow 60s infinite linear;
}

/* --- Light section floating shapes --- */
.shape-mol-light {
  width: 70px;
  top: 8%;
  right: 6%;
  opacity: 1;
  animation: floatDrift2 30s infinite linear, floatRotateSlow 45s infinite linear;
}

.shape-cell-light {
  width: 60px;
  bottom: 12%;
  left: 5%;
  opacity: 1;
  animation: floatDrift4 28s infinite linear, floatSway 20s infinite ease-in-out;
}

.shape-cross-light {
  width: 45px;
  top: 50%;
  left: 85%;
  opacity: 1;
  animation: floatDrift6 32s infinite linear, floatRotate 55s infinite linear reverse;
}

.shape-antibody-light {
  width: 50px;
  top: 10%;
  left: 8%;
  opacity: 1;
  animation: floatDrift1 34s infinite linear, floatSway 18s infinite ease-in-out;
}

.shape-spine-light {
  width: 28px;
  bottom: 8%;
  right: 10%;
  opacity: 1;
  animation: floatDrift5 26s infinite linear, floatRotateSlow 50s infinite linear;
}

.shape-dna-light {
  width: 40px;
  top: 40%;
  right: 3%;
  opacity: 1;
  animation: floatDrift3 38s infinite linear, floatSway 22s infinite ease-in-out;
}

/* ---------- Float Keyframes ---------- */
@keyframes floatDrift1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(30px, -40px); }
  50%  { transform: translate(-20px, -80px); }
  75%  { transform: translate(40px, -40px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-40px, 30px); }
  50%  { transform: translate(20px, 60px); }
  75%  { transform: translate(-30px, 20px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift3 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(50px, 20px); }
  50%  { transform: translate(20px, -50px); }
  75%  { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift4 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-25px, -35px); }
  50%  { transform: translate(35px, -15px); }
  75%  { transform: translate(-15px, 25px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift5 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(20px, 50px); }
  50%  { transform: translate(-40px, 30px); }
  75%  { transform: translate(10px, -20px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift6 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-35px, -25px); }
  50%  { transform: translate(15px, -55px); }
  75%  { transform: translate(25px, -15px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift7 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(40px, -20px); }
  50%  { transform: translate(-10px, 40px); }
  75%  { transform: translate(-35px, 10px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatDrift8 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-20px, 45px); }
  50%  { transform: translate(30px, 20px); }
  75%  { transform: translate(10px, -30px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes floatRotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes floatSway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}

/* Hide floating shapes on small screens for performance */
@media (max-width: 768px) {
  .floating-shapes {
    display: none;
  }
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }

  .referring-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    position: static;
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li a {
    color: var(--text) !important;
    padding: 12px 16px;
    display: block;
    font-size: 1rem;
  }

  .nav-links li a:hover {
    background: var(--bg-alt) !important;
    color: var(--primary) !important;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .patients-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .conditions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-accent-box {
    right: 0;
    bottom: -16px;
  }
}
