/* ============================================================
   TemmyDEV — Portfolio Styles
   Dark cinematic theme · accent: gold
   ============================================================ */

:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --surface: #13151d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f4;
  --text-muted: #9aa0ad;
  --accent: #e8b34b;
  --accent-soft: rgba(232, 179, 75, 0.12);
  --whatsapp: #25d366;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(255, 255, 255, 0.04);
  --nav-bg: rgba(10, 11, 15, 0.82);
  --grid-line: rgba(255, 255, 255, 0.025);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-2: #eceef2;
  --surface: #ffffff;
  --border: rgba(15, 18, 28, 0.1);
  --text: #171a22;
  --text-muted: #5a6172;
  --accent: #b8860b;              /* darker gold so it stays readable on light */
  --accent-soft: rgba(184, 134, 11, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --input-bg: rgba(15, 18, 28, 0.045);
  --nav-bg: rgba(245, 246, 248, 0.85);
  --grid-line: rgba(15, 18, 28, 0.045);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

.accent { color: var(--accent); }

::selection { background: var(--accent); color: #111; }

/* Visible focus states (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f5d48a);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #141414;
}
.btn--primary:hover {
  background: #f2c266;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 179, 75, 0.25);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: transparent;
  border-color: var(--whatsapp);
  color: var(--whatsapp);
}
.btn--whatsapp:hover {
  background: var(--whatsapp);
  color: #08130c;
  transform: translateY(-2px);
}

.btn--small { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}
.nav.is-scrolled {
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__cta { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1002;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--1 {
  width: 480px; height: 480px;
  background: rgba(232, 179, 75, 0.09);
  top: -10%; right: -5%;
}
.hero__glow--2 {
  width: 380px; height: 380px;
  background: rgba(90, 120, 255, 0.05);
  bottom: -15%; left: -8%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 1.6rem;
}

.hero__text {
  color: var(--text-muted);
  max-width: 32rem;
  margin-top: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Social icons */
.socials {
  display: flex;
  gap: 0.4rem;
  margin-top: 2.2rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.socials a svg { width: 19px; height: 19px; }
.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.socials a.socials__whatsapp:hover {
  color: var(--whatsapp);
  border-color: var(--whatsapp);
}

/* Hero photo */
.hero__photo { display: flex; justify-content: center; }

.photo-frame {
  position: relative;
  width: min(400px, 100%);
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(232, 179, 75, 0.35);
  border-radius: 24px;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  pointer-events: none;
}
.photo-frame:hover::before { transform: rotate(0deg); }

.photo-frame img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 20px;
  background: var(--surface);
  /* Placeholder look until a real photo is added */
  background-image: linear-gradient(135deg, #1a1d27, #232838);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.photo-frame__badge {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--text);
}
.photo-frame__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0.05); }
}

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.hero__scroll span {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 7px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section:nth-of-type(even) { background: var(--bg-2); }

.section__head { max-width: 620px; margin-bottom: 3.2rem; }

.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(232, 179, 75, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__sub {
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about__text p + p { margin-top: 1.1rem; }
.about__text { color: var(--text-muted); }
.about__text strong { color: var(--text); font-weight: 600; }

.about__stats {
  display: grid;
  gap: 1.1rem;
}

.stat {
  padding: 1.6rem 1.8rem;
  transition: var(--transition);
}
.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 179, 75, 0.35);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Services ---------- */
.services__category {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 2.8rem 0 1.4rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
}
.services__grid:first-of-type { margin-top: 0; }
.services__grid + .services__category { margin-top: 3rem; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 179, 75, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.service-card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
  transition: var(--transition);
}
.service-card__icon svg { width: 23px; height: 23px; }
.service-card:hover .service-card__icon {
  background: var(--accent);
  color: #141414;
}

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Skills ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.skill-group { padding: 1.6rem 1.7rem; }
.skill-group h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.chip:hover {
  color: var(--accent);
  border-color: rgba(232, 179, 75, 0.4);
  transform: translateY(-2px);
}

.chip--learning {
  border-style: dashed;
  color: var(--text);
}
.skill-group--learning { border-color: rgba(232, 179, 75, 0.25); }
.skill-group--learning h4 { color: var(--accent); }

/* ---------- Projects ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: rgba(232, 179, 75, 0.4); }
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #141414;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, opacity 0.35s ease, border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: rgba(232, 179, 75, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.project-card.is-hidden {
  display: none;
}
.project-card.is-animating {
  animation: cardIn 0.4s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #191c26;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.05); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(8, 9, 13, 0.94) 20%, rgba(8, 9, 13, 0.35) 65%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-card__overlay,
.project-card:focus-within .project-card__overlay { opacity: 1; }

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-card__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(232, 179, 75, 0.16);
  border: 1px solid rgba(232, 179, 75, 0.4);
  color: var(--accent);
}

.project-card__actions {
  display: flex;
  gap: 0.6rem;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.project-card:hover .project-card__actions { transform: translateY(0); }

.project-card__body { padding: 1.5rem 1.5rem 1.7rem; }

.project-card__cat {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.45rem 0 0.6rem;
  line-height: 1.3;
}

.project-card__body p { color: var(--text-muted); font-size: 0.93rem; }

.placeholder-note {
  color: #7c8290;
  font-size: 0.85rem;
}

.project-card__features {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.3rem;
}
.project-card__features li {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.project-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Process / Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
  counter-reset: step;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 179, 75, 0.4), transparent);
}

.timeline__step {
  position: relative;
  text-align: center;
  padding: 0 0.6rem;
}
.timeline__num {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid rgba(232, 179, 75, 0.4);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.timeline__step:hover .timeline__num {
  background: var(--accent);
  color: #141414;
  transform: translateY(-3px);
}

.timeline__step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.timeline__step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.why__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.why__item:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 179, 75, 0.35);
}

.why__tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact__cta {
  text-align: center;
  padding: 3.2rem 2rem;
  margin-bottom: 3rem;
}
.contact__cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact__cta p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 1rem auto 0;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.contact__form { padding: 2rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__field { margin-bottom: 1.1rem; }
.form__field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition);
}
.form__field textarea { resize: vertical; min-height: 120px; }

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0ad' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form__field select option { background: var(--surface); color: var(--text); }

.form__field input::placeholder,
.form__field textarea::placeholder { color: #5d6370; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form__field input.is-invalid,
.form__field textarea.is-invalid,
.form__field select.is-invalid { border-color: #e05c5c; }

.form__status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form__status.is-success { color: #3ddc84; }
.form__status.is-error { color: #e05c5c; }

.contact__info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact__info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact__info > p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.4rem; }

.contact__links { display: grid; gap: 1rem; }
.contact__links li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact__links li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__links span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact__links a { color: var(--accent); font-weight: 500; transition: var(--transition); }
.contact__links a:hover { text-decoration: underline; }
.contact__links em { font-style: normal; color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: 2.2rem;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--accent); }

.socials--footer { margin-top: 0; }
.socials--footer a { width: 38px; height: 38px; }
.socials--footer a svg { width: 17px; height: 17px; }

.footer__bar {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #08130c;
  padding: 0.85rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}
.whatsapp-float__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease, padding 0.35s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45);
}
.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label { max-width: 150px; }
.whatsapp-float:hover .whatsapp-float__label { padding-left: 0.15rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--delay { transition-delay: 0.15s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__text { max-width: 34rem; }
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
  .timeline::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 11, 15, 0.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 1.25rem; }

  .section { padding: 4.5rem 0; }
  .about__stats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .whatsapp-float__label { display: none; }
  .whatsapp-float:hover .whatsapp-float__label { max-width: 0; }
}

@media (max-width: 480px) {
  .hero__actions .btn, .contact__actions .btn { width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .filters { gap: 0.45rem; }
  .filter-btn { padding: 0.45rem 1rem; font-size: 0.82rem; }
  .projects__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* ---------- Theme toggle ---------- */
body {
  transition: background-color 0.35s ease, color 0.35s ease;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-left: 0.6rem;
  transition: var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 19px; height: 19px; }

[data-theme="dark"] .theme-toggle__moon,
:root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nav__logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  margin: 0;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(8, 9, 13, 0.9), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  pointer-events: none;
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 9, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: #cfd3db;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  opacity: 0.75;
  transition: var(--transition);
}
.lightbox__close:hover { opacity: 1; transform: scale(1.1); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  opacity: 0.6;
  padding: 1rem;
  transition: var(--transition);
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }