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

/* Self-hosted Inter font (no third-party CDN) */
@import url('../fonts/inter.css') layer(fonts);

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg-dark: #0f172a;
  --bg-section: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --border-color: #334155;
  --gradient-1: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-2: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  /* Optimize for Core Web Vitals */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SKIP TO CONTENT (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION (Accessibility) ===== */
@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;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* ===== LANGUAGE TOGGLE ===== */
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light) !important;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0 !important;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-lang::before {
  content: "🌐";
  font-size: 0.75rem;
  margin-right: 2px;
}

.nav-lang:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  background: transparent;
  border: none;
}

.btn-ghost:hover {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
  transform: translateX(4px);
}

.hero-pet-link {
  margin-top: 24px;
}
@media (max-width: 768px) {
  .nav-lang {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-logo-icon {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  background: rgba(99, 102, 241, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient-1) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero-logo-area {
  margin: 12px 0;
  max-width: 100%;
}

.hero-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 65vh;
  object-fit: contain;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.hero-proof {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    width: min(100%, 680px);
    margin: 0 auto;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-proof {
    gap: 16px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 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;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.portfolio-image {
  width: 100%;
  height: 220px;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.8;
}

.portfolio-image.alt-1 {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.portfolio-image.alt-2 {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.portfolio-image.alt-3 {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.portfolio-image.alt-4 {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}

.portfolio-image.alt-5 {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.portfolio-image.alt-6 {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.portfolio-body {
  padding: 28px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.portfolio-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  font-weight: 500;
}

.portfolio-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: gap 0.2s ease;
}

.portfolio-link:hover {
  gap: 10px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gradient-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.about-image-border {
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-skill {
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-light);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

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

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

/* ===== SERVICES PAGE SPECIFIC ===== */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-detailed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-detailed-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-detailed-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.service-detailed-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-detailed-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  text-align: left;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 700;
}

.service-price {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.service-price .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
}

.service-price .price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== CASE STUDIES ===== */
.case-study {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
}
.case-study:hover {
  border-color: var(--primary);
}
.case-study-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}
.case-study-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.case-study-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.case-study-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.case-study-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.case-study-section {
  margin-bottom: 20px;
}
.case-study-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.case-study-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.case-study-preview {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
  .case-study {
    padding: 24px;
  }
  .case-study-header h3 {
    font-size: 1.4rem;
  }
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}
.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.blog-card-link {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.blog-card-link:hover {
  gap: 10px;
}
.blog-card-readtime {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ===== BLOG ARTICLE ===== */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}
.blog-article-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog-article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-article-header .blog-card-date {
  font-size: 0.95rem;
}
.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-light);
}
.blog-article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}
.blog-article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary-light);
}
.blog-article-body p {
  margin-bottom: 20px;
  color: var(--text-muted);
}
.blog-article-body ul, .blog-article-body ol {
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-left: 24px;
}
.blog-article-body li {
  margin-bottom: 8px;
}
.blog-article-body strong {
  color: var(--text-light);
}
.blog-article-body .highlight-box {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.blog-article-body .highlight-box p {
  margin-bottom: 0;
}
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRICING TABLE ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0;
}

.pricing-currency {
  font-size: 1.2rem;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
}

/* ===== PROCESS / HOW IT WORKS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary-light);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 18px;
  }

  .nav-links a.nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .about-image-placeholder {
    aspect-ratio: 4/3;
  }

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

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

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

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

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
 * HERO ANIMATIONS — Particle glow, parallax,
 * staggered entrance, gradient background
 * ========================================== */

/* Animated gradient background via ::before (no layout trigger) */
.hero {
  position: relative;
  contain: content layout style;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: hero-bg-shift 20s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-bg-shift {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(2%); }
  66% { transform: translateX(-2%); }
}

/* Canvas for particle system */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in;
  will-change: opacity;
}

#hero-canvas.loaded {
  opacity: 1;
}

/* Hero content above canvas/background */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Staggered entrance delays */
.hero-badge { transition-delay: 0ms; }

.hero-content.fade-in .hero-logo-area,
.hero-content.fade-in h1 {
  transition-delay: 200ms;
}

.hero-tagline { transition-delay: 400ms; }

.hero-actions { transition-delay: 600ms; }

.hero-proof { transition-delay: 800ms; }

/* will-change for scroll-parallax targets */
.hero-badge,
.hero-logo-area,
.hero-tagline,
.hero-actions,
.hero-proof {
  will-change: transform, opacity;
}

/* Badge glow pulse */
@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
}

.hero-badge {
  animation: badge-glow 3s ease-in-out infinite;
}

/* Button hover glow */
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

/* ===== PARALLAX-READY: reset entrance delays after intro ===== */
.hero.parallax-ready .hero-badge,
.hero.parallax-ready .hero-logo-area,
.hero.parallax-ready .hero-content h1,
.hero.parallax-ready .hero-tagline,
.hero.parallax-ready .hero-actions,
.hero.parallax-ready .hero-proof {
  transition-delay: 0ms !important;
}

/* ===== MOBILE & REDUCED MOTION OVERRIDES ===== */

/* Canvas off on mobile */
@media (max-width: 767px) {
  #hero-canvas { display: none; }
}

/* Tablet: fewer particles handled by JS, keep canvas */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-badge,
  .hero-logo-area,
  .hero-tagline,
  .hero-actions,
  .hero-proof {
    will-change: unset;
  }
}

/* Mobile: faster entrance */
@media (max-width: 768px) {
  .hero-badge { transition-delay: 0ms; }
  .hero-content.fade-in .hero-logo-area,
  .hero-content.fade-in h1 { transition-delay: 100ms; }
  .hero-tagline { transition-delay: 200ms; }
  .hero-actions { transition-delay: 300ms; }
  .hero-proof { transition-delay: 400ms; }
}

/* Reduced motion: kill all animations */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  #hero-canvas {
    display: none;
  }
  .hero-badge {
    animation: none;
    box-shadow: none;
  }
  .btn-primary:hover,
  .btn-secondary:hover {
    box-shadow: none;
    transform: none;
  }
}

/* ==========================================
 * ORBITAL ICONS — floating around hero logo
 * ========================================== */

.orbital-icons {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  animation: orbit-spin 20s linear infinite;
  transform-origin: center;
}

.orbit-icon svg {
  width: 22px;
  height: 22px;
}

/* Each icon at a different angle */
.orbit-icon-1 { animation-delay: 0s; }
.orbit-icon-2 { animation-delay: -2.5s; }
.orbit-icon-3 { animation-delay: -5s; }
.orbit-icon-4 { animation-delay: -7.5s; }
.orbit-icon-5 { animation-delay: -10s; }
.orbit-icon-6 { animation-delay: -12.5s; }
.orbit-icon-7 { animation-delay: -15s; }
.orbit-icon-8 { animation-delay: -17.5s; }

@keyframes orbit-spin {
  0% {
    transform: rotate(0deg) translateX(130px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

@media (max-width: 768px) {
  .orbital-icons { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-icon { animation: none; display: none; }
}

/* ===== TELEGRAM FLOATING BUTTON ===== */
.telegram-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  animation: telegram-pop-in 0.6s ease-out forwards, telegram-wiggle 3s ease-in-out 1.5s infinite;
  opacity: 0;
  transform-origin: center;
}

@keyframes telegram-pop-in {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes telegram-wiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(8deg) scale(1.05); }
  30% { transform: rotate(-6deg) scale(1.05); }
  45% { transform: rotate(4deg) scale(1.05); }
  60% { transform: rotate(-2deg); }
  80% { transform: rotate(1deg); }
}

.telegram-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
}

.telegram-btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.telegram-btn svg {
  width: 30px;
  height: 30px;
}

@media print {
  .telegram-btn { display: none; }
}

@media (max-width: 768px) {
  .telegram-btn {
    width: 56px;
    height: 56px;
    bottom: 16px;
    left: 16px;
  }
  .telegram-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Move Telegram button above cookie banner on first visit */
.has-cookie-banner .telegram-btn {
  bottom: 96px;
}

@media (max-width: 768px) {
  .has-cookie-banner .telegram-btn {
    bottom: 96px;
  }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-section, #1e293b);
  border-top: 1px solid var(--border-color, #334155);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-light, #f1f5f9);
  box-sizing: border-box;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#cookie-banner span {
  flex: 1;
  min-width: 200px;
  line-height: 1.6;
}

.cookie-btn-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  background: var(--gradient-1, #6366f1);
  color: white;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

@media (max-width: 640px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }
  #cookie-banner span {
    min-width: 0;
  }
  .cookie-btn-group {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
  }
}

/* ==========================================
 * MOTION ANIMATIONS — Scroll-reveal,
 * staggered cards, counter improvements
 * ========================================== */

/* Scroll-reveal: sections glide in */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Staggered cards: children animate with delay */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-grid.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-grid.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-grid.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-grid.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-grid.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-grid.visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger-grid.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion: skip all */
@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1;
    transform: none;
  }
  .stagger-grid > * {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
 * LANGUAGE SELECTOR
 * ========================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1;
}

.lang-btn .lang-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text-light);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.lang-btn svg:not(.lang-arrow) {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-btn .lang-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100px;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-dropdown a:hover,
.lang-dropdown a:focus-visible {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-light);
}

.lang-dropdown a.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

/* ===== TEAM SECTION ===== */
.about-team {
  margin-top: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

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

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-1);
  z-index: 0;
}

.team-avatar-inner {
  position: relative;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  background: var(--bg-dark);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.team-member h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.team-member .team-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.team-member .team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ===== ESTIMATOR PAGE (match reference design) ===== */
.estimator-page {
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.estimator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Left: Form ---- */
.estimator-form {
  min-width: 0;
}

.estimator-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6366f1;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.estimator-heading {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 12px;
}

.est-gradient {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.estimator-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 500px;
}

.est-section {
  margin-bottom: 28px;
}

.est-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Platform buttons */
.platform-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
}

.platform-btn:hover {
  border-color: #6366f1;
  color: var(--text-light);
}

.platform-btn.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

.platform-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Scale slider */
.scale-slider {
  margin-bottom: 0;
}

.slider-track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.slider-track input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 2;
  margin: 0;
}

.slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.slider-track input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6366f1;
  cursor: pointer;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #6366f1;
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.scale-labels .active-label {
  color: #6366f1;
  font-weight: 600;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-btn {
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
}

.feature-btn:hover {
  border-color: #6366f1;
  color: var(--text-light);
}

.feature-btn.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

/* ---- Right: Result Card ---- */
.estimator-result {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 36px 32px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.result-budget-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.result-budget {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.result-budget-plus {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 28px;
}

.result-details {
  margin-bottom: 24px;
}

.result-detail {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #334155;
  font-size: 0.9rem;
}

.result-detail:last-of-type {
  border-bottom: none;
}

.result-detail span:first-child {
  color: #94a3b8;
}

.result-detail span:last-child {
  color: #f1f5f9;
  font-weight: 600;
}

.btn-estimate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-estimate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12);
}

.btn-estimate svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.result-disclaimer {
  margin-top: 14px;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
  .estimator-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .estimator-heading {
    font-size: 1.6rem;
  }
  .estimator-result {
    position: static;
  }
  .platform-group {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SERVICE CARD IMAGES ===== */
.service-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #0f172a;
  margin-bottom: 16px;
  display: block;
}

/* ===== BLOG CARD IMAGES ===== */
.blog-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #0f172a;
  margin-bottom: 20px;
  display: block;
}

/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 768px) {
  .estimator-wrapper {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .lang-switcher {
    margin-left: 0;
    margin-top: 4px;
  }
  .lang-dropdown {
    right: auto;
    left: 0;
  }
  .platform-group {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
