/* ============================================================
   KIMVER IMAN PORTFOLIO — MAIN STYLESHEET
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Core palette - Dark mode defaults */
  --bg:            #0d0d14;
  --bg-2:          #13131f;
  --bg-card:       #1a1a2e;
  --bg-card-hover: #1f1f35;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(99,102,241,0.4);

  --text:          #f0f0f8;
  --text-muted:    #8b8ba7;
  --text-subtle:   #555570;

  --accent:        #6366f1;
  --accent-2:      #8b5cf6;
  --accent-glow:   rgba(99,102,241,0.25);
  --accent-light:  rgba(99,102,241,0.12);

  --green:         #10b981;
  --red:           #ef4444;

  /* Typography */
  --font-body:     'Inter', system-ui, sans-serif;
  --font-display:  'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-py:    clamp(60px, 8vw, 100px);
  --container:     1240px;
  --radius:        12px;
  --radius-lg:     20px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --transition:    0.3s var(--ease);
}

[data-theme="light"] {
  --bg:            #f8f9fc;
  --bg-2:          #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f3f4ff;
  --border:        rgba(0,0,0,0.08);
  --border-hover:  rgba(99,102,241,0.35);

  --text:          #111118;
  --text-muted:    #5c5c78;
  --text-subtle:   #a0a0b8;

  --accent-glow:   rgba(99,102,241,0.12);
  --accent-light:  rgba(99,102,241,0.08);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.btn--white:hover { transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal { transition-delay: var(--delay, 0s); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header.scrolled {
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

[data-theme="light"] .header.scrolled {
  background: rgba(248,249,252,0.88);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.logo__name { color: var(--text); }

.nav { margin-left: auto; }

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

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover { color: var(--text); background: var(--accent-light); }
.nav__link.active { color: var(--accent); }

.nav__link--cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  padding: 9px 20px;
  margin-left: 8px;
}
.nav__link--cta:hover { opacity: 0.9; background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important; }

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.theme-toggle:hover { background: var(--accent-glow); }

.theme-toggle__icon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: 100px; left: -50px;
  animation-delay: 3s;
}
.hero__orb--3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: 5s;
  opacity: 0.18;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.97); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 0 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  transition: all var(--transition);
}
.skill-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.hero__stats { padding: 32px 0 40px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   NICHES
   ============================================================ */
.niches { background: var(--bg-2); }

.niches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  cursor: default;
}

.niche-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.niche-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.niche-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.niche-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--bg); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 28px;
}

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

/* ---------- PROJECT CARD ---------- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: grid;
  grid-template-rows: auto 1fr;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px var(--border-hover);
  transform: translateY(-5px);
}

.project-card__image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-2);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__content {
  padding: 28px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 3px 10px;
  border-radius: 6px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.project-card__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 22px;
}

.project-card__features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.project-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card__link:hover { gap: 12px; }

/* ============================================================
   MOCKUPS — browser-style CSS art for each niche
   ============================================================ */
.project-card__mockup {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mockup__browser {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.mockup__bar {
  height: 28px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.mockup__bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mockup__bar span:nth-child(1) { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #febc2e; }
.mockup__bar span:nth-child(3) { background: #28c840; }

.mockup__screen {
  height: 180px;
  padding: 12px;
  overflow: hidden;
  position: relative;
}

/* Shared mock elements */
.mock-header {
  height: 28px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 6px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* --- Directory mockup --- */
.mockup--directory .mockup__screen { background: #0f0f1a; }
.mock-search {
  height: 20px;
  background: var(--bg-card);
  border-radius: 100px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mock-card {
  height: 40px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mock-card.featured {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* --- Healthcare mockup --- */
.mockup--healthcare .mockup__screen { background: #0a1628; }
.mock-course-grid { display: flex; flex-direction: column; gap: 8px; }
.mock-course-card {
  height: 36px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0 8px;
  display: flex;
  align-items: center;
}
.mock-progress {
  height: 5px;
  background: linear-gradient(90deg, var(--green), #34d399);
  border-radius: 100px;
  width: 40%;
}

/* --- E-commerce mockup --- */
.mockup--ecommerce .mockup__screen { background: #0d0d14; }
.mock-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.mock-product {
  height: 52px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-2));
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mock-cart-bar {
  height: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  opacity: 0.7;
}

/* --- Real estate mockup --- */
.mockup--realestate .mockup__screen { background: #0d1420; }
.mock-map {
  height: 80px;
  background: linear-gradient(135deg, #1a2a1a, #2d3f2d);
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.mock-map::after {
  content: '📍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}
.mock-listings { display: flex; flex-direction: column; gap: 6px; }
.mock-listing-card {
  height: 28px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* --- Restaurant mockup --- */
.mockup--restaurant .mockup__screen { background: #1a0d08; }
.mock-menu { display: flex; flex-direction: column; gap: 8px; }
.mock-menu-item {
  height: 32px;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

/* --- SaaS mockup --- */
.mockup--saas .mockup__screen {
  background: #0a0a18;
  display: flex;
  padding: 0;
}
.mock-sidebar {
  width: 40px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.mock-dashboard { flex: 1; padding: 10px; }
.mock-kpi-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.mock-kpi {
  height: 36px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mock-chart {
  height: 70px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.mock-chart::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 0%, var(--accent-light) 50%, transparent 100%);
  border-bottom: 2px solid var(--accent);
  clip-path: polygon(0 80%, 10% 60%, 20% 70%, 30% 40%, 40% 50%, 50% 30%, 60% 45%, 70% 20%, 80% 35%, 90% 15%, 100% 25%, 100% 100%, 0 100%);
}

/* --- Job Board mockup --- */
.mockup--jobboard .mockup__screen { background: #0d0d14; }
.mock-jobs { display: flex; flex-direction: column; gap: 6px; }
.mock-job-row {
  height: 26px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mock-job-row:first-child { border-color: var(--accent); }

/* --- Brand mockup --- */
.mockup--brand .mockup__screen { background: #0d0d14; }
.mock-hero-personal {
  height: 60px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 8px;
  margin-bottom: 10px;
  opacity: 0.7;
}
.mock-blog-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.mock-blog-card {
  height: 50px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* --- Booking mockup --- */
.mockup--booking .mockup__screen { background: #0a1020; }
.mock-calendar { padding: 4px; }
.mock-cal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.mock-cal-day {
  height: 28px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mock-cal-day.available { border-color: var(--green); background: rgba(16,185,129,0.1); }
.mock-cal-day.selected { background: var(--accent); border-color: var(--accent); }

/* --- Crypto mockup --- */
.mockup--crypto .mockup__screen {
  background: #080814;
  display: flex;
  padding: 0;
}
.dark-sidebar {
  width: 38px;
  background: #111;
  border-right: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.mock-crypto-main { flex: 1; padding: 10px; }
.mock-price-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.mock-price-card {
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.mock-price-card.green { border-color: var(--green); background: rgba(16,185,129,0.15); }
.mock-price-card.red { border-color: var(--red); background: rgba(239,68,68,0.15); }
.crypto-chart::after {
  background: linear-gradient(to right, transparent, rgba(16,185,129,0.1) 60%, transparent);
  border-bottom-color: var(--green);
  clip-path: polygon(0 70%, 15% 85%, 25% 65%, 35% 75%, 45% 45%, 55% 55%, 65% 30%, 75% 40%, 85% 20%, 100% 30%, 100% 100%, 0 100%);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about__visual { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.about__avatar { position: relative; }

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 20px 60px var(--accent-glow);
}

.about__badge-float {
  position: absolute;
  bottom: -12px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.about__tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tech-item {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 5px 14px;
  border-radius: 8px;
}

.about__content > p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}

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

.value-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.value-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

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

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.testimonial-card__stars {
  font-size: 0.9rem;
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card blockquote {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__author strong { display: block; font-size: 0.9rem; }
.testimonial-card__author span { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__info .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.contact__info > p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin: 16px 0 28px;
}

.contact__channels { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-channel:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-channel__icon { font-size: 1.3rem; }

.contact-channel strong { display: block; font-size: 0.9rem; }
.contact-channel span { font-size: 0.82rem; color: var(--text-muted); }

.contact__availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.availability-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ---------- CONTACT FORM ---------- */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  resize: vertical;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--border); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  padding-top: 56px;
  padding-bottom: 40px;
  align-items: start;
}

.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 0.8rem; color: var(--text-subtle); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 90px;
  right: 32px;
  background: var(--green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--radius);
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; position: fixed; inset: 0; top: 0; background: var(--bg); z-index: 99; align-items: center; justify-content: center; }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; gap: 8px; text-align: center; }
  .nav__link { font-size: 1.4rem; padding: 14px 32px; }
  .hamburger { display: flex; z-index: 100; }

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

  .about__inner { grid-template-columns: 1fr; }
  .about__visual { align-items: center; }
  .avatar-placeholder { width: 160px; height: 160px; font-size: 2.2rem; }

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

  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .niches__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr; }
  .project-card__features { grid-template-columns: 1fr; }
  .back-to-top { bottom: 20px; right: 20px; }
  .toast { right: 20px; bottom: 76px; }
}

@media (max-width: 400px) {
  .niches__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
