/* 
   Özel Dent41 Ağız ve Diş Sağlığı Polikliniği 
   Design System & Premium CSS Stylesheet
*/

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

/* CSS Variables & Design Tokens */
:root {
  /* Color Palette */
  --primary-hue: 215;
  --primary-sat: 60%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), 15%); /* Deep Indigo Navy (#0A2540) */
  --primary-light: hsl(var(--primary-hue), var(--primary-sat), 25%);
  --primary-dark: hsl(var(--primary-hue), var(--primary-sat), 10%);
  
  --secondary-hue: 174;
  --secondary-sat: 75%;
  --secondary: hsl(var(--secondary-hue), var(--secondary-sat), 28%); /* Rich Mint Teal */
  --secondary-light: hsl(var(--secondary-hue), var(--secondary-sat), 38%);
  --secondary-dark: hsl(var(--secondary-hue), var(--secondary-sat), 20%);
  
  --accent-hue: 41;
  --accent-sat: 35%;
  --accent: hsl(var(--accent-hue), var(--accent-sat), 62%); /* Elegant Warm Brass */
  --accent-light: hsl(var(--accent-hue), var(--accent-sat), 75%);
  
  /* Neutral Colors */
  --text-dark: hsl(215, 40%, 12%);
  --text-muted: hsl(215, 16%, 44%);
  --bg-light: hsl(210, 25%, 98%);
  --bg-white: hsl(0, 0%, 100%);
  --bg-soft: hsl(210, 20%, 95%);
  --border-color: hsl(210, 16%, 92%);
  
  /* Alert/Status Colors */
  --success: hsl(145, 63%, 42%);
  --error: hsl(354, 70%, 54%);
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 76, 129, 0.05);
  --shadow-md: 0 10px 20px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 76, 129, 0.12);
  --shadow-accent: 0 8px 24px rgba(255, 183, 3, 0.25);
  
  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50%;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Dark Mode Tokens (Optional/Subtle UI Overrides) */
[data-theme="dark"] {
  --text-dark: hsl(210, 20%, 95%);
  --text-muted: hsl(208, 14%, 70%);
  --bg-light: hsl(210, 24%, 10%);
  --bg-white: hsl(210, 24%, 13%);
  --bg-soft: hsl(210, 24%, 16%);
  --border-color: hsl(210, 20%, 20%);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); position: relative; padding-bottom: 12px; margin-bottom: 2rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

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

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

/* Section Title Decorator */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 2px;
}
.section-title.center {
  text-align: center;
}
.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Glassmorphism Class Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-dark) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e09f00 100%);
  color: var(--text-dark);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 183, 3, 0.4);
}

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

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 30px; }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
}

.top-bar {
  background-color: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  font-size: 0.82rem;
  width: 100%;
  position: relative;
  z-index: 100;
}

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

.top-bar-left {
  display: flex;
  align-items: center;
}

.top-bar-hours {
  background: rgba(126, 196, 230, 0.1);
  border: 1px solid rgba(126, 196, 230, 0.22);
  color: #7ec4e6 !important; /* Standout brand blue */
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-hours i {
  color: #7ec4e6 !important;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.top-bar-link i {
  color: var(--secondary-light); /* Rich mint-teal icons */
}

.top-bar-link:hover {
  color: #7ec4e6;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 10px 0;
  }
  .top-bar-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .top-bar-right {
    justify-content: center;
    gap: 15px;
  }
  .top-bar-hours {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
  .top-bar-link {
    font-size: 0.75rem;
  }
}

.nav-bar {
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled .nav-bar {
  height: 70px;
  box-shadow: var(--shadow-md);
}

header.scrolled {
  transform: translateY(-36px); /* Hide top bar on scroll */
}
@media (max-width: 768px) {
  header.scrolled {
    transform: translateY(0);
  }
}

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

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

.logo-tooth-svg {
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.logo:hover .logo-tooth-svg {
  transform: scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.logo-top-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  margin-bottom: -1px;
}

.logo-middle-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: #7ec4e6;
  font-family: var(--font-heading);
  margin: 1px 0;
}

.logo-bottom-text {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.1px;
}

/* Footer / Light version of Logo */
.logo-light .logo-top-text {
  color: rgba(255, 255, 255, 0.9);
}
.logo-light .logo-bottom-text {
  color: rgba(255, 255, 255, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-fast);
  transform: translateX(-50%); /* Slide out from center */
}

.nav-links a:hover {
  color: var(--secondary);
}

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

.nav-links a.active {
  color: var(--secondary);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.15rem;
  }
  
  .hamburger {
    display: block;
    z-index: 100;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background-color: var(--bg-soft);
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 100%;
}

.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: rotate(1.5deg);
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 420px;
}

.hero-image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-image-wrapper img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Double-frame offset effect */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.hero-floating-card {
  position: absolute;
  bottom: 30px;
  left: -40px;
  background: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  max-width: 220px;
  animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.hero-floating-card i {
  color: var(--secondary);
  font-size: 1.5rem;
}

.hero-floating-card p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 150, 0.1);
  color: var(--secondary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-content h1 {
  margin-bottom: 24px;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap; /* Prevent horizontal scrollbars by wrapping buttons on tablet/small screens */
}
@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
}
.stat-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-col {
    margin-top: 20px;
  }
  .hero-floating-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin: 20px auto 0 auto;
    max-width: 100%;
  }
}

/* Feature Bento Grid (Values) */
.features-grid {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card.col-2 {
  grid-column: span 2;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.feature-card.col-2 .feature-text {
  flex: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.feature-card.col-2 .feature-icon {
  margin-bottom: 0;
}

/* Call-to-action Bento Card */
.feature-cta-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.feature-cta-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-cta-card h3 {
  color: var(--bg-white);
  margin-bottom: 12px;
}

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

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }
  .feature-card.col-2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card.col-2 {
    grid-column: span 1;
    flex-direction: column;
    gap: 0;
  }
  .feature-card.col-2 .feature-icon {
    margin-bottom: 24px;
  }
}

/* Featured Treatment Card (Breaks Zigzag) */
.treatment-featured-card {
  margin-bottom: 80px;
  padding: 50px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.treatment-featured-content {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.treatment-featured-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 160px;
  border-bottom-left-radius: 160px;
  border-left: 4px solid var(--secondary);
}

@media (max-width: 992px) {
  .treatment-featured-card {
    padding: 30px;
  }
  .treatment-featured-content {
    max-width: 100%;
  }
  .treatment-featured-image {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 30px;
    border-radius: var(--radius-md);
    border-left: none;
    border-top: 4px solid var(--secondary);
  }
}

/* Treatment Cards */
.treatment-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.treatment-img {
  height: 200px;
  overflow: hidden;
}
.treatment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.treatment-card:hover .treatment-img img {
  transform: scale(1.1);
}

.treatment-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.treatment-info h3 {
  margin-bottom: 12px;
}
.treatment-info p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.treatment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--secondary);
}
.treatment-link:hover {
  color: var(--primary);
}

/* Interactive Before/After Slider */
.ba-section {
  background-color: var(--bg-soft);
}

.ba-slider-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.ba-image-before {
  z-index: 1;
}

.ba-image-after {
  z-index: 2;
  width: 50%; /* Init at half */
  overflow: hidden;
}
.ba-image-after img {
  /* Set explicit width to prevent image compression during overflow sizing */
  width: 650px; 
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--bg-white);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: var(--bg-white);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--bg-white);
  pointer-events: none;
}

.ba-label {
  position: absolute;
  bottom: 20px;
  background: rgba(15, 76, 129, 0.85);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 4;
}
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }

/* Testimonials / Google Reviews Slider */
.reviews-slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.review-card {
  flex: 0 0 100%;
  padding: 32px;
  margin: 0 15px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: calc(100% - 30px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background-color: var(--bg-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.reviewer-name h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
}
.reviewer-name span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.review-rating {
  color: var(--accent);
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
}

.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-fast);
}
.reviews-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* Appointment Form Wrapper */
.appointment-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  overflow: hidden;
}
.appointment-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(0, 168, 150, 0.1);
  border-radius: var(--radius-round);
  pointer-events: none;
}

.appointment-section h2, .appointment-section p {
  color: var(--bg-white);
}

.appointment-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.4);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}
.form-checkbox input {
  margin-top: 4px;
}
.form-checkbox label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}
.form-checkbox label a {
  color: var(--secondary-light);
  text-decoration: underline;
}

/* Modals (Doctor Bio) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 76, 129, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-white);
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}
.modal-close:hover {
  background: var(--error);
  color: var(--bg-white);
}

/* Doctor Cards */
.doctor-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.doctor-img {
  height: 280px;
  overflow: hidden;
}
.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  padding: 24px;
  text-align: center;
}
.doctor-info h3 {
  margin-bottom: 4px;
}
.doctor-info p {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Accordion for KVKK and FAQs */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background-color: var(--bg-light);
}

.accordion-body {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 4px solid var(--secondary);
}

footer h3 {
  color: var(--bg-white);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 6px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-item {
  display: flex;
  gap: 12px;
}
.footer-contact-icon {
  color: var(--secondary-light);
  font-size: 1.1rem;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* Mobile Header Layout Polish (Zero Overlaps) */
  .top-bar {
    display: block !important;
    padding: 6px 0 !important;
  }
  
  .top-bar-container {
    justify-content: center !important;
    flex-direction: row !important;
    gap: 0 !important;
  }
  
  .top-bar-left {
    justify-content: center !important;
    width: 100% !important;
  }
  
  .top-bar-right {
    display: none !important; /* Hide phone & email on mobile top-bar to keep it on a single thin line */
  }
  
  .top-bar-hours {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
  }
  
  .nav-bar {
    height: 65px !important;
  }
  
  .logo-tooth-svg {
    width: 34px !important;
    height: 34px !important;
  }
  
  .logo-middle-text {
    font-size: 1.3rem !important;
  }
  
  .logo-bottom-text {
    display: none !important; /* Hide long slogan on mobile to keep navbar compact */
  }
  
  .insta-header-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    margin-right: 8px !important;
  }
  
  /* Hide primary button from header to make space for logo & hamburger menu */
  .d-none-mobile {
    display: none !important;
  }
  
  /* Reduce header top padding for inner pages hero to look clean */
  .section-padding.inner-hero,
  section.section-padding[style*="padding-top: 180px"] {
    padding-top: 130px !important; /* Adjusted for both top-bar and nav-bar combined height */
  }
}

/* Page Transition Loader Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #061527 100%);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  pointer-events: all;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition-overlay.active {
  transform: translateY(-100%);
  pointer-events: none;
}

.page-transition-overlay.exit {
  transform: translateY(0);
  pointer-events: all;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.page-transition-overlay.active .loader-content {
  opacity: 0;
}

.loader-logo {
  animation: pulse-glow 1.5s infinite ease-in-out;
}

.loader-text {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 5px rgba(126, 196, 230, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(126, 196, 230, 0.8));
  }
}



/* Stunning Glowing Dark Navy Hours Card on Homepage Hero */
.hours-floating-card {
  bottom: auto !important;
  left: auto !important;
  top: -35px;
  right: -45px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0c2b4a 100%) !important; /* Solid premium dark navy */
  border: 2px solid var(--secondary-light) !important; /* Strong glowing brand blue border */
  box-shadow: 
    0 20px 40px rgba(10, 37, 64, 0.45), 
    0 0 20px rgba(126, 196, 230, 0.3) !important; /* Strong glowing aura */
  border-radius: var(--radius-lg) !important;
  animation: heroFloatReverse 6s ease-in-out infinite; /* Alternating float animation */
  max-width: 280px !important;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  border-left: 2px solid var(--secondary-light) !important;
  position: absolute;
}

/* Circular Icon Container matching the screenshots */
.hours-floating-card i {
  background-color: var(--secondary) !important; /* Brand teal/mint color */
  color: var(--bg-white) !important; /* White clock icon */
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 10px rgba(0, 168, 150, 0.3) !important;
  filter: none !important; /* Reset drop shadow */
}

.hours-floating-card strong {
  color: var(--bg-white) !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
}

/* Pulsing active status dot next to title */
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #00a896; /* Mint green */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #00a896;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.7); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 168, 150, 0); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 168, 150, 0); }
}

.hours-floating-card p {
  color: rgba(255, 255, 255, 0.95) !important; /* Bright text */
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin-bottom: 0 !important;
}

/* Custom highlight class for time numbers */
.hours-floating-card .time-highlight {
  color: var(--secondary-light) !important; /* bright cyan-blue */
  font-weight: 700 !important;
}

@keyframes heroFloatReverse {
  0% { transform: translateY(0); }
  50% { transform: translateY(8px); } /* Alternate float direction */
  100% { transform: translateY(0); }
}

@media (max-width: 992px) {
  .hours-floating-card {
    position: relative;
    top: 0 !important;
    right: 0 !important;
    margin: 20px auto 0 auto !important;
    max-width: 100% !important;
  }
}

/* macOS-style Animated Dock */
.animated-dock-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: rgba(10, 37, 64, 0.78) !important; /* Premium semi-transparent dark navy */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 10px 16px;
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(126, 196, 230, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
  height: 64px; /* fixed height container */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animated-dock-item {
  position: relative;
  width: 40px; /* default base width */
  height: 40px; /* default base height */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.animated-dock-item:hover {
  background: rgba(126, 196, 230, 0.2);
  border-color: rgba(126, 196, 230, 0.4);
}

/* Custom style for WhatsApp item */
.animated-dock-item.whatsapp-dock-item {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.25);
}
.animated-dock-item.whatsapp-dock-item:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.45);
}

.animated-dock-item a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 50%;
}

.animated-dock-item i {
  font-size: 1.15rem;
  transition: transform 0.1s;
}

/* Tooltip Labels */
.animated-dock-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(10, 37, 64, 0.95);
  color: var(--bg-white);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.animated-dock-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Page transition overlay animation state adjustment */
#page-overlay.exit ~ .animated-dock-container,
#page-overlay:not(.active) ~ .animated-dock-container {
  transform: translateX(-50%) translateY(120px) scale(0.8);
  opacity: 0;
}

@media (max-width: 768px) {
  .animated-dock-container {
    bottom: 16px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    height: 56px;
  }
  .animated-dock-item {
    width: 34px; /* smaller base size on mobile */
    height: 34px;
  }
  .animated-dock-item i {
    font-size: 1rem;
  }
  /* Hide tooltips on mobile since there is no hover */
  .animated-dock-item::after {
    display: none !important;
  }
}

/* ==========================================================================
   GENERAL BEAUTIFICATION & MICRO-ANIMATIONS SYSTEM
   ========================================================================== */

/* Centered Link Hover Underline Slide Effect */
.nav-links a::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Premium Call to Action Button Shimmer Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: buttonShimmer 5.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes buttonShimmer {
  0% { left: -150%; }
  25% { left: 150%; }
  100% { left: 150%; }
}

/* Premium Lift & Glow Hover Effects on Cards */
.feature-card, .doctor-card, .treatment-card, .glass-panel {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}

.feature-card:hover, .doctor-card:hover, .treatment-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 
    0 25px 50px rgba(10, 37, 64, 0.15), 
    0 0 20px rgba(126, 196, 230, 0.12) !important;
  border-color: rgba(126, 196, 230, 0.35) !important;
}

/* Scroll Reveal Initial Animation States (triggered via main.js + motion.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Custom staggered delays for clean reveal pacing */
[data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal-delay="400"] { transition-delay: 400ms; }
[data-reveal-delay="500"] { transition-delay: 500ms; }

/* Instagram Header Button */
.insta-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(126, 196, 230, 0.1);
  border: 1px solid rgba(126, 196, 230, 0.25);
  color: var(--secondary-light);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  margin-right: 12px;
  flex-shrink: 0;
}

.insta-header-btn:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Instagram brand gradient */
  border-color: transparent;
  color: var(--bg-white) !important;
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .insta-header-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-right: 8px;
  }
}

/* Treatment Page Premium Image Zoom Hover Animation */
.treatment-page-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 280px;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
  will-change: transform;
  border: 1px solid var(--border-color);
}

.treatment-page-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effects */
.treatment-page-img-wrapper:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(126, 196, 230, 0.4) !important;
  box-shadow: 
    0 22px 40px rgba(10, 37, 64, 0.14), 
    0 0 15px rgba(126, 196, 230, 0.15) !important;
}

.treatment-page-img-wrapper:hover img {
  transform: scale(1.06) !important; /* Soft, elegant zoom */
}

/* Also for the featured card image in treatments.html */
.treatment-featured-image-wrapper {
  overflow: hidden;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.treatment-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.treatment-featured-card:hover .treatment-featured-image {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .treatment-featured-image-wrapper {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    height: 300px;
  }
}

/* ==========================================================================
   21st.dev PREMIUM DESIGN ENGINEER COMPONENTS
   ========================================================================== */

/* Spotlight Cards (Dynamic Hover Gradient Overlay) */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(126, 196, 230, 0.08),
    transparent 80%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Text Blur Reveal Transition Override */
[data-reveal].reveal-blur {
  filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
  transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-reveal].reveal-blur.revealed {
  filter: blur(0) !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Metallic Text Shimmer Effect */
.shimmer-text {
  background: linear-gradient(
    120deg,
    var(--secondary-light) 30%,
    #ffffff 50%,
    var(--secondary-light) 70%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmerAnimation 6s linear infinite;
  display: inline-block;
}

@keyframes textShimmerAnimation {
  0% { background-position: 100% center; }
  35% { background-position: -100% center; }
  100% { background-position: -100% center; }
}

/* Ambient Aurora Backdrop Waves */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22; /* Soft visual blending */
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
  animation: auroraFloat 22s infinite ease-in-out alternate;
  will-change: transform;
}

.aurora-glow-1 {
  top: -15%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(126, 196, 230, 0.7) 0%, transparent 70%);
  animation-duration: 22s;
}

.aurora-glow-2 {
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.45) 0%, transparent 70%);
  animation-duration: 28s;
}

@keyframes auroraFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, 12%, 0) scale(1.15); }
  100% { transform: translate3d(-6%, -10%, 0) scale(0.9); }
}

/* Ensure parent heroes are relative to fit absolute aurora */
.hero, .inner-hero {
  position: relative;
}

/* 21st.dev Premium Horizontal Expanding Image Accordion */
.treatment-accordion {
  display: flex;
  width: 100%;
  height: 480px;
  gap: 16px;
  margin-top: 40px;
}

.accordion-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  will-change: flex;
}

/* Expanded active panel */
.accordion-panel.active {
  flex: 2.6;
  border-color: rgba(126, 196, 230, 0.35);
  box-shadow: 
    0 25px 50px rgba(10, 37, 64, 0.18), 
    0 0 25px rgba(126, 196, 230, 0.15);
}

/* Image Background */
.panel-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.panel-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0.1) 0%,
    rgba(10, 37, 64, 0.5) 50%,
    rgba(10, 37, 64, 0.9) 100%
  );
  transition: opacity 0.5s ease;
  z-index: 2;
}

.accordion-panel:hover .panel-background {
  transform: scale(1.04);
}

.accordion-panel.active .panel-background::after {
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0.05) 0%,
    rgba(10, 37, 64, 0.45) 45%,
    rgba(10, 37, 64, 0.95) 100%
  );
}

/* Content overlay inside panels */
.panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 3;
  color: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
}

.panel-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(126, 196, 230, 0.2);
  border: 1px solid rgba(126, 196, 230, 0.3);
  color: #7ec4e6;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.5s ease 0.1s;
}

.panel-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 8px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 420px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.6s ease 0.15s;
}

.panel-content .btn {
  opacity: 0;
  transform: translateY(20px);
  width: fit-content;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease 0.2s;
  background: var(--bg-white);
  color: var(--primary) !important;
  border: none;
}

.panel-content .btn:hover {
  background: var(--secondary) !important;
  color: var(--bg-white) !important;
}

/* Active panel child visible transitions */
.accordion-panel.active .panel-tag {
  transform: translateY(0);
  opacity: 1;
}

.accordion-panel.active .panel-content p {
  transform: translateY(0);
  opacity: 1;
}

.accordion-panel.active .panel-content .btn {
  transform: translateY(0);
  opacity: 1;
}

/* Vertical alignment of titles on collapsed panels */
.accordion-panel:not(.active) .panel-content {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.accordion-panel:not(.active) .panel-content h3 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg) translateY(0);
  font-size: 1.35rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Responsive Layout for Mobile/Tablets */
@media (max-width: 992px) {
  .treatment-accordion {
    height: auto;
    flex-direction: column;
    gap: 16px;
  }
  
  .accordion-panel {
    height: 120px;
    flex: none !important;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  }
  
  .accordion-panel.active {
    height: 280px;
  }
  
  .accordion-panel:not(.active) .panel-content {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
  }
  
  .accordion-panel:not(.active) .panel-content h3 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
    font-size: 1.25rem;
    white-space: normal;
    margin-bottom: 0;
  }
  
  .panel-tag {
     margin-bottom: 4px;
  }
  
  .panel-content p {
    margin-bottom: 12px;
    font-size: 0.82rem;
    max-width: 100%;
  }
  
  .panel-content .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   AI INTAKE ASSISTANT & WORKFLOW AUTOMATION SYSTEM
   ========================================================================== */

/* Step Wizards */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 480px;
}

.wizard-step {
  display: none;
  animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.active {
  display: block;
}

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

/* Symptom Grid Layout */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.symptom-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  cursor: pointer;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.symptom-card i {
  font-size: 2.2rem;
  color: var(--primary-light);
  transition: transform 0.4s ease, color 0.4s ease;
}

.symptom-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.symptom-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Selected Symptom Card */
.symptom-card.selected {
  border-color: var(--secondary) !important;
  background: rgba(126, 196, 230, 0.05);
  box-shadow: 
    0 15px 30px rgba(10, 37, 64, 0.06), 
    0 0 15px rgba(126, 196, 230, 0.15) !important;
  transform: translateY(-4px) scale(1.02);
}

.symptom-card.selected i {
  color: var(--secondary);
  transform: scale(1.1);
}

/* AI Processing Animation */
.ai-processing-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-pulse-logo {
  animation: aiPulse 1.8s infinite ease-in-out;
  color: var(--secondary);
  margin-bottom: 24px;
}

@keyframes aiPulse {
  0% { transform: scale(0.9); opacity: 0.5; filter: drop-shadow(0 0 0 rgba(126, 196, 230, 0)); }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 15px rgba(126, 196, 230, 0.4)); }
  100% { transform: scale(0.9); opacity: 0.5; filter: drop-shadow(0 0 0 rgba(126, 196, 230, 0)); }
}

.progress-track {
  width: 100%;
  max-width: 500px;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.status-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
  height: 20px;
}

/* AI Report Bento Box */
.ai-report-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .ai-report-grid {
    grid-template-columns: 1fr;
  }
}

.report-bento-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.report-bento-card.highlight {
  border-color: rgba(126, 196, 230, 0.35);
  box-shadow: 
    0 15px 30px rgba(10, 37, 64, 0.05),
    0 0 15px rgba(126, 196, 230, 0.08);
}

.report-section {
  margin-bottom: 24px;
}

.report-section:last-child {
  margin-bottom: 0;
}

.report-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}

.report-section p.value {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0;
}

.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(126, 196, 230, 0.1);
  border: 1px solid rgba(126, 196, 230, 0.2);
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* CRM Workflow Logs Terminal Widget */
.terminal-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #06121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
}

.terminal-header {
  background: #0d1e30;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 20px;
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.log-line {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(6px);
  animation: logLineFadeIn 0.35s ease forwards;
}

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

.log-time {
  color: rgba(255, 255, 255, 0.3);
  margin-right: 10px;
}

.log-prefix {
  font-weight: bold;
}

.prefix-crm { color: #7ec4e6; }
.prefix-sms { color: #f1c40f; }
.prefix-calendar { color: #2ecc71; }
.prefix-system { color: #e74c3c; }

.log-text {
  color: #ffffff;
}

.quick-prompt-tag:hover {
  border-color: var(--secondary) !important;
  color: var(--secondary-dark) !important;
  background: rgba(126, 196, 230, 0.05) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126, 196, 230, 0.1);
}

.ai-input-wrapper:focus-within {
  border-color: var(--secondary) !important;
  box-shadow: 
    0 10px 25px rgba(10, 37, 64, 0.05),
    0 0 15px rgba(126, 196, 230, 0.15) !important;
}

/* ==========================================================================
   ACETERNITY 3D PERSPECTIVE CARD COMPONENT
   ========================================================================== */
.treatments-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.three-d-card-wrapper {
  perspective: 1000px;
  width: 100%;
}

.three-d-card-body {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.three-d-card-wrapper:hover .three-d-card-body {
  box-shadow: 0 25px 50px rgba(126, 196, 230, 0.25), 0 0 20px rgba(10, 37, 64, 0.08);
  border-color: var(--secondary);
}

/* Depth items */
.card-item-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-dark);
  background: rgba(126, 196, 230, 0.12);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

.card-item-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  margin-bottom: 6px;
}

.card-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

.card-item-img-box {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  transform-style: preserve-3d;
}

.card-item-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s ease;
}

.three-d-card-wrapper:hover .card-item-img-box img {
  scale: 1.05;
}

.card-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

/* On hover, 3D translation out towards the viewer */
.three-d-card-wrapper:hover .card-item-tag {
  transform: translateZ(40px);
}

.three-d-card-wrapper:hover .card-item-title {
  transform: translateZ(50px);
}

.three-d-card-wrapper:hover .card-item-desc {
  transform: translateZ(60px);
}

.three-d-card-wrapper:hover .card-item-img-box {
  transform: translateZ(90px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

.three-d-card-wrapper:hover .card-item-footer {
  transform: translateZ(40px);
}
