:root {
  /* ===========================================
     COLOR PALETTE - DO NOT MODIFY
     =========================================== */
  --bg: #f7f8fb;
  --bg-deep: #0c1729;
  --text: #0e1a2b;
  --text-muted: rgba(14, 26, 43, 0.65);
  --accent: #c6a766;
  --accent-soft: rgba(198, 167, 102, 0.1);
  --accent-hover: rgba(198, 167, 102, 0.15);
  --surface: #ffffff;
  --border: rgba(14, 26, 43, 0.08);
  --border-hover: rgba(198, 167, 102, 0.3);
  
  /* ===========================================
     SPACING SCALE (4px base)
     =========================================== */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  --space-32: 8rem;    /* 128px */
  
  /* ===========================================
     TYPOGRAPHY
     =========================================== */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-size-xs: 0.72rem;
  --font-size-sm: 0.85rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.15rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --line-height-tight: 1.1;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* ===========================================
     BORDER RADIUS
     =========================================== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* ===========================================
     SHADOWS
     =========================================== */
  --shadow-sm: 0 2px 8px rgba(12, 23, 41, 0.04);
  --shadow-md: 0 8px 24px rgba(12, 23, 41, 0.06);
  --shadow-soft: 0 22px 45px rgba(12, 23, 41, 0.08);
  --shadow-hover: 0 24px 55px rgba(12, 23, 41, 0.12);
  --shadow-accent: 0 12px 30px rgba(198, 167, 102, 0.25);
  --shadow-accent-hover: 0 16px 40px rgba(198, 167, 102, 0.4);
  
  /* ===========================================
     TRANSITIONS
     =========================================== */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
  --transition: all 0.35s var(--ease-out);
  --transition-fast: all 0.2s var(--ease-out);
  --transition-smooth: all 0.5s var(--ease-bounce);
  
  /* ===========================================
     Z-INDEX SCALE
     =========================================== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-loader: 9999;
  
  /* ===========================================
     LAYOUT
     =========================================== */
  --container-max: 1400px;
  --content-max: 1100px;
  --header-height: 80px;
  --section-padding: clamp(80px, 10vw, 120px);
  --gutter: clamp(4vw, 7vw, 8vw);
  
  scroll-behavior: smooth;
}

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

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(198, 167, 102, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(198, 167, 102, 0.6);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-5deg) scale(0.95);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

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

@keyframes bounceFade {
  0% {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

@keyframes borderGlow {
  0%,
  100% {
    border-color: rgba(198, 167, 102, 0.3);
    box-shadow: 0 0 10px rgba(198, 167, 102, 0.1);
  }
  50% {
    border-color: rgba(198, 167, 102, 0.6);
    box-shadow: 0 0 25px rgba(198, 167, 102, 0.3);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  animation: fadeIn 0.6s var(--ease-out);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

input,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  list-style: none;
}

/* ===========================================
   LAYOUT UTILITIES
   =========================================== */
.page-wrapper {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper > main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.content-narrow {
  max-width: var(--content-max);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 7vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(12, 23, 41, 0.92),
    rgba(19, 35, 59, 0.7)
  );
  isolation: isolate;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(17, 30, 52, 0.95) 0%,
    rgba(12, 24, 45, 0.8) 45%,
    rgba(12, 23, 41, 0.6) 100%
  );
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(198, 167, 102, 0.25),
    transparent 50%
  );
  z-index: -1;
}

.top-nav {
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(198, 167, 102, 0.5);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(198, 167, 102, 0.4),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}

.brand:hover .brand-mark {
  transform: rotate(360deg) scale(1.1);
  border-color: var(--accent);
}

.brand:hover .brand-mark::before {
  opacity: 1;
  animation: shimmer 1.5s infinite;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  opacity: 0.75;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(198, 167, 102, 0.5);
}

.nav-links a:hover {
  opacity: 1;
  text-shadow: 0 0 20px rgba(198, 167, 102, 0.3);
}

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

.nav-cta {
  margin-left: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 167, 102, 0.3);
}

.nav-cta:hover::before {
  opacity: 1;
}

.hero-content {
  max-width: 620px;
  padding: 90px 0 120px;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.65);
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 28px;
}

.hero-content h1 span {
  display: inline-block;
  background: linear-gradient(120deg, #ffffff, rgba(198, 167, 102, 0.8));
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  max-width: 540px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-btn {
  background: var(--accent);
  color: #0c1729;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 12px 30px rgba(198, 167, 102, 0.25);
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(198, 167, 102, 0.4),
    0 0 30px rgba(198, 167, 102, 0.3);
}

.primary-btn:hover::before {
  transform: translateX(100%);
}

.primary-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.secondary-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  position: relative;
}

.secondary-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.secondary-link:hover::after {
  background: rgba(198, 167, 102, 0.65);
  width: 110%;
}

.section-padding {
  padding-block: var(--section-padding);
  padding-inline: var(--gutter);
}

.section-heading {
  max-width: 660px;
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin: 16px 0 18px;
  font-family: "Playfair Display", serif;
}

.section-heading p {
  color: var(--text-muted);
  margin: 0;
}

.section-badge {
  display: inline-block;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(198, 167, 102, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.section-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(198, 167, 102, 0.2),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

.section-heading:hover .section-badge {
  background: rgba(198, 167, 102, 0.15);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(198, 167, 102, 0.2);
}

.about-grid {
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1.4fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.photo-frame {
  background: linear-gradient(
    135deg,
    rgba(198, 167, 102, 0.25),
    rgba(12, 23, 41, 0.5)
  );
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(198, 167, 102, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.photo-frame:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(198, 167, 102, 0.2);
}

.photo-frame:hover::before {
  transform: translateX(100%);
}

.profile-photo {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.photo-frame:hover .profile-photo {
  transform: scale(1.05);
}

.about-content > h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: "Playfair Display", serif;
}

.about-content p {
  color: var(--text-muted);
}

.about-highlights {
  margin: 32px 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(198, 167, 102, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 20px rgba(198, 167, 102, 0.15);
  border-color: rgba(198, 167, 102, 0.3);
}

.highlight-card:hover::before {
  left: 100%;
}

.highlight-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 14px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  position: relative;
}

.inline-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(12, 23, 41, 0.15);
  transition: var(--transition);
}

.inline-link:hover::after {
  width: 110%;
  background: rgba(198, 167, 102, 0.6);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.practice-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(198, 167, 102, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: var(--transition);
}

.practice-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 167, 102, 0.2), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.practice-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(198, 167, 102, 0.2);
  border-color: rgba(198, 167, 102, 0.3);
}

.practice-card:hover::before {
  width: 300px;
  height: 300px;
}

.practice-card:hover::after {
  opacity: 1;
}

.practice-card h3 {
  margin-top: 18px;
  font-size: 1.25rem;
}

.practice-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(198, 167, 102, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: var(--transition);
  position: relative;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.practice-card:hover .icon-circle {
  background: rgba(198, 167, 102, 0.25);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(198, 167, 102, 0.3);
}

.practice-card:hover .icon-circle svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(198, 167, 102, 0.5));
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.article-card {
  background: radial-gradient(
    circle at top right,
    rgba(198, 167, 102, 0.15),
    rgba(255, 255, 255, 0.9)
  );
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(198, 167, 102, 0.18);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  min-height: 260px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(198, 167, 102, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
  transform: scale(0);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(198, 167, 102, 0.25);
  border-color: rgba(198, 167, 102, 0.4);
}

.article-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.article-date {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(12, 23, 41, 0.5);
}

.article-card h3 {
  margin: 16px 0 12px;
  font-size: 1.3rem;
  font-family: "Playfair Display", serif;
}

.article-card p {
  color: rgba(12, 23, 41, 0.7);
}

.read-more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

.read-more::after {
  content: "→";
  margin-left: 8px;
  display: inline-block;
  transition: var(--transition-fast);
}

.article-card:hover .read-more {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(198, 167, 102, 0.3);
}

.article-card:hover .read-more::after {
  transform: translateX(5px);
}

.contact-grid {
  margin-top: var(--space-16);
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-10));
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 1fr);
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
  border-radius: var(--radius-lg);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.contact-form:hover {
  box-shadow: var(--shadow-hover), 0 0 30px rgba(198, 167, 102, 0.15);
}

.contact-form:hover::before {
  opacity: 0.3;
}

.contact-form form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(12, 23, 41, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  font-family: inherit;
}

input:hover,
textarea:hover {
  border-color: rgba(198, 167, 102, 0.3);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(198, 167, 102, 0.6);
  box-shadow: 0 0 0 4px rgba(198, 167, 102, 0.15),
    0 0 20px rgba(198, 167, 102, 0.1);
  background: #fff;
  transform: translateY(-2px);
}

.contact-links {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 500;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-details {
  display: grid;
  gap: 24px;
}

.detail-card {
  background: rgba(12, 23, 41, 0.9);
  color: #f8f6f1;
  padding: 28px;
  border-radius: var(--radius-md);
  background-image: radial-gradient(
    circle at top left,
    rgba(198, 167, 102, 0.25),
    rgba(12, 23, 41, 0.92)
  );
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(198, 167, 102, 0.15),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(198, 167, 102, 0.2);
}

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

.detail-card h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 23, 41, 0.12);
}

.map-wrapper iframe {
  width: 100%;
  height: 220px;
  border: none;
}

.site-footer {
  background: #0c1729;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 7vw;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  position: relative;
  transition: var(--transition);
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(198, 167, 102, 0.6);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(198, 167, 102, 0.4);
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(198, 167, 102, 0.3);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copy {
  flex-basis: 100%;
  margin: 14px 0 0;
  font-size: 0.85rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 23, 41, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  z-index: 50;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(15px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-hover), 0 0 60px rgba(198, 167, 102, 0.15);
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  opacity: 0;
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 23, 41, 0.07);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.modal-close span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0c1729;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
  margin-top: -2px;
}

.modal-close:hover {
  background: rgba(198, 167, 102, 0.2);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(198, 167, 102, 0.3);
}

.modal-close:hover span {
  background: var(--accent);
}

.modal-date {
  display: block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(12, 23, 41, 0.5);
}

.modal h3 {
  margin: 16px 0;
  font-size: 1.55rem;
  font-family: "Playfair Display", serif;
}

.modal p {
  color: var(--text-muted);
}

[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"].animated,
[data-animate="fade-left"].animated {
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-cta {
    order: 2;
    margin-left: auto;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --gutter: 5vw;
  }
  
  .hero {
    padding-inline: var(--gutter);
  }

  .top-nav {
    padding-top: var(--space-6);
  }

  .nav-links {
    gap: var(--space-5);
  }

  .hero-content {
    padding-block: var(--space-20) var(--space-24);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

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

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

  .modal {
    padding: var(--space-6);
    margin: var(--space-4);
    max-width: calc(100vw - var(--space-8));
  }
  
  /* Prevent text overflow on mobile */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 540px) {
  :root {
    --section-padding: 60px;
    --gutter: 4vw;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .primary-btn,
  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .secondary-link {
    display: block;
    text-align: center;
  }

  .contact-form {
    padding: var(--space-6);
  }

  .detail-card {
    padding: var(--space-6);
  }
  
  /* Prevent horizontal overflow */
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .section-heading h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  /* Full width buttons on small screens */
  .hero-actions a,
  .cta-buttons a,
  .quick-buttons a {
    width: 100%;
    text-align: center;
  }
}

/* Page Header - for separate pages like articles */
.page-header {
  background: var(--bg-deep);
  padding: 24px 7vw;
  box-shadow: 0 4px 20px rgba(12, 23, 41, 0.15);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  animation: slideUp 0.6s ease-out;
}

.page-header .top-nav {
  padding: 0;
}

.page-header .brand-name,
.page-header .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.page-header .nav-links a.active {
  color: var(--accent);
  opacity: 1;
}

.page-header .nav-links a.active::after {
  width: 100%;
}

/* Page Hero - for internal pages */
.page-hero {
  background: linear-gradient(
    135deg,
    rgba(12, 23, 41, 0.95),
    rgba(19, 35, 59, 0.9)
  );
  color: #fff;
  padding: 100px 7vw 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(198, 167, 102, 0.2),
    transparent 60%
  );
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 20px 0 24px;
  line-height: 1.15;
}

.page-hero-content .subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 650px;
  margin: 0 auto;
}

/* Articles Expanded Page */
.articles-expanded {
  background: var(--bg);
}

.article-grid-expanded {
  display: grid;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.article-card-expanded {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: grid;
  grid-template-columns: 280px 1fr;
  position: relative;
  text-decoration: none;
  color: inherit;
}

a.article-card-expanded {
  text-decoration: none;
  color: inherit;
}

.article-card-expanded::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(198, 167, 102, 0.08),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.article-card-expanded:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 35px rgba(198, 167, 102, 0.2);
  border-color: rgba(198, 167, 102, 0.3);
}

.article-card-expanded:hover::before {
  opacity: 1;
}

.article-image-placeholder {
  background: linear-gradient(
    135deg,
    rgba(198, 167, 102, 0.15),
    rgba(12, 23, 41, 0.08)
  );
  display: grid;
  place-items: center;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.article-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(198, 167, 102, 0.2),
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.6s ease;
}

.article-card-expanded:hover .article-image-placeholder::before {
  transform: scale(1.5);
}

.article-image-placeholder svg {
  width: 64px;
  height: 64px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(198, 167, 102, 0.2));
}

.article-card-expanded:hover .article-image-placeholder svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 8px 20px rgba(198, 167, 102, 0.4));
}

.article-content-expanded {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.article-content-expanded h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  margin: 12px 0 16px;
  line-height: 1.3;
  transition: var(--transition);
}

.article-card-expanded:hover .article-content-expanded h2 {
  color: var(--accent);
}

.article-content-expanded p {
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

.article-content-expanded .read-more {
  margin-top: 20px;
  align-self: flex-start;
}

/* Enhanced button animations */
button,
.primary-btn,
.nav-cta {
  position: relative;
  overflow: hidden;
}

button::after,
.primary-btn::after,
.nav-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

button:active::after,
.primary-btn:active::after,
.nav-cta:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.8s ease;
}

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

/* Loading state animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger animation delays for multiple items */
[data-delay="0"] {
  transition-delay: 0s;
}

[data-delay="0.1"] {
  transition-delay: 0.1s;
}

[data-delay="0.2"] {
  transition-delay: 0.2s;
}

[data-delay="0.3"] {
  transition-delay: 0.3s;
}

[data-delay="0.4"] {
  transition-delay: 0.4s;
}

[data-delay="0.5"] {
  transition-delay: 0.5s;
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-deep);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 10001;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .page-loader {
    display: none;
  }
  
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(14, 26, 43, 0.2);
    --text-muted: rgba(14, 26, 43, 0.8);
  }
  
  .primary-btn,
  .nav-cta {
    border: 2px solid currentColor;
  }
}

/* Responsive updates for articles page */
@media (max-width: 900px) {
  .article-card-expanded {
    grid-template-columns: 1fr;
  }

  .article-image-placeholder {
    min-height: 200px;
  }

  .article-content-expanded {
    padding: 28px 32px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 20px 6vw;
  }

  .page-hero {
    padding: 80px 6vw 60px;
  }

  .article-grid-expanded {
    gap: 28px;
  }

  .article-content-expanded {
    padding: 24px 28px;
  }

  .article-content-expanded h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 540px) {
  .article-image-placeholder {
    min-height: 160px;
  }

  .article-image-placeholder svg {
    width: 48px;
    height: 48px;
  }

  .article-content-expanded {
    padding: 20px 24px;
  }
}

/* Services Page Styles */
.services-main {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(198, 167, 102, 0.05),
    transparent 60%
  );
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(198, 167, 102, 0.2);
  border-color: rgba(198, 167, 102, 0.3);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(198, 167, 102, 0.15),
    rgba(198, 167, 102, 0.05)
  );
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(198, 167, 102, 0.25),
    rgba(198, 167, 102, 0.1)
  );
  box-shadow: 0 8px 20px rgba(198, 167, 102, 0.3);
}

.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

.service-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin: 0 0 16px;
  line-height: 1.3;
}

.service-card > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.service-features li {
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.service-link {
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
  align-self: flex-start;
}

.service-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

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

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(12, 23, 41, 0.95),
    rgba(19, 35, 59, 0.9)
  );
  padding: 100px 7vw;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(198, 167, 102, 0.2),
    transparent 60%
  );
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 20px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(198, 167, 102, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Fixed WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 999;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  background: #20ba5a;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

/* Responsive for Services */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .cta-section {
    padding: 80px 6vw;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons a {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* News Page Styles */
.news-section {
  background: var(--bg);
}

.news-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: rgba(198, 167, 102, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent);
  color: #0c1729;
  border-color: var(--accent);
}

.news-grid {
  display: grid;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(198, 167, 102, 0.3);
}

.news-card:hover::before {
  transform: scaleY(1);
}

.news-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.news-badge.yargitay {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.news-badge.mevzuat {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.news-badge.emsal {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.news-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin: 0 0 16px;
  line-height: 1.3;
  transition: var(--transition);
}

.news-card:hover h2 {
  color: var(--accent);
}

.news-card > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(
    135deg,
    rgba(12, 23, 41, 0.95),
    rgba(19, 35, 59, 0.9)
  );
  padding: 80px 7vw;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at bottom right,
    rgba(198, 167, 102, 0.15),
    transparent 60%
  );
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.newsletter-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 16px;
}

.newsletter-content p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .news-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

/* Hero Stats Section */
.hero-stats {
  background: linear-gradient(135deg, var(--bg-deep) 0%, rgba(19, 35, 59, 0.95) 100%);
  padding: 80px 7vw;
  position: relative;
  overflow: hidden;
}

.hero-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, rgba(198, 167, 102, 0.15), transparent 60%);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, #ffffff, rgba(198, 167, 102, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 120px;
  font-family: "Playfair Display", serif;
  color: rgba(198, 167, 102, 0.08);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(198, 167, 102, 0.2);
  border-color: rgba(198, 167, 102, 0.3);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonial-card > p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-author strong {
  color: var(--text);
  font-weight: 600;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Partners Section */
.partners-section {
  background: linear-gradient(135deg, rgba(12, 23, 41, 0.97), rgba(19, 35, 59, 0.95));
  padding: 80px 7vw;
  overflow: hidden;
  position: relative;
}

.partners-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(198, 167, 102, 0.12), transparent 60%);
}

.partners-content {
  text-align: center;
  color: #fff;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.partners-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 16px;
}

.partners-content p {
  opacity: 0.85;
  font-size: 1.05rem;
}

.partners-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: scrollLogos 30s linear infinite;
  width: fit-content;
}

.partner-logo {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.partner-logo:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(198, 167, 102, 0.3);
  transform: translateY(-4px);
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 2));
  }
}

/* Stats Section (Hakkımızda page) */
.stats-section {
  background: linear-gradient(135deg, rgba(12, 23, 41, 0.97), rgba(19, 35, 59, 0.92));
  padding: 100px 7vw;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(198, 167, 102, 0.1), transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  color: #fff;
}

.stat-card .stat-number {
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 700;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, #ffffff, rgba(198, 167, 102, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.stat-card .stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Story Section */
.about-story {
  background: var(--bg);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.story-content {
  max-width: 600px;
}

.story-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 20px 0 24px;
  line-height: 1.2;
}

.story-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.values-list {
  display: grid;
  gap: 24px;
  margin: 40px 0;
}

.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.value-item svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.value-item h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.value-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Expertise & Cert Sections */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.expertise-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(198, 167, 102, 0.3);
}

.expertise-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.expertise-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.cert-section {
  background: var(--bg);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.cert-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 167, 102, 0.4);
  box-shadow: var(--shadow-soft);
}

.cert-card h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text);
}

.cert-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Page Specific */
.contact-main {
  background: var(--bg);
}

.quick-contact {
  background: linear-gradient(135deg, rgba(12, 23, 41, 0.95), rgba(19, 35, 59, 0.9));
  padding: 80px 7vw;
}

.quick-contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.quick-contact-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 16px;
}

.quick-contact-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.quick-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.phone-btn {
  background: var(--accent);
  color: #0c1729;
}

.phone-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(198, 167, 102, 0.4);
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  background: #20ba5a;
}

/* Ask Question Page */
.ask-question-section {
  background: var(--bg);
}

.ask-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.ask-form-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.ask-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 12px;
}

.ask-header p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.question-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(14, 26, 43, 0.12);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(198, 167, 102, 0.6);
  box-shadow: 0 0 0 4px rgba(198, 167, 102, 0.1);
  background: #fff;
}

.form-group small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--accent);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  margin-top: 12px;
}

.ask-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.info-card.highlight {
  background: linear-gradient(135deg, rgba(198, 167, 102, 0.15), rgba(198, 167, 102, 0.05));
  border-color: rgba(198, 167, 102, 0.3);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(198, 167, 102, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.info-icon svg {
  width: 26px;
  height: 26px;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* QA Section */
.qa-section {
  background: var(--bg);
}

.qa-grid {
  display: grid;
  gap: 32px;
  max-width: 1000px;
  margin: 60px auto 0;
}

.qa-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.qa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(198, 167, 102, 0.3);
}

.qa-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(198, 167, 102, 0.12);
  color: var(--accent);
  margin-bottom: 16px;
}

.qa-question h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin: 0 0 20px;
  line-height: 1.3;
}

.qa-answer p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.qa-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.qa-cta {
  text-align: center;
  padding-top: 60px;
}

.qa-cta p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 24px;
}

/* Coming Soon Page */
.coming-soon-section {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 120px 7vw;
  background: linear-gradient(135deg, rgba(12, 23, 41, 0.03), rgba(198, 167, 102, 0.05));
}

.coming-soon-content {
  max-width: 700px;
  text-align: center;
}

.ai-icon-large {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, rgba(198, 167, 102, 0.2), rgba(198, 167, 102, 0.08));
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: float 3s ease-in-out infinite;
}

.ai-icon-large svg {
  width: 60px;
  height: 60px;
}

.coming-soon-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 20px 0 24px;
}

.features-preview {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.feature-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 48px auto 16px;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.waitlist-form button {
  white-space: nowrap;
}

/* Responsive - Stats */
@media (max-width: 968px) {
  .stats-container,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

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

  .story-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ask-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ask-form-wrapper {
    padding: 36px 28px;
  }

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

  .quick-buttons {
    flex-direction: column;
  }

  .quick-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .stats-container,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    padding: 60px 6vw;
  }

  .partners-track {
    gap: 40px;
  }

  .partner-logo {
    padding: 16px 28px;
    font-size: 0.95rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
  }

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

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(198, 167, 102, 0.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 23, 41, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-deep);
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(12, 23, 41, 0.5);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  display: block;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mobile-nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(198, 167, 102, 0.1);
  color: #fff;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a.active::before {
  transform: scaleY(1);
}

.mobile-nav-cta {
  margin-top: 32px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--bg-deep);
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
  display: block;
  transition: var(--transition);
}

.mobile-nav-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(198, 167, 102, 0.4);
}

.mobile-nav-contact {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 0;
  font-size: 0.95rem;
  transition: var(--transition);
}

.mobile-nav-contact a:hover {
  color: var(--accent);
}

.mobile-nav-contact svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive - Show hamburger menu */
@media (max-width: 1100px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: auto;
    color: inherit;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .top-nav {
    justify-content: space-between;
  }

  .brand {
    flex: 1;
  }
}

/* Hero specific hamburger color */
.hero .mobile-menu-toggle {
  color: #fff;
}

.page-header .mobile-menu-toggle {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-deep);
  border: 1px solid rgba(198, 167, 102, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 998;
  box-shadow: 0 8px 25px rgba(12, 23, 41, 0.3);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  transition: var(--transition);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(198, 167, 102, 0.4);
}

.scroll-to-top:hover svg {
  color: var(--bg-deep);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 20px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   PAGE LOADING ANIMATION
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(198, 167, 102, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(198, 167, 102, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  animation: loaderProgress 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(198, 167, 102, 0.3);
  }
  50% {
    transform: scale(1.05);
    border-color: rgba(198, 167, 102, 0.6);
  }
}

@keyframes loaderProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(198, 167, 102, 0.7));
  z-index: 9998;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(198, 167, 102, 0.5);
}

/* ============================================
   ENHANCED STICKY HEADER
   ============================================ */

.page-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header.scrolled {
  padding: 16px 7vw;
  background: rgba(12, 23, 41, 0.98);
  box-shadow: 0 8px 30px rgba(12, 23, 41, 0.3);
}

.page-header.scrolled .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
}

.page-header.scrolled .brand-name {
  font-size: 0.85rem;
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(198, 167, 102, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(198, 167, 102, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
  z-index: -1;
  animation: heroBackgroundPulse 8s ease-in-out infinite;
}

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

/* Hero text reveal animation */
.hero-content h1 {
  overflow: hidden;
}

.hero-content h1 span {
  animation: heroTextReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

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

.hero-content .eyebrow {
  animation: fadeSlideIn 0.8s ease 0.1s both;
}

.hero-content .subtitle {
  animation: fadeSlideIn 0.8s ease 0.5s both;
}

.hero-actions {
  animation: fadeSlideIn 0.8s ease 0.7s both;
}

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

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

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 167, 102, 0.15), transparent 70%);
  animation: floatShape 20s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 5%;
  animation-delay: -5s;
}

.hero-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-10px, 10px) scale(0.95);
  }
  75% {
    transform: translate(-20px, -10px) scale(1.02);
  }
}

/* ============================================
   ENHANCED BUTTON RIPPLE EFFECT
   ============================================ */

.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   ENHANCED CARD HOVER EFFECTS
   ============================================ */

.practice-card,
.service-card,
.testimonial-card,
.article-card,
.article-card-expanded {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.practice-card:hover,
.service-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

/* Enhanced icon animations */
.practice-card .icon-circle,
.service-card .service-icon {
  position: relative;
}

.practice-card .icon-circle::after,
.service-card .service-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(198, 167, 102, 0.3), transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.practice-card:hover .icon-circle::after,
.service-card:hover .service-icon::after {
  opacity: 1;
  transform: scale(1.2);
}

/* Testimonial card enhanced hover */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(198, 167, 102, 0.5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover::after {
  transform: scaleX(1);
}

/* News card enhanced hover */
.news-card {
  position: relative;
}

.news-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, rgba(198, 167, 102, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover::after {
  opacity: 1;
}

/* QA card enhanced hover */
.qa-card {
  position: relative;
}

.qa-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.qa-card:hover::after {
  transform: scaleX(1);
}

/* Enhanced link hover animations */
.inline-link,
.service-link,
.read-more {
  position: relative;
}

.inline-link::before,
.service-link::before {
  content: "→";
  position: absolute;
  right: -20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.inline-link:hover::before,
.service-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced stat number animation */
.stat-number {
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.05);
}

/* Partner logo enhanced hover */
.partner-logo {
  position: relative;
  overflow: hidden;
}

.partner-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.partner-logo:hover::before {
  left: 100%;
}

/* Form input focus glow */
input:focus,
textarea:focus,
select:focus {
  animation: inputGlow 0.3s ease forwards;
}

@keyframes inputGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 167, 102, 0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(198, 167, 102, 0.15), 0 0 20px rgba(198, 167, 102, 0.1);
  }
}

/* Enhanced button press effect */
.primary-btn:active,
.nav-cta:active {
  transform: translateY(1px) scale(0.98);
}

/* Glow effect on hover */
.card-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    rgba(198, 167, 102, 0.4), 
    transparent 40%, 
    transparent 60%, 
    rgba(198, 167, 102, 0.4)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.practice-card:hover .card-glow,
.service-card:hover .card-glow {
  opacity: 1;
}

/* ============================================
   PAGE TRANSITION EFFECT
   ============================================ */

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
  transform: translateY(0);
}

/* ============================================
   AI CHAT ASSISTANT STYLES
   ============================================ */

.ai-chat-main {
  min-height: calc(100vh - 200px);
  background: var(--bg);
  padding: 40px 7vw 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ai-chat-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  animation: fadeInScale 0.6s ease-out;
}

/* Chat Header */
.ai-chat-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(198, 167, 102, 0.05), transparent);
}

.ai-agent-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-agent-avatar {
  width: 48px;
  height: 48px;
  b-radius: 50%;
  background: linear-gradient(135deg, var(--accent), rgba(198, 167, 102, 0.7));
  display: grid;
  place-items: center;
  color: var(--bg-deep);
  box-shadow: 0 4px 15px rgba(198, 167, 102, 0.3);
  animation: glow 3s ease-in-out infinite;
}

.ai-agent-avatar svg {
  width: 24px;
  height: 24px;
}

.ai-agent-text h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  font-family: "Playfair Display", serif;
  color: var(--text);
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s ease-in-out infinite;
}

.ai-chat-actions {
  display: flex;
  gap: 12px;
}

.ai-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.ai-action-btn svg {
  width: 20px;
  height: 20px;
}

.ai-action-btn:hover {
  background: rgba(198, 167, 102, 0.1);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Welcome Section */
.ai-welcome {
  padding: 60px 40px;
  text-align: center;
  transition: var(--transition);
}

.ai-welcome-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(198, 167, 102, 0.15), rgba(198, 167, 102, 0.05));
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: float 3s ease-in-out infinite;
}

.ai-welcome-icon svg {
  width: 40px;
  height: 40px;
}

.ai-welcome h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--text);
}

.ai-welcome > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Suggested Prompts */
.ai-suggested-prompts {
  margin: 32px 0;
}

.prompts-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prompt-chip {
  display: inline-block;
  padding: 12px 20px;
  margin: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text);
}

.prompt-chip:hover {
  background: rgba(198, 167, 102, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 167, 102, 0.2);
}

/* Disclaimer */
.ai-disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.ai-disclaimer svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.ai-disclaimer a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: underline;
}

/* Chat Messages */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(198, 167, 102, 0.3);
  border-radius: 4px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(198, 167, 102, 0.5);
}

/* Chat Message */
.chat-message {
  display: flex;
  gap: 12px;
  animation: slideUp 0.3s ease-out;
  transition: var(--transition);
}

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), rgba(198, 167, 102, 0.7));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.user-avatar {
  background: linear-gradient(135deg, var(--bg-deep), rgba(12, 23, 41, 0.8));
}

.message-avatar svg {
  width: 20px;
  height: 20px;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-text {
  background: rgba(198, 167, 102, 0.08);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: var(--text);
  line-height: 1.6;
  word-wrap: break-word;
}

.user-message .message-text {
  background: var(--bg-deep);
  color: #fff;
}

.message-text a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.user-message .message-text a {
  color: var(--accent);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding: 0 4px;
}

/* Typing Indicator */
.typing-indicator .message-text {
  background: rgba(198, 167, 102, 0.08);
  padding: 14px 18px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Chat Input */
.ai-chat-input-wrapper {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.ai-chat-input-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-input-container {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.ai-input-container textarea {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  resize: none;
  min-height: 52px;
  max-height: 120px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.ai-input-container textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 167, 102, 0.1);
  background: #fff;
}

.ai-send-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--bg-deep);
}

.ai-send-btn svg {
  width: 24px;
  height: 24px;
}

.ai-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-send-btn:not(:disabled):hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(198, 167, 102, 0.4);
}

.ai-send-btn:not(:disabled):active {
  transform: scale(0.95);
}

.ai-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.char-count {
  font-weight: 500;
}

.ai-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}

/* Contact CTA */
.ai-contact-cta {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.cta-content-small {
  background: linear-gradient(135deg, rgba(12, 23, 41, 0.95), rgba(19, 35, 59, 0.9));
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(198, 167, 102, 0.2), transparent 60%);
}

.cta-content-small h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.cta-content-small p {
  opacity: 0.9;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

.cta-buttons-small {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.phone-btn-small {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(198, 167, 102, 0.3);
}

.phone-btn-small svg {
  width: 20px;
  height: 20px;
}

.phone-btn-small:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(198, 167, 102, 0.5);
}

.secondary-btn-small {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.secondary-btn-small:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Responsive AI Chat */
@media (max-width: 768px) {
  .ai-chat-main {
    padding: 20px 4vw 60px;
  }

  .ai-chat-container {
    height: calc(100vh - 220px);
    min-height: 500px;
  }

  .ai-chat-header {
    padding: 20px;
  }

  .ai-agent-avatar {
    width: 40px;
    height: 40px;
  }

  .ai-agent-text h1 {
    font-size: 1.2rem;
  }

  .ai-welcome {
    padding: 40px 24px;
  }

  .ai-welcome h2 {
    font-size: 1.6rem;
  }

  .prompt-chip {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .ai-chat-messages {
    padding: 20px 16px;
  }

  .ai-chat-input-wrapper {
    padding: 16px 20px 20px;
  }

  .cta-content-small {
    padding: 32px 24px;
  }

  .cta-content-small h3 {
    font-size: 1.5rem;
  }

  .cta-buttons-small {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-btn-small,
  .secondary-btn-small {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .ai-chat-container {
    border-radius: var(--radius-md);
  }

  .ai-agent-text h1 {
    font-size: 1.1rem;
  }

  .ai-status {
    font-size: 0.85rem;
  }

  .ai-welcome {
    padding: 32px 20px;
  }

  .prompt-chip {
    display: block;
    margin: 8px 0;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
  }

  .message-avatar svg {
    width: 18px;
    height: 18px;
  }
}

/* ===========================================
   UTILITY CLASSES - Reusable Components
   =========================================== */

/* Spacing Utilities */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Width Utilities */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* ===========================================
   MOBILE OVERFLOW PREVENTION
   =========================================== */
* {
  max-width: 100%;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
}

pre, code {
  overflow-x: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Prevent horizontal scroll on all elements */
.container,
.content-narrow,
.section-padding,
.page-wrapper,
.hero,
.top-nav {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ===========================================
   OPTIMIZED RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(60px, 8vw, 80px);
    --gutter: clamp(4vw, 5vw, 6vw);
    --header-height: 70px;
  }

  /* Prevent overflow */
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .subtitle {
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  /* Grid adjustments */
  .services-grid,
  .practice-grid,
  .article-grid,
  .news-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .about-grid,
  .contact-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Navigation */
  .top-nav {
    padding: var(--space-4) 0;
    gap: var(--space-4);
  }

  .nav-links {
    display: none; /* Mobile menu handles this */
  }

  /* Buttons */
  .primary-btn,
  .nav-cta,
  .secondary-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
  }

  /* Cards */
  .service-card,
  .practice-card,
  .article-card,
  .news-card {
    padding: var(--space-6);
  }

  /* Forms */
  .contact-form,
  .question-form {
    padding: var(--space-6);
  }

  /* Typography */
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h3 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
}

/* Mobile (540px and below) */
@media (max-width: 540px) {
  :root {
    --section-padding: clamp(40px, 6vw, 60px);
    --gutter: clamp(3vw, 4vw, 5vw);
  }

  /* Even tighter spacing */
  .hero-content {
    padding: var(--space-16) 0 var(--space-20);
  }

  .section-padding {
    padding-block: var(--section-padding);
    padding-inline: var(--gutter);
  }

  /* Smaller text on mobile */
  .subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Compact cards */
  .service-card,
  .practice-card {
    padding: var(--space-5);
  }

  /* Stack buttons */
  .hero-actions,
  .cta-buttons,
  .quick-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions > *,
  .cta-buttons > *,
  .quick-buttons > * {
    width: 100%;
  }
}

/* ===========================================
   PERFORMANCE OPTIMIZATIONS
   =========================================== */

/* GPU acceleration for animations */
.primary-btn,
.secondary-btn,
.nav-cta,
.service-card,
.practice-card,
.article-card,
.scroll-to-top,
.whatsapp-float {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================
   MODERN ANIMATION ENHANCEMENTS
   =========================================== */

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===========================================
   CHAT-BOT UI/UX IMPROVEMENTS
   =========================================== */

.ai-chat-container {
  contain: layout style paint;
}

.ai-chat-messages {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.message-bubble {
  animation: fadeInUp 0.3s var(--ease-out);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-bubble.user {
  animation: slideInRight 0.3s var(--ease-out);
}

.message-bubble.assistant {
  animation: slideInLeft 0.3s var(--ease-out);
}

.ai-chat-input {
  resize: none;
  min-height: 44px;
  max-height: 120px;
}

.ai-chat-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prompt-chip {
  transition: all var(--duration-fast) var(--ease-out);
  will-change: transform;
}

.prompt-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prompt-chip:active {
  transform: translateY(0);
}

/* Loading state improvements */
.message-loading {
  display: flex;
  gap: 8px;
  align-items: center;
}

.message-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.message-loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.message-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ===========================================
   HEADER/FOOTER/NAV OPTIMIZATIONS
   =========================================== */

.page-header {
  contain: layout style;
  will-change: transform;
}

.page-header.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.top-nav {
  contain: layout;
}

.nav-links a {
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

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

.site-footer {
  contain: layout style;
  margin-top: auto;
}

/* Mobile menu improvements */
.mobile-nav {
  will-change: transform;
  contain: layout style paint;
}

.mobile-nav.active {
  animation: slideInRight 0.3s var(--ease-out);
}

.mobile-nav-overlay.active {
  animation: fadeIn 0.3s var(--ease-out);
}

/* ===========================================
   ACCESSIBILITY IMPROVEMENTS
   =========================================== */

/* Focus visible improvements */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: var(--z-loader);
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: 0;
}

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