:root {
  --bg: #0b0d13;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f2ff;
  --muted: #c0bdd4;
  --accent: #9b6dff;
  --accent-strong: #ff7ad9;
  --accent-soft: rgba(155, 109, 255, 0.2);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 70px rgba(5, 6, 18, 0.5);
  --glow: 0 0 40px rgba(155, 109, 255, 0.35);
}

:root.light {
  --bg: #fdfbff;
  --surface: rgba(16, 17, 26, 0.04);
  --surface-strong: rgba(16, 17, 26, 0.08);
  --text: #1c1a2a;
  --muted: #5b5a6f;
  --accent: #6d4aff;
  --accent-strong: #f255ad;
  --accent-soft: rgba(109, 74, 255, 0.18);
  --border: rgba(16, 17, 26, 0.12);
  --shadow: 0 22px 55px rgba(19, 19, 36, 0.12);
  --glow: 0 0 30px rgba(109, 74, 255, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, rgba(155, 109, 255, 0.2), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(255, 122, 217, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

main {
  padding: 130px 8vw 90px;
}

.section {
  margin: 130px 0;
}

.section-body {
  display: grid;
  gap: 32px;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.slide-left {
  transform: translateX(-24px);
}

.fade-in.slide-right {
  transform: translateX(24px);
}

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

.section-title {
  max-width: 560px;
  margin-bottom: 48px;
}

.section-title p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  font-weight: 600;
}

.section-title h2 {
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  margin-top: 12px;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-title p::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  margin-right: 10px;
  vertical-align: middle;
}

.ambient span {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  z-index: -1;
}

.ambient span:nth-child(1) {
  background: rgba(155, 109, 255, 0.45);
  top: -160px;
  right: -60px;
}

.ambient span:nth-child(2) {
  background: rgba(58, 214, 255, 0.22);
  bottom: -140px;
  left: -80px;
}

.ambient span:nth-child(3) {
  background: rgba(255, 122, 217, 0.18);
  top: 46vh;
  left: 34vw;
}

.site-header {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: 18px;
  backdrop-filter: blur(26px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

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

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--glow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 260px;
  background: radial-gradient(circle, rgba(155, 109, 255, 0.25), transparent 70%);
  opacity: 0.8;
  animation: shimmer 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4.2vw, 3.9rem);
  margin: 18px 0 26px;
  letter-spacing: -0.02em;
}

.hero-title {
  animation: fadeIn 0.9s ease forwards;
  opacity: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-badges span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-clip: padding-box;
  overflow: hidden;
  white-space: nowrap;
}

.hero-badges span:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-badges span:nth-child(2) {
  animation-delay: 0.25s;
}

.text-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  color: var(--muted);
  font-weight: 500;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
}

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

.hero-cta {
  animation: popIn 0.7s ease forwards;
  opacity: 0;
}

.hero-cta:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-cta:nth-child(2) {
  animation-delay: 0.35s;
}

.primary,
.ghost {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 40px var(--accent-soft);
}

.ghost {
  border-color: var(--border);
  color: var(--text);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-highlight {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-highlight h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-highlight p {
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-6%);
  }
  50% {
    transform: translateX(6%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-badges span,
  .hero-card,
  .hero-title,
  .hero-cta {
    animation: none;
    opacity: 1;
  }
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  position: relative;
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(155, 109, 255, 0.35), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.profile {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.profile h3 {
  margin-bottom: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.stats h4 {
  font-size: 1.6rem;
}

.callout {
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.about-card {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-card ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.service-grid article {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.service-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(155, 109, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(12, 8, 30, 0.45);
}

.service-grid article:hover::before {
  opacity: 1;
}

.service-grid h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.service-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.chip-grid span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chip-grid span:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 109, 255, 0.5);
}

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

.project-grid article {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 14px;
  min-height: 220px;
  box-shadow: var(--shadow);
}

.project-grid a {
  color: var(--accent);
  font-weight: 600;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline div {
  border-left: 2px solid var(--border);
  padding-left: 18px;
}

.timeline .date {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.contact-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

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

.contact-form button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 35px var(--accent-soft);
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--glow);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer {
  padding: 40px 8vw 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text);
}

.back-to-top {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 18px 45px rgba(18, 140, 126, 0.4);
  z-index: 20;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 55px rgba(18, 140, 126, 0.5);
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 96px;
  display: grid;
  gap: 12px;
  z-index: 30;
}

.toast {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(20, 20, 30, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.4s ease;
}

.toast.success {
  border-color: rgba(74, 222, 128, 0.4);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.4);
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 90px;
    right: 5vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

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

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  main {
    padding: 110px 6vw 60px;
  }

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

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