@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #080c14;
  --surface: #0d1321;
  --surface2: #111827;
  --border: rgba(255, 255, 255, 0.06);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --amber: #f59e0b;
  --text: #e8edf5;
  --muted: #7a8599;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* GRID BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  color: var(--muted);
}

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

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: #080c14;
}

.btn-primary:hover {
  background: #33dcff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

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

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan);
  color: #080c14;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1db954;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--cyan-dim);
  background: var(--cyan-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--cyan);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.code-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}

.code-line .kw {
  color: #7c9ef8;
}

.code-line .fn {
  color: var(--cyan);
}

.code-line .str {
  color: #7eca98;
}

.code-line .cm {
  color: var(--muted);
}

.code-num {
  color: var(--muted);
  margin-right: 16px;
  user-select: none;
}

.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--cyan);
  opacity: 0.7;
}

/* SECTION LAYOUT */
section {
  padding: 100px 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

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

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 540px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0 auto;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* SERVICES */
#services {
  background: var(--surface);
}

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

.service-card {
  background: var(--surface);
  padding: 36px 28px;
  transition: background 0.25s;
  cursor: default;
}

.service-card:hover {
  background: var(--surface2);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-card p {
  font-size: 0.875rem;
}

/* DIFFERENTIALS */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.diff-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}

.diff-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}

.diff-item h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.diff-item p {
  font-size: 0.82rem;
}

/* PROJECTS */
#projects {
  background: var(--surface);
}

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

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.project-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cyan);
  color: #080c14;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.project-body p {
  font-size: 0.82rem;
  margin-bottom: 16px;
}

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

.about-visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  background: var(--surface2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.about-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent 40%, rgba(8, 12, 20, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.about-avatar:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -15px rgba(0, 212, 255, 0.15),
    0 0 0 1px rgba(0, 212, 255, 0.25);
}

.about-avatar:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--amber);
  color: #080c14;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  white-space: nowrap;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.stat {}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* PROCESS */
#process {
  background: var(--surface);
}

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

.process-step {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 36px;
  right: -12px;
  color: var(--cyan);
  font-size: 1.2rem;
  z-index: 2;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.82rem;
}

/* CTA FINAL */
#contact {
  text-align: center;
  padding: 120px 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
}

#contact h2 {
  max-width: 680px;
  margin: 0 auto 16px;
}

#contact p {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-brand .logo span {
  color: var(--cyan);
}

.footer-brand p {
  font-size: 0.82rem;
  max-width: 260px;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

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

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

.footer-bottom span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* MOBILE NAV TOGGLE */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  h1 {
    font-size: 2.2rem;
  }

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

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

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

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

  .about-avatar {
    width: 100%;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-step::after {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

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

  .process-steps {
    grid-template-columns: 1fr;
  }

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

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

.fade-in.visible {
  opacity: 1;
  transform: none;
}