/* ╔══════════════════════════════════════════╗
   ║           CSS CUSTOM PROPERTIES          ║
   ╚══════════════════════════════════════════╝ */
/* ╔══════════════════════════════════════════╗
   ║           DARK THEME (DEFAULT)           ║
   ╚══════════════════════════════════════════╝ */
:root {
  color-scheme: dark;
  --c-primary: #1e293b;
  --c-primary-deep: #0f172a;
  --c-primary-light: #334155;
  --c-primary-rgb: 30, 41, 59;
  --c-accent: #f97316;
  --c-accent-hover: #fb923c;
  --c-accent-rgb: 249, 115, 22;
  --c-accent-glow: rgba(249, 115, 22, 0.3);
  --c-success: #10b981;
  --c-success-rgb: 16, 185, 129;
  --c-status-danger: #ef4444;
  --c-status-warning: #eab308;
  --c-status-success: #22c55e;
  --c-brand-telegram: #0088cc;
  --c-brand-telegram-rgb: 0, 136, 204;
  --c-brand-email: #6366f1;
  --c-brand-email-rgb: 99, 102, 241;
  --c-brand-web: var(--c-accent);
  --c-footer-overlay: rgba(var(--c-on-surface-rgb), 0.06);
  --c-button-outline: rgba(var(--c-on-surface-rgb), 0.3);
  --c-bg: #0f172a;
  --c-bg-rgb: 15, 23, 42;
  --c-bg-alt: #1e293b;
  --c-surface: #111827;
  --c-surface-alt: #1f2937;
  --c-surface-card: #141e2d;
  --c-surface-border: #334155;
  --c-surface-overlay: rgba(255, 255, 255, 0.08);
  --c-surface-overlay-strong: rgba(255, 255, 255, 0.12);
  --c-text: #f1f5f9;
  --c-text-muted: #94a3b8;
  --c-text-light: #64748b;
  --c-on-surface: #f8fafc;
  --c-on-surface-rgb: 248, 250, 252;
  --c-hero-start: #1e293b;
  --c-hero-end: #0f172a;
  --c-hero-accent: #38bdf8;
  --c-nav-surface: rgba(255, 255, 255, 0.08);
  --c-nav-border: rgba(255, 255, 255, 0.08);
  --c-card-surface: #0f172a;
  --c-card-surface-muted: rgba(255, 255, 255, 0.06);
  --c-overlay-dark: rgba(255, 255, 255, 0.10);
  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 30px var(--c-accent-glow);
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ╔══════════════════════════════════════════╗
   ║           LIGHT THEME OVERRIDE           ║
   ╚══════════════════════════════════════════╝ */
body.light-theme {
  color-scheme: light;
  --c-primary: #0a2f44;
  --c-primary-deep: #061e2e;
  --c-primary-light: #134b6e;
  --c-primary-rgb: 10, 47, 68;
  --c-accent-hover: #ea650e;
  --c-accent-glow: rgba(249, 115, 22, 0.25);
  --c-success: #10b981;
  --c-brand-telegram: #0088cc;
  --c-brand-telegram-rgb: 0, 136, 204;
  --c-brand-email: #6366f1;
  --c-brand-email-rgb: 99, 102, 241;
  --c-brand-web: var(--c-accent);
  --c-footer-overlay: rgba(var(--c-on-surface-rgb), 0.06);
  --c-button-outline: rgba(var(--c-on-surface-rgb), 0.3);
  --c-bg: #f8fafc;
  --c-bg-rgb: 248, 250, 252;
  --c-bg-alt: #f1f5f9;
  --c-surface: #ffffff;
  --c-surface-alt: #f8fafc;
  --c-surface-card: #ffffff;
  --c-surface-border: #e2e8f0;
  --c-surface-overlay: rgba(15, 23, 42, 0.05);
  --c-surface-overlay-strong: rgba(15, 23, 42, 0.08);
  --c-brand-telegram: #0088cc;
  --c-brand-email: #6366f1;
  --c-brand-web: var(--c-accent);
  --c-footer-overlay: rgba(var(--c-on-surface-rgb), 0.06);
  --c-button-outline: rgba(var(--c-on-surface-rgb), 0.3);
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;
  --c-on-surface: #0f172a;
  --c-on-surface-rgb: 15, 23, 42;
  --c-hero-start: #0a2f44;
  --c-hero-end: #134b6e;
  --c-hero-accent: #0ea5e9;
  --c-nav-surface: rgba(15, 23, 42, 0.08);
  --c-nav-border: rgba(15, 23, 42, 0.08);
  --c-card-surface: #ffffff;
  --c-card-surface-muted: rgba(15, 23, 42, 0.04);
  --c-overlay-dark: rgba(15, 23, 42, 0.08);
}
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

button,
a,
input,
select,
textarea {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

button:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
.contact-channel:focus-visible,
.footer-social a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(var(--c-accent-rgb), 0.35);
  outline-offset: 4px;
}

::placeholder {
  color: var(--c-text-light);
  opacity: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SECTION COMMON STYLES */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--c-accent-rgb), 0.08);
  color: var(--c-accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px var(--c-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid var(--c-button-outline);
}
.btn-outline:hover {
  background: rgba(var(--c-on-surface-rgb), 0.1);
  border-color: rgba(var(--c-on-surface-rgb), 0.6);
}

.btn-dark {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-dark:hover {
  background: var(--c-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 12px 28px;
  font-size: 0.95rem;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--c-nav-surface);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-nav-border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(var(--c-bg-rgb), 0.92);
  backdrop-filter: blur(14px);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--c-text);
}
.logo span { color: var(--c-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
  transition: all 0.2s ease;
}
.nav-links a:hover {
  background: var(--c-bg-alt);
  color: var(--c-accent);
}

.nav-cta {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--c-surface-card);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--c-hero-start) 0%, var(--c-hero-end) 40%, rgba(var(--c-on-surface-rgb), 0.08) 100%);
  color: var(--c-white);
  padding: 140px 0 110px;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: heroFloat 12s ease-in-out infinite;
}
.hero::before {
  width: 600px;
  height: 600px;
  background: var(--c-accent);
  top: -200px;
  right: -100px;
}
.hero::after {
  width: 400px;
  height: 400px;
  background: var(--c-hero-accent);
  bottom: -100px;
  left: -80px;
  animation-delay: -6s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface-overlay);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--c-on-surface-rgb), 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.85;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(var(--c-on-surface-rgb), 0.1);
}

.hero-stat__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat__label {
  font-size: 0.85rem;
  color: rgba(var(--c-on-surface-rgb), 0.6);
}

.hero-visual {
  position: relative;
  height: 480px;
}

.float-card {
  position: absolute;
  background: var(--c-card-surface-muted);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--c-on-surface-rgb), 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: floatCard 8s ease-in-out infinite;
}

.float-card--main {
  width: 82%;
  height: 260px;
  top: 40px;
  right: 0;
  border-radius: var(--radius-xl);
}

.float-card--main .fc-dots {
  position: absolute;
  top: 13px;
  right: 18px;
  display: flex;
  gap: 6px;
}
.float-card--main .fc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--c-on-surface-rgb), 0.25);
}
.float-card--main .fc-dots span:first-child { background: var(--c-status-danger); }
.float-card--main .fc-dots span:nth-child(2) { background: var(--c-status-warning); }
.float-card--main .fc-dots span:last-child { background: var(--c-status-success); }

.float-card--main .fc-body {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.fc-block {
  height: 70px;
  background: var(--c-card-surface-muted);
  border-radius: var(--radius-sm);
}
.fc-block--wide { grid-column: span 3; height: 50px; }
.fc-block--accent { background: rgba(var(--c-accent-rgb), 0.15); }

.float-card--phone {
  width: 150px;
  height: 260px;
  bottom: 10px;
  left: 0;
  border-radius: 32px;
  animation-delay: -4s;
  z-index: 3;
}
.float-card--phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background: rgba(var(--c-on-surface-rgb), 0.3);
  border-radius: 10px;
}
.fc-phone-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-phone-block {
  height: 24px;
  background: var(--c-card-surface-muted);
  border-radius: 8px;
}
.fc-phone-block--lg { height: 60px; }
.fc-phone-block--accent {
  background: rgba(var(--c-accent-rgb), 0.2);
  height: 36px;
}

.float-card--stat {
  right: 10px;
  bottom: 30px;
  width: 180px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  animation-delay: -2s;
  z-index: 4;
}
.float-card--stat .fc-stat-icon {
  width: 42px;
  height: 42px;
  background: rgba(var(--c-accent-rgb), 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.1rem;
  color: var(--c-accent);
}
.float-card--stat .fc-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.float-card--stat .fc-stat-lbl {
  font-size: 0.75rem;
  color: rgba(var(--c-on-surface-rgb), 0.5);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 130px 0 80px; }
}

/* TRUST BANNER */
.trust-banner {
  background: var(--c-surface-card);
  border-bottom: 1px solid var(--c-border);
  padding: 36px 0;
}
.trust-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--c-text-light);
  font-weight: 600;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-light);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.trust-logo:hover { opacity: 0.8; }
.trust-logo i { font-size: 1.6rem; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--c-surface-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--c-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--c-accent-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: var(--c-accent);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--c-accent);
  color: var(--c-white);
  transform: scale(1.05);
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* PORTFOLIO */
#portfolio { background: var(--c-bg-alt); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.portfolio-card {
  background: var(--c-surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.portfolio-card__img {
  position: relative;
  height: 240px;
  background: linear-gradient(145deg, rgba(var(--c-on-surface-rgb), 0.08) 0%, rgba(var(--c-on-surface-rgb), 0.14) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--c-on-surface-rgb), 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}
.portfolio-card__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: var(--c-white);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}
.portfolio-card:hover .portfolio-card__overlay-btn {
  transform: translateY(0);
}
.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px 0;
}
.portfolio-tag {
  background: rgba(var(--c-accent-rgb), 0.08);
  color: var(--c-accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.portfolio-card__body {
  padding: 16px 24px 28px;
  flex: 1;
}
.portfolio-card__body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 8px;
}
.portfolio-card__body p {
  color: var(--c-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
@media (max-width: 420px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: process;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--c-surface-card);
  border: 1px solid var(--c-border);
  transition: all var(--transition);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.process-step__num {
  width: 50px;
  height: 50px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 18px;
}
.process-step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* QUOTE SECTION */
.quote-section {
  background: linear-gradient(155deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: var(--c-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20rem;
  font-weight: 900;
  opacity: 0.03;
  line-height: 1;
  font-family: Georgia, serif;
}
.quote-text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.quote-author {
  font-size: 1rem;
  opacity: 0.6;
  font-weight: 500;
}

/* CONTACT */
#contact {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  padding: 20px 0;
}
.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--c-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--c-surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  transition: all var(--transition);
}
.contact-channel:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}
.contact-channel__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-channel__icon--tg {
  background: rgba(var(--c-brand-telegram-rgb), 0.1);
  color: var(--c-brand-telegram);
}
.contact-channel__icon--web {
  background: rgba(var(--c-accent-rgb), 0.1);
  color: var(--c-accent);
}
.contact-channel__icon--email {
  background: rgba(var(--c-brand-email-rgb), 0.1);
  color: var(--c-brand-email);
}
.contact-channel__text { flex: 1; }
.contact-channel__label {
  font-size: 0.8rem;
  color: var(--c-text-light);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-channel__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.contact-form-card {
  background: var(--c-surface-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--c-bg);
  color: var(--c-text);
  transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.08);
  background: var(--c-white);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit { width: 100%; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success__icon {
  width: 72px;
  height: 72px;
  background: rgba(var(--c-success-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--c-success);
}
.form-success h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
.form-success p {
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  background: var(--c-primary-deep);
  color: var(--c-white);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo {
  color: var(--c-white);
}

.footer-brand p {
  color: rgba(var(--c-on-surface-rgb), 0.5);
  font-size: 0.95rem;
  margin-top: 14px;
  line-height: 1.8;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--c-accent);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: rgba(var(--c-on-surface-rgb), 0.55);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--c-accent); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-footer-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--c-on-surface-rgb), 0.6);
  font-size: 1.15rem;
  transition: all 0.25s;
}
.footer-social a:hover {
  background: var(--c-accent);
  color: var(--c-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--c-on-surface-rgb), 0.06);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(var(--c-on-surface-rgb), 0.35);
  font-size: 0.85rem;
}
.footer-bottom__links {
  display: flex;
  gap: 20px;
}
.footer-bottom__links a {
  color: rgba(var(--c-on-surface-rgb), 0.35);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-bottom__links a:hover { color: var(--c-accent); }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
  cursor: pointer;
  border: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--c-primary);
  box-shadow: var(--shadow-lg);
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }


/* Theme Toggle Button */
.theme-toggle {
  background: var(--c-surface-overlay);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--c-text);
  transition: all 0.2s ease;
  margin: 0 4px;
}

.theme-toggle:hover {
  background: var(--c-accent);
  color: var(--c-white);
  transform: rotate(15deg);
}

@media (max-width: 768px) {
  .theme-toggle {
    margin: 8px auto;
    width: 100%;
    border-radius: 40px;
    background: var(--c-border);
  }
}

/* ═════════════════════════════════════════════════
   INTERNATIONALIZATION (i18n) & RTL Support
   ═════════════════════════════════════════════════ */

/* Language Switcher Component */
.language-switcher {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  color: var(--c-text);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(241,245,249,0.6)' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 16px;
  padding-right: 30px;
}

body.light-theme .language-switcher {
  color: var(--c-text);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(15,23,42,0.6)' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.language-switcher:hover {
  background-color: rgba(var(--c-on-surface-rgb), 0.1);
}

.language-switcher:focus {
  outline: 3px solid rgba(var(--c-accent-rgb), 0.35);
  outline-offset: 2px;
}

.language-switcher option {
  background: var(--c-surface-card);
  color: var(--c-text);
  padding: 6px;
}

/* RTL Direction Support */
body.rtl {
  direction: rtl;
}

body.ltr {
  direction: ltr;
}

/* RTL Navigation */
body.rtl .navbar .container {
  flex-direction: row-reverse;
}

body.rtl .logo {
  order: 2;
}

body.rtl .nav-toggle {
  order: 1;
}

/* RTL Hero Section */
body.rtl .hero .container {
  grid-auto-flow: row;
}

body.rtl .hero-content {
  margin: 0 auto;
}

body.rtl .float-card--main {
  right: auto;
  left: 0;
}

body.rtl .float-card--phone {
  left: auto;
  right: 0;
}

body.rtl .float-card--main .fc-dots {
  right: auto;
  left: 18px;
}

/* RTL Service Cards */
body.rtl .service-icon {
  margin-left: auto;
  margin-right: 0;
}

/* RTL Portfolio Cards */
body.rtl .portfolio-card__tags {
  flex-direction: row-reverse;
}

/* RTL Contact Form */
body.rtl .form-row {
  grid-template-columns: 1fr 1fr;
}

body.rtl .contact-channel {
  flex-direction: row-reverse;
}

body.rtl .contact-channel__icon {
  order: 2;
}

/* RTL Footer */
body.rtl .footer-grid {
  text-align: right;
}

body.rtl .footer-social {
  flex-direction: row-reverse;
}

body.rtl .back-to-top {
  left: auto;
  right: 28px;
}

/* RTL Mobile Navigation */
@media (max-width: 768px) {
  body.rtl .nav-links {
    position: fixed;
    right: 0;
    left: auto;
  }

  body.rtl .language-switcher {
    width: 100%;
    text-align: right;
    padding-left: 30px;
    padding-right: 10px;
    background-position: left 6px center;
  }
}

/* Accessibility: Screen Reader only text */
.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;
}