:root {
  --bg: #ffffff;
  --primary: #111827;
  --secondary: #374151;
  --accent: #2563eb;
  --light: #f9fafb;
  --border: #e5e7eb;
  --muted: #6b7280;
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 22px 60px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--primary);
  background: var(--bg);
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}

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

img {
  max-width: 100%;
  display: block;
}

button,
a,
input,
textarea {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.section-pad {
  padding: 92px 0;
}

.light-section {
  background: var(--light);
}

.site-navbar {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-navbar.nav-scrolled {
  padding: 10px 0;
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-icon {
  display: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  margin-top: 10px;
  padding: 9px 16px !important;
  color: #fff !important;
  background: var(--primary);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.13), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: clamp(1.35rem, 3.5vw, 2.2rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-text,
.section-text {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  border-radius: var(--radius);
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  transform: translateY(-2px);
}

.profile-stage {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.profile-card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--primary);
  background:
    linear-gradient(145deg, rgba(249, 250, 251, 0.9), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(229, 231, 235, 0.55) 13px);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.profile-initials {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 2.4rem;
  font-weight: 800;
}

.profile-note {
  color: var(--secondary);
  font-weight: 800;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.14);
  animation: float 6s ease-in-out infinite;
}

.shape-one {
  width: 110px;
  height: 110px;
  top: 34px;
  left: 5%;
}

.shape-two {
  width: 78px;
  height: 78px;
  right: 8%;
  bottom: 56px;
  animation-delay: 1.5s;
  background: rgba(17, 24, 39, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.hero-badge {
  position: absolute;
  right: 0;
  bottom: 82px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--secondary);
  font-weight: 700;
}

.badge-dot {
  width: 10px;
  height: 10px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stat-card,
.skill-card,
.service-card,
.project-card,
.testimonial-card,
.contact-form,
.contact-card,
.tech-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 28px;
}

.stat-number,
.stat-suffix {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
}

.stat-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.skill-card,
.service-card,
.testimonial-card {
  height: 100%;
  padding: 24px;
}

.skill-card:hover,
.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.tech-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.skill-title-row,
.service-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.skill-title-row h3,
.service-card h3,
.project-card h3,
.testimonial-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.skill-percent {
  color: var(--accent);
  font-weight: 800;
}

.progress {
  height: 8px;
  background: #eef2ff;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1s ease;
}

.service-icon,
.tech-icon,
.contact-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  font-weight: 800;
}

.service-card p,
.testimonial-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.project-card {
  height: 100%;
  overflow: hidden;
}

.project-thumb,
.modal-project-image {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--secondary);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(17, 24, 39, 0.04)),
    #f8fafc;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}

.project-thumb img,
.modal-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 24px;
}

.project-category {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  color: var(--secondary);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tech-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  font-weight: 800;
}

.testimonial-meta {
  margin-top: 20px;
}

.testimonial-meta h3 {
  font-size: 1rem;
}

.testimonial-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 26px;
}

.form-control {
  min-height: 52px;
  border-color: var(--border);
  border-radius: var(--radius);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
  min-height: 150px;
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: #166534;
  font-weight: 700;
}

.site-footer {
  padding: 64px 0 24px;
  color: #d1d5db;
  background: var(--primary);
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  color: #9ca3af;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.social-links a {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.modal-header {
  border-bottom-color: var(--border);
}

.modal-project-grid {
  display: grid;
  gap: 24px;
}

.detail-list {
  padding-left: 18px;
  color: var(--secondary);
}

.detail-list li + li {
  margin-top: 8px;
}

.loading-state,
.error-state {
  padding: 28px;
  color: var(--muted);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1050;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.32);
  font-size: 1.45rem;
  font-weight: 800;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  background: #1ebe5d;
  transform: translateY(-3px);
}

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

@media (min-width: 576px) {
  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nav-cta {
    margin-top: 0;
    margin-left: 8px;
  }

  .modal-project-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 28px;
    scroll-padding-bottom: 92px;
  }

  body {
    padding-bottom: 104px;
  }

  .container {
    padding-left: 0;
    padding-right: 0;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .row > * {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-pad {
    padding: 70px 0;
  }

  .site-navbar {
    top: auto;
    bottom: 12px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 8px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
  }

  .site-navbar.nav-scrolled {
    padding: 8px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
  }

  .site-navbar .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-brand,
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: block !important;
    flex-basis: 100%;
  }

  .navbar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  .navbar-nav .nav-item {
    min-width: 0;
  }

  .navbar-nav .nav-link {
    width: 100%;
    min-height: 62px;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px !important;
    border-radius: 16px;
    color: #6b7280;
    font-size: 0.62rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link.active {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
  }

  .nav-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1;
  }

  .navbar-nav .nav-link.active .nav-icon {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26);
  }

  .nav-cta {
    margin: 0;
    color: var(--secondary) !important;
    background: transparent;
  }

  .nav-cta.active,
  .nav-cta:hover,
  .nav-cta:focus {
    color: var(--accent) !important;
    background: rgba(37, 99, 235, 0.1);
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .profile-stage {
    min-height: 380px;
  }

  .hero-badge {
    right: 10px;
    bottom: 38px;
    max-width: 260px;
  }

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

  .whatsapp-float {
    right: 16px;
    bottom: 118px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 390px) {
  .site-navbar {
    left: 6px;
    right: 6px;
    padding: 6px;
  }

  .site-navbar.nav-scrolled {
    padding: 6px;
  }

  .navbar-nav {
    gap: 2px;
  }

  .navbar-nav .nav-link {
    min-height: 58px;
    border-radius: 14px;
    font-size: 0.58rem;
  }

  .nav-icon {
    width: 25px;
    height: 25px;
    font-size: 0.92rem;
  }
}
