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

:root {
  --bg: #080b14;
  --bg-2: #0d1120;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.4);
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILS ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--purple-light); }

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.08);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 500px; height: 500px;
  background: rgba(124, 58, 237, 0.18);
  top: -100px; left: -100px;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: rgba(59, 130, 246, 0.12);
  bottom: -50px; right: -50px;
}

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.avatars { display: flex; }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--bg);
  margin-left: -8px;
  color: #fff;
}
.avatars .avatar:first-child { margin-left: 0; }

.social-proof__text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.problem .section-title { margin-bottom: 40px; }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.problem__card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.problem__card:hover { border-color: var(--border-hover); }
.problem__card p { color: var(--text-muted); font-size: 15px; }

.problem__icon { display: block; font-size: 32px; margin-bottom: 12px; }

/* ===== SERVICES ===== */
.services { padding: 100px 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.service-card--featured {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(59, 130, 246, 0.04));
}

.service-card__icon { font-size: 36px; margin-bottom: 16px; display: block; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}

.service-card__tag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 0 16px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.step__content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__content p {
  font-size: 14px;
  color: var(--text-muted);
}

.step__connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  margin-top: 28px;
  opacity: 0.4;
}

@media (max-width: 700px) {
  .step__connector { display: none; }
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step { max-width: 100%; }
}

/* ===== WHY ME ===== */
.why-me { padding: 100px 0; }

.why-me__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .why-me__inner { grid-template-columns: 1fr; gap: 40px; }
}

.why-me__text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.why-me__stats {
  display: flex;
  gap: 32px;
}

.stat { text-align: center; }

.stat__number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

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

.why-me__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--border-hover); }

.feature__icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.feature strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portfolio__filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.filter-btn--active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

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

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.15);
}
.portfolio-card.hidden {
  display: none;
}

.portfolio-card__img {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-card__img--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(6, 182, 212, 0.15));
}
.portfolio-card__img--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.15));
}
.portfolio-card__img--orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 179, 8, 0.15));
}
.portfolio-card__img--cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.15));
}
.portfolio-card__img--pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(124, 58, 237, 0.15));
}

.portfolio-card__emoji {
  font-size: 52px;
  transition: transform 0.3s ease;
}
.portfolio-card:hover .portfolio-card__emoji {
  transform: scale(1.15);
}

.portfolio-card__overlay {
  position: absolute;
  top: 12px; right: 12px;
}

.portfolio-card__tag-type {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.portfolio-card__body {
  padding: 24px;
}

.portfolio-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.portfolio-card__body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.portfolio-card__techs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.testimonial-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

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

.testimonial-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-card__author .avatar {
  margin-left: 0;
  width: 40px; height: 40px;
  font-size: 12px;
}

.testimonial-card__author strong { display: block; font-size: 14px; }
.testimonial-card__author span { font-size: 12px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__inner .section-title { margin-bottom: 12px; }
.contact__inner .section-subtitle { margin-bottom: 48px; }

/* FORM */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

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

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

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

.form-group select option { background: var(--bg-card); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.contact__alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.whatsapp-btn:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

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

.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__inner p { font-size: 14px; color: var(--text-muted); }
.footer__copy { font-size: 12px !important; margin-top: 4px; }

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

.hero__inner > * {
  animation: fadeUp 0.6s ease both;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.2s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.4s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.5s; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
  color: #22c55e;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 999;
  animation: fadeUp 0.3s ease;
}
