/* ═══════════════════════════════════════════════════════════════
   EUGENE DELA GOGAH · PORTFOLIO · GLOBAL DESIGN SYSTEM
   Aesthetic: Luxury Tech-Noir — refined, premium, precise
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap");

/* ── Tokens ── */
:root {
  /* Light palette */
  --bg: #f4f3f0;
  --bg-2: #eae9e5;
  --bg-3: #e0deda;
  --surface: #ffffff;
  --surface-2: #f8f7f5;
  --border: rgba(0, 0, 0, 0.07);
  --border-2: rgba(0, 0, 0, 0.13);
  --text: #0e0d0c;
  --text-2: #48433e;
  --text-3: #7a746e;
  --accent: #00c8a8;
  --accent-2: #0050f0;
  --gold: #c89630;
  --gold-2: #f0c060;
  --accent-glow: rgba(0, 200, 168, 0.14);
  --accent-2-glow: rgba(0, 80, 240, 0.1);
  --gold-glow: rgba(200, 150, 48, 0.12);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 56px rgba(0, 0, 0, 0.13);

  /* Nav */
  --nav-h: 70px;

  /* Easings */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #08090c;
  --bg-2: #0d1016;
  --bg-3: #131720;
  --surface: #181c26;
  --surface-2: #1d2230;
  --border: rgba(255, 255, 255, 0.055);
  --border-2: rgba(255, 255, 255, 0.1);
  --text: #ede9e2;
  --text-2: #aaa49a;
  --text-3: #6a6460;
  --accent: #00e8bc;
  --accent-2: #4d8eff;
  --accent-glow: rgba(0, 232, 188, 0.1);
  --accent-2-glow: rgba(77, 142, 255, 0.1);
  --shadow-sm: 0 1px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 56px rgba(0, 0, 0, 0.6);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background 380ms var(--ease-in-out),
    color 380ms var(--ease-in-out);
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-2);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.mono {
  font-family: "JetBrains Mono", monospace;
}

/* ── Utility gradient text ── */
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-gold {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.wrap-sm {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Page hero ── */
.page-hero {
  padding: 4.5rem 0 3rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

/* ── Section labels ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 560px;
}

/* ── Gradient rule ── */
.rule {
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 30%,
    var(--accent-2) 70%,
    transparent
  );
  opacity: 0.35;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1.55rem;
  border: none;
  border-radius: var(--r-sm);
  font-family: "Syne", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  will-change: transform;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #060a08;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 4px var(--accent-glow),
    var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0.6rem 1rem;
}
.btn-ghost:hover {
  color: var(--accent);
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.tag.a {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: transparent;
}
.tag.b {
  background: var(--accent-2-glow);
  color: var(--accent-2);
  border-color: transparent;
}
.tag.g {
  background: var(--gold-glow);
  color: var(--gold);
  border-color: transparent;
}

/* ── Icon sizes ── */
.icon-xs {
  width: 12px;
  height: 12px;
}
.icon-sm {
  width: 14px;
  height: 14px;
}
.icon {
  width: 16px;
  height: 16px;
}
.icon-md {
  width: 20px;
  height: 20px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}
.icon-xl {
  width: 32px;
  height: 32px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 580ms var(--ease-out),
    transform 580ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 80ms;
}
.d2 {
  transition-delay: 160ms;
}
.d3 {
  transition-delay: 240ms;
}
.d4 {
  transition-delay: 320ms;
}

/* ── Icon button (nav/social) ── */
.icon-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-3);
  transition: all 160ms var(--ease-out);
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.icon-btn:active {
  transform: scale(0.95);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: rgba(244, 243, 240, 0.84);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition:
    background 380ms,
    box-shadow 200ms,
    border-color 380ms;
}
[data-theme="dark"] .nav {
  background: rgba(8, 9, 12, 0.9);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.42rem 0.88rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition:
    background 140ms,
    color 140ms;
  position: relative;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-2);
}
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 200ms var(--ease-out);
  will-change: transform;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms var(--ease-out),
    opacity 220ms;
}
.mobile-nav.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition:
    background 140ms,
    color 140ms;
  text-decoration: none;
  width: 100%;
}
.mobile-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ══════════════════════════════════════════
   FOOTER — Premium, expanded
══════════════════════════════════════════ */
.site-footer-wrap footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2.5rem;
  margin-top: 6rem;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

/* Brand column */
.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-logo-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.footer-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.footer-name span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  margin-top: 0.1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 280px;
}

/* Social icons row */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.soc-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  transition: all 160ms var(--ease-out);
}
.soc-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.soc-btn:active {
  transform: scale(0.93);
}
.soc-btn svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

/* Footer columns */

.footer-col-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-link-list a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.855rem;
  color: var(--text-3);
  transition:
    color 150ms,
    gap 150ms;
}
.footer-link-list a:hover {
  color: var(--accent);
  gap: 0.65rem;
}
.footer-link-list a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
  max-width: 1280px;
  margin: 2.25rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
}
.footer-bottom-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 2.5s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ══════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
  will-change: transform;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: -3.5px 0 0 -3.5px;
  opacity: 0;
  transition:
    opacity 300ms,
    width 180ms,
    height 180ms;
}
.cursor-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  margin: -15px 0 0 -15px;
  opacity: 0;
  transition:
    opacity 300ms,
    width 200ms var(--ease-out),
    height 200ms var(--ease-out);
}
body.cursor-on .cursor-dot {
  opacity: 0.85;
}
body.cursor-on .cursor-ring {
  opacity: 0.3;
}
body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
}
body.cursor-hover .cursor-ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  opacity: 0.18;
}

/* ══════════════════════════════════════════
   RESPONSIVE FOUNDATIONS
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .wrap,
  .wrap-sm {
    padding: 0 1.25rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  footer {
    padding: 3.5rem 1.25rem 2rem;
  }
}
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ── Mobile nav icon size fix ── */
@media (max-width: 768px) {
  .mobile-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Prevent page-card icon styles leaking into nav */
  .mobile-nav .pc-icon-box {
    display: none;
  }

  /* General icon cap on small screens */
  .nav svg,
  .mobile-nav svg {
    max-width: 20px;
    max-height: 20px;
  }
}
/* ── GLOBAL MOBILE FIXES ── */
@media (max-width: 768px) {
  svg {
    max-width: 100%;
  }

  .nav {
    padding: 0 1rem;
    height: 60px;
    --nav-h: 60px;
  }

  .nav-logo-img {
    width: 28px;
    height: 28px;
  }
  .nav-logo {
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .mobile-nav a svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
  }
  .mobile-nav a {
    font-size: 0.88rem;
    padding: 0.6rem 0.75rem;
  }

  .wrap,
  .wrap-sm {
    padding: 0 1rem;
  }
  .page-hero {
    padding: 3rem 0 2rem;
  }
  .sec-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  .sec-sub {
    font-size: 0.88rem;
  }
  .label {
    font-size: 0.65rem;
  }

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
  }
  .btn svg {
    width: 14px;
    height: 14px;
  }

  .soc-btn {
    width: 36px;
    height: 36px;
  }
  .soc-btn svg {
    width: 15px;
    height: 15px;
  }

  @media (max-width: 768px) {
    footer {
      padding: 2.5rem 1.1rem 1.5rem;
      margin-top: 3rem;
    }

    .footer-top {
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem 1.25rem;
    }

    /* Brand col spans both columns at top */
    .footer-brand-wrap {
      grid-column: 1 / -1;
    }

    /* Tighten brand block */
    .footer-logo-img {
      width: 36px;
      height: 36px;
    }
    .footer-logo-row {
      gap: 0.6rem;
    }
    .footer-name {
      font-size: 0.9rem;
    }
    .footer-name span {
      font-size: 0.62rem;
    }
    .footer-tagline {
      font-size: 0.76rem;
      margin-bottom: 0.75rem;
    }

    /* Social icons smaller + tighter */
    .footer-social {
      gap: 0.35rem;
    }
    .soc-btn {
      width: 32px;
      height: 32px;
    }
    .soc-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Column headings */
    .footer-col-title {
      font-size: 0.72rem;
      margin-bottom: 0.75rem;
    }

    /* Links smaller */
    .footer-link-list a {
      font-size: 0.78rem;
      gap: 0.35rem;
    }
    .footer-link-list a svg {
      width: 12px;
      height: 12px;
    }

    /* Bottom bar */
    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.3rem;
      font-size: 0.68rem;
      margin-top: 1.5rem;
      padding-top: 1.25rem;
    }
  }
  @media (max-width: 380px) {
    .footer-top {
      grid-template-columns: 1fr;
    }
    .footer-brand-wrap {
      grid-column: 1;
    }
  }
  @media (max-width: 480px) {
    .wrap,
    .wrap-sm {
      padding: 0 0.875rem;
    }
    .nav {
      padding: 0 0.875rem;
    }
    .tag {
      font-size: 0.65rem;
      padding: 0.18rem 0.55rem;
    }
  }
}
