/* =====================================================
   GAVRIEL ARIAS — Portfolio
   ===================================================== */
:root {
  --canvas:    #e8e8e8;   /* page background behind rounded panels */
  --dark:      #0e1013;   /* dark panels */
  --dark-2:    #171a1f;   /* nested dark surfaces */
  --light:     #ffffff;   /* light panels */
  --line-dark: #242830;
  --line-light:#e6e6e6;
  --text-on-dark:  #f4f5f7;
  --text-on-light: #0e1013;
  --muted-dark:   #9aa0aa;
  --muted-light:  #6b7178;
  --lime:      #c3ff00;
  --brand-green:#70d727;

  --grad: linear-gradient(100deg, #c3ff00 0%, #3dbe3f 51%, #5500ff 100%);

  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --maxw:      1240px;
  --gap-panel: 16px;

  --font: 'Bricolage Grotesque', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn--pill {
  background: var(--light);
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.btn--pill:hover { transform: translateY(-2px); }
.btn--pill .arrow { transition: transform .3s var(--ease); }
.btn--pill:hover .arrow { transform: translate(2px,-2px); }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  padding: 12px clamp(12px, 3vw, 24px) 4px;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 60px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  border-radius: 999px;
}
.nav__logo {
  display: inline-flex; align-items: center;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: var(--text-on-dark);
}
.nav__logo img { height: 12px; width: auto; display: block; }
.logo-tri { color: var(--lime); font-size: 0.65em; vertical-align: middle; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  color: var(--muted-dark);
  font-size: 0.92rem;
  position: relative;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text-on-dark); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--text-on-dark); }

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark);
  padding: 0 24px 48px;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__bar { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close { background: none; border: none; color: var(--text-on-dark); font-size: 1.5rem; cursor: pointer; }
.mobile-menu__links {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px; padding: 60px 0;
}
.mobile-menu__links a { font-family: var(--font); font-size: 1.6rem; font-weight: 500; color: var(--text-on-dark); }
.mobile-menu__links .btn--pill { margin-top: 10px; font-size: 1rem; color: var(--dark); }

/* =====================================================
   PAGE + PANELS (rounded containers)
   ===================================================== */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--gap-panel) clamp(12px, 3vw, 24px) 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-panel);
}
.panel {
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  overflow: hidden;
  position: relative;
}
.panel--dark  { background: var(--dark);  color: var(--text-on-dark); }
.panel--light { background: var(--light); color: var(--text-on-light); }

/* ---------- shared section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.panel--dark  .eyebrow { color: var(--muted-dark); }
.panel--light .eyebrow { color: var(--muted-light); }

.section-head { max-width: var(--maxw); margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-sub { margin-top: 12px; font-size: 1.02rem; }
.panel--dark  .section-sub { color: var(--muted-dark); }
.panel--light .section-sub { color: var(--muted-light); }

/* =====================================================
   HERO
   ===================================================== */
.hero__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.portrait {
  width: 100%; max-width: 320px; aspect-ratio: 3/4;
  border-radius: 180px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px var(--line-dark), 0 0 70px -18px rgba(195,255,0,.4);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__title {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.0; letter-spacing: -0.03em;
}
.hero__lead { font-weight: 600; font-size: 1.1rem; margin-top: 20px; }
.hero__body { color: var(--muted-dark); margin-top: 12px; max-width: 44ch; font-size: 1rem; }
.scroll-dot {
  display: inline-block; width: 50px; margin-top: 30px;
  animation: bob 2s var(--ease) infinite;
}
.scroll-dot img { width: 100%; height: auto; display: block; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* =====================================================
   WORK / REEL
   ===================================================== */
.reel { max-width: 880px; margin: 0 auto; }
.reel__frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line-light);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.45);
}
.reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* marquee (continuous, NO pause on hover) */
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* break out of panel padding to bleed edge-to-edge */
.marquee--bleed { margin-left: calc(-1 * clamp(24px,5vw,72px)); margin-right: calc(-1 * clamp(24px,5vw,72px)); }
.work .marquee--bleed { margin-top: clamp(36px, 5vw, 56px); }

.marquee__track { display: flex; width: max-content; }
.marquee__track--work { gap: 20px; padding: 0 10px; animation: scroll-x 48s linear infinite; }
.marquee__track--tools { gap: 18px; padding: 0 10px; animation: scroll-x 32s linear infinite; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.work-card {
  flex: 0 0 auto; width: clamp(240px, 26vw, 340px); aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light);
}
.work-card img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   SERVICES (centered)
   ===================================================== */
.services__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.services__title {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em;
}
.services__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.service { text-align: center; }
.service__icon { width: 48px; height: 48px; margin: 0 auto 18px; }
.service__icon img { width: 100%; height: 100%; }
.service h3 { font-family: var(--font); font-size: 1.15rem; margin-bottom: 10px; }
.service p { color: var(--muted-dark); font-size: 0.92rem; max-width: 26ch; margin: 0 auto; }

/* =====================================================
   TOOLS
   ===================================================== */
.tools .marquee--bleed { margin-top: clamp(30px, 4vw, 48px); }
.tool {
  flex: 0 0 auto;
  width: 80px; height: 80px; display: grid; place-items: center;
  border-radius: 18px; background: #f3f3f3; border: 1px solid var(--line-light);
  overflow: hidden;
}
.tool img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.slideshow {
  max-width: 760px; margin: 0 auto; position: relative;
  display: flex; align-items: center; gap: 14px;
}
.slideshow__viewport { overflow: hidden; border-radius: var(--radius-lg); flex: 1; }
.slideshow__track { display: flex; transition: transform .55s var(--ease); }
.slide { flex: 0 0 100%; }
.slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); }

.slideshow__nav {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px;
  background: var(--dark-2); border: 1px solid var(--line-dark); color: var(--text-on-dark);
  font-size: 1.3rem; cursor: pointer; transition: background .3s var(--ease);
}
.slideshow__nav:hover { background: var(--lime); color: var(--dark); }
.slideshow__dots { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line-dark); border: none; cursor: pointer; transition: background .3s var(--ease), width .3s var(--ease); }
.dot.active { width: 22px; background: var(--grad); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact__head { 
  text-align: center; 
  max-width: var(--maxw); 
  margin: 0 auto clamp(32px, 4vw, 48px); 
}

.badge { 
  display: inline-flex; 
  align-items: center; 
  gap: 9px; 
  font-size: 0.85rem; 
  color: var(--muted-light); 
  margin-bottom: 16px; 
  font-weight: 500; 
}

.badge__dot { 
  width: 9px; 
  height: 9px; 
  border-radius: 999px; 
  background: var(--brand-green); 
  box-shadow: 0 0 12px var(--brand-green); 
}

.contact__title { 
  font-family: var(--font); 
  font-weight: 700; 
  font-size: clamp(2.2rem, 6vw, 3.6rem); 
  line-height: 1.04; 
  letter-spacing: -0.02em; 
}

.contact__body { 
  color: var(--muted-light); 
  margin-top: 14px; 
  max-width: 48ch; 
  margin-inline: auto; 
}

/* PRIMARY WhatsApp CTA */
.contact__primary {
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__link--primary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--dark);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  transition: transform .3s var(--ease);
  border: 2px solid var(--dark);
}

.contact__link--primary:hover {
  transform: translateX(6px);
  background: var(--dark);
  border-color: var(--brand-green);
}

.contact__ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.contact__ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.contact__value {
  font-weight: 500;
  font-size: 1.02rem;
}

.contact__link .arrow {
  color: var(--text-on-dark);
  font-size: 1.2rem;
  transition: transform .3s var(--ease);
}

.contact__link:hover .arrow {
  transform: translate(3px, -3px);
}

.contact__reassurance {
  font-size: 0.9rem;
  color: var(--muted-light);
  text-align: center;
  margin-top: 8px;
}

/* SECONDARY: Email fallback */
.contact__secondary {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) 0;
  text-align: center;
}

.contact__fallback {
  font-size: 0.95rem;
  color: var(--muted-light);
}

.contact__fallback a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  transition: color .3s var(--ease);
}

.contact__fallback a:hover {
  color: var(--brand-green);
}

/* Removed .contact__links and .contact__cal */

/* =====================================================
   FOOTER
   ===================================================== */
.footer { text-align: center; padding: 28px 20px 36px; color: var(--muted-light); font-size: 0.9rem; }

/* =====================================================
   REVEAL
   ===================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero__body { margin-inline: auto; }
  .services__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .panel { padding: 40px 20px; border-radius: var(--radius-lg); }
  .marquee--bleed { margin-left: -20px; margin-right: -20px; }
  .tool { width: 60px; height: 60px; }
  .contact__link { padding: 14px 16px; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
