/* ============================================================
   Yen Ortega — Portfolio
   ============================================================ */

:root {
  --bg: #0b0f19;
  --bg-alt: #0f1524;
  --surface: #151c2e;
  --surface-2: #1b2440;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-dim: #9aa4bc;
  --accent: #6d5efc;
  --accent-2: #21d4fd;
  --accent-3: #ff7a59;
  --gradient: linear-gradient(100deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 94, 252, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(33, 212, 253, 0.35); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-3px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

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

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent-2); }
.logo em { color: var(--accent-3); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a.nav-cta {
  background: var(--gradient);
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 9s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: var(--accent); top: -140px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #0e7490; bottom: -160px; right: -100px; animation-delay: -4s; }
@keyframes float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(50px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner { position: relative; }

.hero-kicker {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.3rem;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num, .stat-plus {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; color: var(--text-dim); font-size: 0.9rem; margin-top: 0.2rem; }

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 1.3rem;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub { color: var(--text-dim); max-width: 640px; margin-bottom: 3rem; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.portrait-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.portrait-card::before {
  content: "";
  position: absolute;
  inset: -60% 40% auto -40%;
  height: 120%;
  background: radial-gradient(circle, rgba(109,94,252,0.25), transparent 65%);
}
.portrait-photo {
  width: 200px; height: 200px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  position: relative;
  padding: 4px;
  background: var(--gradient);
  box-shadow: 0 12px 30px rgba(109, 94, 252, 0.45);
}
.portrait-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.portrait-photo .portrait-monogram {
  display: none;
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
}
.portrait-photo.no-photo img { display: none; }
.portrait-photo.no-photo .portrait-monogram { display: grid; }
.portrait-role { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 1.2rem; }
.portrait-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.portrait-tags li {
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
}

.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--text-dim); margin-bottom: 1.2rem; }
.about-copy strong { color: var(--text); }
.about-copy .btn { margin-top: 0.6rem; }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 94, 252, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.service-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--text-dim); font-size: 0.93rem; flex: 1; margin-bottom: 1.1rem; }

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-2);
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}
.service-link:hover { color: #fff; letter-spacing: 0.02em; }

.service-cta {
  background: linear-gradient(150deg, rgba(109,94,252,0.22), rgba(33,212,253,0.12)), var(--surface);
  border-color: rgba(109, 94, 252, 0.4);
}
.service-cta .btn { align-self: flex-start; }

/* ============================================================
   Work / Showcase
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.6rem;
}
.filter-btn {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { color: #fff; border-color: var(--accent-2); }
.filter-btn.is-active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 212, 253, 0.45);
  box-shadow: var(--shadow);
}
.work-card.is-hidden { display: none; }

.work-cover {
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.28), transparent 42%),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}
.work-cover span {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}
.work-card:hover .work-cover span { transform: scale(1.06); }

.work-cover img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.work-card:hover .work-cover img { transform: scale(1.05); }

/* Brand covers */
.cover-chevrolet { background: linear-gradient(135deg, #b8860b, #ffd34d 55%, #8a6508); }
.cover-chupa     { background: linear-gradient(135deg, #ff3f8e, #ff9d00 60%, #ffd23f); }
.cover-eset      { background: linear-gradient(135deg, #0f766e, #22d3ee); }
.cover-polo      { background: linear-gradient(135deg, #14532d, #4ade80 75%, #bef264); }
.cover-asiauto   { background: linear-gradient(135deg, #7f1d1d, #ef4444 70%, #fca5a5); }
.cover-regenix   { background: linear-gradient(135deg, #1e3a8a, #60a5fa); }
.cover-stbd      { background: linear-gradient(135deg, #4c1d95, #a78bfa 70%, #f0abfc); }
.cover-stbm      { background: linear-gradient(135deg, #831843, #f472b6); }
.cover-aastro    { background: linear-gradient(135deg, #7c2d12, #fb923c); }
.cover-cronos    { background: linear-gradient(135deg, #164e63, #67e8f9); }
.cover-mltech    { background: linear-gradient(135deg, #312e81, #818cf8); }

.work-body {
  padding: 1.6rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(109, 94, 252, 0.16);
  color: #b5aefe;
}
.tag-tier { background: rgba(33, 212, 253, 0.13); color: #7fe3fd; }

.work-body h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.work-body p { color: var(--text-dim); font-size: 0.93rem; flex: 1; }

.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.work-foot a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-2);
  transition: color 0.2s ease;
}
.work-foot a:hover { color: #fff; }

.rating { color: #fbbf24; font-size: 0.88rem; letter-spacing: 0.06em; }
.rating b { color: var(--text); margin-left: 0.3rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-wrap .section-title { margin-bottom: 1.2rem; }

.contact-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 2.4rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  letter-spacing: -0.01em;
  color: #fff;
  padding: 1.1rem 2.6rem;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 14px 40px rgba(109, 94, 252, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-phone:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(33, 212, 253, 0.4);
}
.phone-icon { font-size: 0.75em; }

.contact-hint {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 1.4rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--bg-alt);
}
.footer-inner { text-align: center; }
.footer-inner p { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.7rem; }
.footer-inner .copy { font-size: 0.8rem; opacity: 0.7; }
.footer-phone {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-2);
  transition: color 0.2s ease;
}
.footer-phone:hover { color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.6rem; }
}

@media (max-width: 700px) {
  .section { padding: 4.5rem 0; }

  .nav-toggle { display: flex; z-index: 110; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.2rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .nav-links.is-open { transform: none; }

  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
  .contact-phone { padding: 0.95rem 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .scroll-hint { animation: none; }
  .btn, .work-card, .service-card, .contact-phone { transition: none; }
}
