/* ===== CSS VARIABLES ===== */
:root {
  /* Light Theme Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  
  /* Success/Error Colors */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --card-padding: 2rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Dark Theme Colors */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: #334155;
  --border-light: #475569;
  
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-heavy: rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  position: fixed;
  left: 0;
  right: 0;
  /* Will be set dynamically based on navbar height */
  top: 70px;
  height: 44px;
  z-index: 999; /* Just below navbar (which uses 1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b91c1c; /* Red strip */
  color: #ffffff;
  overflow: hidden;
  pointer-events: none; /* Do not block interactions beneath */
  will-change: background-position, opacity;
  /* Wavy background pattern: two offset radial gradients moving left */
  background-image:
    radial-gradient(circle at 20px 22px, rgba(255,255,255,0.18) 0 8px, transparent 9px),
    radial-gradient(circle at 80px 22px, rgba(0,0,0,0.16) 0 8px, transparent 9px);
  background-repeat: repeat-x;
  background-size: 120px 44px, 120px 44px;
  background-position: 0 0, 60px 0;
  transition: opacity var(--transition-normal);
}

.announcement-banner .announcement-text {
  /* Kept for fallback/non-animated text; hidden when track is present */
  display: none;
}

.banner-hidden { opacity: 0; }
.banner-visible { opacity: 0.96; }
.banner-fadeout { opacity: 0; transition: opacity 1s ease; }

/* Wavy shift animation moves the background from right to left */
@keyframes waveShift {
  0%   { background-position: 0 0, 60px 0; }
  100% { background-position: -240px 0, -180px 0; }
}

/* Horizontally scrolling track for text (marquee-style) */
.announcement-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeScroll var(--marquee-duration, 30s) var(--marquee-easing, cubic-bezier(0.4, 0.0, 0.2, 1)) infinite;
}

.announcement-item {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  font-weight: 600;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  /* Maintain spacing to keep readability when very slow */
  padding-inline: 0.5rem;
}

@keyframes marqueeScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .announcement-banner { background-image: none; }
  .announcement-track { animation: none; transform: none; }
  .announcement-item { font-weight: 700; }
}

@media (max-width: 768px) {
  .announcement-banner { height: 40px; }
  .announcement-banner .announcement-text { font-size: clamp(0.8rem, 3.2vw, 0.95rem); }
}

/* Dark theme preserves contrast */
[data-theme="dark"] .announcement-banner {
  background-color: #ef4444; /* brighter red for dark background */
}

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

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: var(--section-padding);
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px); /* Safari/iOS */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo a {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.nav-logo a:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--bg-tertiary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.theme-toggle:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

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

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-tagline {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== HERO IMAGE GRID HALO EFFECT (Home page) ===== */
/* Place a subtle, animated halo behind the hero grid without altering layout */
.home .hero-container {
  position: relative; /* establish containing block for halo pseudo-element */
}

.home .hero-container::before {
  content: "";
  position: absolute;
  /* Expand outward by 10–15% proportionally */
  --halo-thickness: 12%;
  top: calc(-1 * var(--halo-thickness));
  left: calc(-1 * var(--halo-thickness));
  right: calc(-1 * var(--halo-thickness));
  bottom: calc(-1 * var(--halo-thickness));
  z-index: -1; /* behind hero content */
  pointer-events: none;
  /* Soft corners to complement site design; does not affect hero content */
  border-radius: 24px;

  /* Gradient palette: complements site's blues/greens with elegant diffusion */
  background: conic-gradient(from 0deg,
    rgba(99,102,241,0.18), /* indigo */
    rgba(56,189,248,0.18), /* sky */
    rgba(34,197,94,0.18),  /* green */
    rgba(99,102,241,0.18)
  );

  /* Diffuse outward: fully opaque at inner edge fading to 0% at outer edge */
  -webkit-mask-image: radial-gradient(farthest-side, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(farthest-side, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);

  /* Smooth rotation and hue cycling (hardware-accelerated) */
  will-change: transform, filter;
  animation: haloRotate var(--halo-rotation-duration, 40s) linear infinite,
             haloHue var(--halo-hue-duration, 6s) ease-in-out infinite alternate;
}

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

@keyframes haloHue {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Responsive tuning: keep halo proportional at smaller screens */
@media (max-width: 768px) {
  .home .hero-container::before { --halo-thickness: 13%; border-radius: 20px; }
}

@media (max-width: 480px) {
  .home .hero-container::before { --halo-thickness: 14%; border-radius: 18px; }
}

.profile-image {
    display: block;
    width: clamp(180px, 40vw, 300px); /* Responsive width adapting to mobile viewports */
    height: auto;                     /* Height derived from aspect-ratio */
    aspect-ratio: 1 / 1;              /* Preserve perfect circle on all screens */
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out, gentleZoom 1.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: clamp(180px, 40vw, 300px); /* Match profile image sizing */
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
}

/* Slideshow Slides */
.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gentleZoom {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}
/* Ensure slideshow images fill the circular frame without distortion */
.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Common mobile breakpoints: keep perfect circles and optimal sizing */
@media (max-width: 768px) {
    .profile-image,
    .slideshow-container {
        width: clamp(180px, 55vw, 260px);
    }
}

@media (max-width: 480px) {
    .profile-image,
    .slideshow-container {
        width: clamp(160px, 65vw, 220px);
    }
}

@media (max-width: 414px) {
    .profile-image,
    .slideshow-container {
        width: clamp(160px, 70vw, 210px);
    }
}

@media (max-width: 375px) {
    .profile-image,
    .slideshow-container {
        width: clamp(150px, 72vw, 200px);
    }
}

@media (max-width: 360px) {
    .profile-image,
    .slideshow-container {
        width: clamp(145px, 74vw, 195px);
    }
}

@media (max-width: 320px) {
    .profile-image,
    .slideshow-container {
        width: clamp(135px, 76vw, 185px);
    }
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  transition: all var(--transition-slow);
}

.image-placeholder:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.4);
}

.image-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.image-placeholder p {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll i {
  font-size: 1.5rem;
}

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

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

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

.service-card {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
}

.service-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* ===== EXPERIENCE SECTION ===== */
.experience {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
}

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

.experience-text h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.experience-text p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.stat h3 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

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

.testimonial-card {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.author-info h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== CTA SECTION ===== */
.cta {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.page-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
}

/* ===== ABOUT PAGE STYLES ===== */
.about-content {
  padding: var(--section-padding);
}

.about-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-intro {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.education {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

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

.education-card {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.education-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.education-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.institution {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.description {
  color: var(--text-muted);
  line-height: 1.6;
}

.expertise {
  padding: var(--section-padding);
}

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

.expertise-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.expertise-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.expertise-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.philosophy {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

.philosophy-text blockquote {
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  position: relative;
}

.philosophy-text blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
}

.philosophy-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.principle {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.principle:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.principle i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.principle h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.principle p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== JOURNEY PAGE STYLES ===== */
.journey-overview {
  padding: var(--section-padding);
  text-align: center;
}

.overview-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.overview-content p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.timeline-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  margin-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  z-index: 2;
}

.timeline-item.current .timeline-marker {
  animation: pulse 2s infinite;
}

.timeline-content {
  flex: 1;
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: var(--font-size-lg);
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-achievements h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-achievements ul {
  list-style: none;
  padding: 0;
}

.timeline-achievements li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-achievements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.skills-gained {
  padding: var(--section-padding);
}

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

.skill-category {
  background-color: var(--bg-secondary);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.skill-category h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.achievements {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

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

.achievement-card {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.1) rotate(10deg);
}

.achievement-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* ===== FORM STYLES ===== */
.appointment-info,
.contact-info {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

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

.info-card,
.contact-card {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.info-card:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.info-icon,
.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.info-card h3,
.contact-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-card p,
.contact-card p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.appointment-form-section,
.contact-main {
  padding: var(--section-padding);
}

.form-container,
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
}

.contact-form-container {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.appointment-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 3px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.terms-link,
.privacy-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.appointment-guidelines {
  margin-top: 3rem;
  background-color: var(--bg-secondary);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
}

.appointment-guidelines h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.guideline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.guideline-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.guideline-item h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.guideline-item p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.map-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.map-header {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  text-align: center;
}

.map-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.map-placeholder {
  height: 300px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-content {
  text-align: center;
  color: var(--text-muted);
}

.map-content i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.map-content h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.map-content p {
  margin-bottom: 0.5rem;
}

.map-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.map-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.map-link:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.emergency-contact {
  padding: 2rem 0;
  background-color: var(--error-color);
  color: white;
}

.emergency-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.emergency-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.emergency-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.emergency-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.emergency-numbers {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.emergency-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--error-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.emergency-btn:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

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

.faq-item {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.faq-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

.quick-actions {
  padding: var(--section-padding);
}

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

.action-card {
  background-color: var(--bg-secondary);
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
}

.action-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
  background-color: var(--bg-card);
}

.action-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(10deg);
}

.action-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.action-card p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-tertiary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Platform-specific hover colors */
.social-links a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a[href*="twitter"]:hover,
.social-links a[href*="x.com"]:hover {
  background-color: #1da1f2;
}

.social-links a[href*="telegram"]:hover,
.social-links a[href*="teleg.one"]:hover {
  background-color: #0088cc;
}

/* Error handling for broken links */
.social-links a[href="#"]:hover {
  background-color: #6b7280;
  cursor: not-allowed;
}

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

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

.footer-section ul li a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.contact-item i {
  color: var(--primary-color);
  width: 16px;
}

.experience-stats .stat h3 {
  font-variant-numeric: tabular-nums; /* reduce jitter during counter animation */
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-image {
    order: -1;
  }
  
  .image-placeholder {
    width: 250px;
    height: 250px;
  }
  
  .experience-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-item .timeline-content {
    margin-left: 80px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-marker {
    left: 30px !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --section-padding: 60px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left var(--transition-normal);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    font-size: var(--font-size-lg);
    padding: 1rem 2rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .image-placeholder {
    width: 200px;
    height: 200px;
  }
  
  .image-placeholder i {
    font-size: 3rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons,
  .emergency-numbers,
  .map-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .emergency-card {
    flex-direction: column;
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .experience-stats {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    padding: 120px 0 60px;
  }
  
  .page-title {
    font-size: var(--font-size-4xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xl);
  }
  
  .hero-tagline {
    font-size: var(--font-size-lg);
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .services-grid,
  .testimonials-grid,
  .education-grid,
  .expertise-grid,
  .skills-grid,
  .achievements-grid,
  .info-grid,
  .contact-grid,
  .guidelines-grid,
  .faq-grid,
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .image-placeholder {
    width: 150px;
    height: 150px;
  }
  
  .image-placeholder i {
    font-size: 2.5rem;
  }
  
  .service-card,
  .testimonial-card,
  .education-card,
  .achievement-card,
  .info-card,
  .contact-card,
  .faq-item {
    padding: 1.5rem;
  }
  
  .timeline-content {
    margin-left: 60px !important;
  }
  
  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .cta-content h2 {
    font-size: var(--font-size-3xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-scroll {
    animation: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .theme-toggle,
  .hamburger,
  .hero-scroll,
  .btn,
  .cta,
  .emergency-contact {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .page-header {
    padding: 2rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.nav-link:focus,
.theme-toggle:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== MOBILE VIEWPORT TUNING ===== */
html { -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }

@media (max-width: 768px) {
  .btn, button {
    min-height: 44px;
    padding: 12px 18px;
  }
  .nav-link { min-height: 44px; }
  .form-group { margin-bottom: 1rem; }
  input, select, textarea {
    font-size: 16px;
    padding: 12px;
  }
  .hero-title { line-height: 1.2; }
  .hero-subtitle { line-height: 1.4; }
}

@media (max-width: 480px) {
  .btn, button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: var(--font-size-md);
  }
  .nav-link {
    padding: 12px 10px;
  }
  .container, .nav-container {
    padding: 0 12px;
  }
  input, select, textarea {
    font-size: 16px;
    padding: 12px;
  }
  label { font-size: var(--font-size-md); }
  .form-actions .btn { width: 100%; }
}

/* Increase tap targets on touch devices */
@media (pointer: coarse) {
  .social-links a {
    width: 48px;
    height: 48px;
  }
}

/* ===== HOMEPAGE CENTERING ===== */
.home .hero { display: flex; align-items: center; justify-content: center; text-align: center; }
.home .hero-container { justify-items: center; align-items: center; text-align: center; }
.home .hero-content { text-align: center; }
.home .hero-buttons { justify-content: center; }

.home .services .section-header,
.home .testimonials .section-header,
.home .cta .cta-content,
.home .experience .experience-text { text-align: center; }

.home .services-grid,
.home .testimonials-grid,
.home .experience-stats { justify-content: center; align-items: center; }

.home .service-card,
.home .testimonial-card,
.home .stat { text-align: center; }

.home .cta .cta-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.home .footer-content { text-align: center; }
.home .footer-section ul { text-align: center; }

@media (max-width: 1024px) {
  .home .hero-container { grid-template-columns: 1fr; }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .service-card,
  .testimonial-card,
  .education-card,
  .achievement-card,
  .info-card,
  .contact-card,
  .faq-item {
    border: 2px solid var(--border-color);
  }
}
