:root {
  --bg: #0b0f14;
  --bg-alt: #121826;
  --text: #ecf0f4;
  --muted: #a2a9b4;
  --accent: #ff8a3d;
  --accent-2: #5ad6ff;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(120deg, rgba(255, 138, 61, 0.2), rgba(90, 214, 255, 0.2));
}

html[data-theme="light"] {
  --bg: #f8f6f3;
  --bg-alt: #ffffff;
  --text: #1b1f24;
  --muted: #4e5864;
  --accent: #e45028;
  --accent-2: #146c8d;
  --card: rgba(18, 24, 38, 0.05);
  --border: rgba(18, 24, 38, 0.12);
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  --gradient: linear-gradient(120deg, rgba(228, 80, 40, 0.15), rgba(20, 108, 141, 0.15));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.fa-whatsapp {color: white;}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

main {
  padding: 0 6vw 6rem;
}

.bg-shape {
  position: fixed;
  inset: auto;
  z-index: -2;
  filter: blur(0px);
  opacity: 0.6;
}

.bg-shape-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.4), transparent 70%);
  top: -140px;
  left: -180px;
}

.bg-shape-2 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(90, 214, 255, 0.35), transparent 70%);
  bottom: -220px;
  right: -200px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 20, 0.7);
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .site-header {
  background: rgba(248, 246, 243, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
  gap: 1rem;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.3s ease;
}

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

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.theme-toggle,
.nav-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 6rem 0 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.reveal-text .word {
  display: inline-block;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 1rem 0;
}

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: 0 10px 24px rgba(255, 138, 61, 0.3);
}

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

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

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

.hero-media .image-stack {
  display: grid;
  gap: 1.5rem;
}

.hero-media img {
  box-shadow: var(--shadow);
}

.section-title {
  margin: 5rem 0 2.5rem;
  max-width: 760px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin-top: 0.8rem;
}

.about-grid,
.skills-grid,
.services-grid,
.projects-grid,
.timeline,
.contact-grid {
  display: grid;
  gap: 1.8rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-card,
.skill-card,
.service-card,
.project-card,
.timeline-step,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.6rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-card h3,
.skill-card h3,
.service-card h3,
.project-card h3,
.timeline-step h3 {
  margin-bottom: 0.8rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.services-grid,
.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 0.8rem;
}

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

.step-number {
  font-size: 1.5rem;
  color: var(--accent-2);
  font-weight: 700;
}

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

.contact-info {
  padding: 1.4rem;
  background: var(--gradient);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
}

.contact-item i {
  color: var(--accent);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(90, 214, 255, 0.4);
  border-color: transparent;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 6vw 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.contact-item {
  transition: .3s ease;
}

.contact-item:hover {
  font-size: 20px;
    transition: .3s ease;

}

.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  background: #0b0f14;
  background-color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 15;
}

.whatsapp i {
  font-size: 1.6rem;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 6vw;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 16px;
    display: none;
  }

  .nav-links.open {
    display: grid;
    gap: 0.8rem;
  }

  .nav-toggle {
    display: grid;
  }
}

@media (max-width: 600px) {
  main {
    padding: 0 5vw 4rem;
  }
  .img {
    width: 50%;
    margin: 0;
  }
  .hero {
    padding-top: 4.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }
}

.img {
    width: 75%;
    border-radius: 20px;
    margin: 10px;
    border: 1px solid #454545;
}
