/* ============================================================
   NESTOR ARAUJO — PORTFOLIO
   global.css  |  Variables · Reset · Nav · Footer · Utilities
   ============================================================

   ╔══════════════════════════════════════╗
   ║   QUICK-EDIT INDEX                   ║
   ║   [VAR]   CSS Variables / Tokens     ║
   ║   [RESET] Base Reset                 ║
   ║   [NAV]   Navigation Bar             ║
   ║   [FOOT]  Footer                     ║
   ║   [UTIL]  Shared Utilities           ║
   ║   [ANIM]  Keyframes & Animations     ║
   ║   [RESP]  Responsive Breakpoints     ║
   ╚══════════════════════════════════════╝
*/

/* ─────────────────────────────────── [VAR] ─── */
:root {
  /* ── Palette ── */
  --bg:            #232323;       /* ← main background */
  --bg-2:          #1a1a1a;       /* ← deeper bg */
  --bg-card:       #2c2c2c;       /* ← card surface */
  --white:         #ffffff;
  --off-white:     #f0f0f0;
  --muted:         #888888;
  --border:        rgba(255,255,255,0.1);

  --green:         #c6ff00;       /* ← PRIMARY ACCENT (bright lime) */
  --green-dark:    #8fb800;       /* ← secondary accent (olive) */
  --green-glow:    rgba(198,255,0,0.15);
  --green-glow-2:  rgba(198,255,0,0.06);

  /* ── Typography ── */
  --font:          'Montserrat', sans-serif;
  --font-display:  'Montserrat', sans-serif;  /* headlines */

  /* ── Spacing ── */
  --px:            80px;          /* ← section horizontal padding */
  --py:            120px;         /* ← section vertical padding */
  --nav-h:         68px;

  /* ── Glass ── */
  --glass-bg:      rgba(35,35,35,0.72);
  --glass-blur:    blur(24px) saturate(1.5);
  --glass-border:  rgba(198,255,0,0.18);

  /* ── Easing ── */
  --ease:          cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in:       cubic-bezier(0.55, 0, 1, 0.45);
}

/* ─────────────────────────────────── [RESET] ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img, video { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: none; }

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Custom cursor */
.cursor {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s;
  will-change: transform;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(198,255,0,.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .45s var(--ease), height .45s var(--ease), border-color .3s;
  will-change: transform;
}
.cursor.hover, .cursor.hover ~ .cursor-ring { width: 14px; height: 14px; }
.cursor-ring.hover { width: 60px; height: 60px; border-color: rgba(198,255,0,.75); }

/* ─────────────────────────────────── [NAV] ─── */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  transition: background .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
nav#mainNav.scrolled {
  background: rgba(26,26,26,.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-size: 17px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-accent { color: var(--green); }
.nav-links {
  display: flex; gap: 36px;
}
.nav-links a {
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg);
  background: var(--green);
  padding: 10px 24px;
  border-radius: 100px;
  transition: background .3s, transform .25s, box-shadow .3s;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.nav-cta:hover {
  background: #d4ff1a;
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--green-glow);
}
.nav-mobile-btn {
  display: none;
  background: none; border: none;
  color: var(--white); font-size: 22px; padding: 6px;
  line-height: 1;
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 490;
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a {
  font-size: 42px; font-weight: 700;
  letter-spacing: -.02em; color: rgba(255,255,255,.6);
  transition: color .3s;
}
.mobile-overlay a:hover { color: var(--green); }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; padding: 8px;
  transition: color .3s;
}
.mobile-close:hover { color: var(--white); }

/* ─────────────────────────────────── [FOOT] ─── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 72px var(--px) 40px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px; margin-bottom: 56px;
}
.footer-brand-name {
  font-size: 42px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  color: var(--white); margin-bottom: 8px;
}
.footer-brand-name span { color: var(--green); }
.footer-brand-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; display: block;
}
.footer-email {
  font-size: 13px; font-weight: 500;
  color: var(--green);
  transition: color .3s; display: block; margin-bottom: 20px;
}
.footer-email:hover { color: #d4ff1a; }
.footer-desc {
  font-size: 13px; line-height: 1.7;
  color: var(--muted); max-width: 260px;
}
.footer-col h4 {
  font-size: 10px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,.5);
  transition: color .3s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); letter-spacing: .04em; }
.footer-bottom a { color: var(--green); }

/* ─────────────────────────────────── [UTIL] ─── */
/* Section wrapper */
.section-wrap { padding: var(--py) var(--px); }

/* Section eyebrow label */
.eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--green);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--green); flex-shrink: 0; }

/* Display headline */
.headline-xl {
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 800; line-height: .95;
  letter-spacing: -.04em;
}
.headline-lg {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800; line-height: 1;
  letter-spacing: -.035em;
}
.headline-md {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -.025em;
}
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }

/* CTA buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg); background: var(--green);
  padding: 16px 36px; border-radius: 100px;
  transition: background .3s, transform .25s, box-shadow .35s;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn-primary:hover {
  background: #d4ff1a; transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--green-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  padding: 14px 32px; border-radius: 100px;
  transition: border-color .3s, color .3s, background .3s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Divider line */
.divider { width: 100%; height: 1px; background: var(--border); }

/* Glass card base */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative; overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,255,0,.4), transparent);
  pointer-events: none;
}

/* Scroll reveal base */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.from-left.in, .reveal.from-right.in { transform: translateX(0); }
.reveal.scale-in   { transform: scale(.94); }
.reveal.scale-in.in { transform: scale(1); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .52s; }
.d5 { transition-delay: .68s; }

/* ─────────────────────────────────── [ANIM] ─── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
@keyframes shimmer  {
  0%   { transform:translateX(-120%) skewX(-15deg); }
  100% { transform:translateX(300%)  skewX(-15deg); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50%      { box-shadow: 0 0 40px 6px var(--green-glow); }
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }
@keyframes marqueeLTR {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────── [RESP] ─── */
@media (max-width: 1100px) {
  :root { --px: 48px; }
}
@media (max-width: 860px) {
  :root { --px: 24px; --py: 80px; }
  nav#mainNav { padding: 0 var(--px); }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; }
}
