/* ============================================================
   OSHIN SAXENA — PORTFOLIO 2026 (UNIFIED v3)
   One palette. One mood. Coral throughout.
   ============================================================ */

:root{
  /* Surfaces */
  --bg: #0E0E12;            /* primary background */
  --bg-2: #14141B;          /* lifted surface */
  --bg-3: #1A1A22;          /* card surface */
  --bg-4: #22222C;          /* hover surface */

  /* Ink */
  --ink: #F4EFE3;
  --ink-dim: #B0AB9F;
  --ink-mute: #6E6A60;
  --ink-soft: #8C8980;

  /* Single brand accent */
  --coral: #FF4D2E;
  --coral-soft: rgba(255, 77, 46, 0.12);
  --coral-glow: rgba(255, 77, 46, 0.18);

  /* Reserved accents (used sparingly) */
  --yellow: #FFD93D;        /* hero kinetic word only */
  --pink:   #FF3D8B;        /* nori project only */

  /* Lines (all coral-tinted for cohesion) */
  --line: rgba(244,239,227,0.08);
  --line-strong: rgba(244,239,227,0.16);
  --line-coral: rgba(255, 77, 46, 0.18);
  --line-coral-strong: rgba(255, 77, 46, 0.32);

  /* Type */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 8px;
  --maxw: 1320px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  letter-spacing: -0.005em;
}
::selection{ background: var(--coral); color: #fff; }

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0;}

/* Subtle film grain — same on every section for cohesion */
body::before{
  content:"";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.86 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  z-index: 1;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display{
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 100, "opsz" 96;
}
.display em, .accent-italic{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--coral);
}
.eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--coral);
  z-index: 200;
  transition: width 0.05s linear;
  pointer-events: none;
  box-shadow: 0 0 10px var(--coral);
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav{
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 28px);
  max-width: var(--maxw);
}
.topnav-inner{
  display:flex; align-items:center; justify-content: space-between;
  padding: 10px 12px 10px 22px;
  background: rgba(14,14,18, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.logo{
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo .star{
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-star 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px var(--coral);
}
@keyframes pulse-star{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(0.7); opacity: 0.6; }
}
.nav-links{
  display:flex; gap: 4px; list-style: none; padding:0; margin:0;
}
.nav-links a{
  font-size: 13px;
  color: var(--ink-dim);
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .25s var(--ease-out);
  font-weight: 500;
}
.nav-links a:hover{
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}
.nav-cta{
  background: var(--coral);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s var(--ease-out);
  display:flex; align-items: center; gap: 8px;
  position: relative;
  overflow: hidden;
}
.nav-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform .35s var(--ease-out);
}
.nav-cta:hover::before{ transform: translateY(0); }
.nav-cta:hover{ color: var(--coral); }
.nav-cta > *{ position: relative; z-index: 1; }
.nav-cta .pulse{
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
.nav-cta:hover .pulse{ background: var(--coral); }
@keyframes pulse{
  0%,100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: .4; transform: scale(0.85); }
}

/* Hamburger (mobile) */
.hamburger{
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--coral);
  position: relative;
  z-index: 110;
  flex-shrink: 0;
}
.hamburger span{
  position: absolute;
  left: 11px;
  width: 16px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .35s var(--ease-out);
}
.hamburger span:nth-child(1){ top: 15px; }
.hamburger span:nth-child(2){ top: 21px; }
.hamburger.open span:nth-child(1){ top: 18px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2){ top: 18px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu{
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 90px 28px 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
  overflow-y: auto;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 77, 46, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 77, 46, 0.10), transparent 50%);
}
.mobile-menu.open{ transform: translateY(0); }
.mobile-menu ul{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.mobile-menu li{
  border-top: 1px solid var(--line);
}
.mobile-menu li:last-child{ border-bottom: 1px solid var(--line); }
.mobile-menu a{
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--display);
  font-size: 38px;
  padding: 18px 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mobile-menu a em{ font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--coral);}
.mobile-menu a .num{
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.mobile-menu .m-cta{
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--coral);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
}

@media (max-width: 860px){
  .nav-links, .nav-cta{ display: none; }
  .hamburger{ display: block; }
  .topnav{ top: 12px; }
  .topnav-inner{ padding: 8px 8px 8px 18px; }
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section{
  padding: 64px 0;
  position: relative;
}
.sec-head{
  display:flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.sec-title{
  font-size: clamp(38px, 6.5vw, 92px);
  margin: 0 0 8px;
  max-width: 16ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .3s var(--ease-out);
  display:inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary{
  background: var(--coral); color: #fff;
}
.btn-primary::before{
  content: ""; position: absolute; inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform .35s var(--ease-out);
}
.btn-primary:hover::before{ transform: translateY(0); }
.btn-primary:hover{ color: var(--coral); transform: translateY(-2px);}
.btn-primary > *{ position: relative; z-index: 1; }

.btn-secondary{
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover{
  background: var(--ink); color: var(--bg);
  transform: translateY(-2px);
}

/* ============================================================
   UNIFIED CARD SYSTEM (Skills / Tools / Certs / AI / Work / Project)
   One look. One hover. Coral throughout.
   ============================================================ */
.u-card{
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-coral);
  border-radius: var(--radius);
  background: var(--bg-3);
  transition: transform .4s var(--ease-out), border-color .35s ease, background .35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.u-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at bottom left, var(--coral-glow), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}
.u-card:hover{
  transform: translateY(-4px);
  border-color: var(--line-coral-strong);
  background: var(--bg-4);
}
.u-card:hover::before{ opacity: 1; }
.u-card > *{ position: relative; z-index: 1; }

.u-card .num{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.u-card .num .tag{
  color: var(--coral);
  font-weight: 500;
}
.u-card .icon{
  margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255, 77, 46, 0.10);
  border: 1px solid rgba(255, 77, 46, 0.18);
  transition: transform .35s var(--ease-out), background .35s ease, border-color .35s ease;
}
.u-card:hover .icon{
  transform: scale(1.06);
  background: rgba(255, 77, 46, 0.18);
  border-color: rgba(255, 77, 46, 0.32);
}
.u-card .icon img{
  height: 22px; width: 22px;
  display: block;
  /* Warm cream tone: matches site ink color, guaranteed visibility on coral chip */
  filter: brightness(0) saturate(100%) invert(95%) sepia(8%) saturate(450%) hue-rotate(2deg) brightness(102%);
  opacity: 0.92;
  transition: opacity .25s var(--ease-out);
}
.u-card:hover .icon img{
  opacity: 1;
}
/* Glyph variant — for logos that don't render well as silhouettes (Canva, Photoshop, ChatGPT) */
.u-card .icon .glyph{
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: #F4EFE3;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.92;
  transition: opacity .25s var(--ease-out);
}
.u-card .icon .glyph.serif{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.u-card .icon .glyph.mono{
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.u-card:hover .icon .glyph{ opacity: 1; }
.u-card h3{
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.u-card h3 em{
  font-family: var(--serif); font-style: italic;
  color: var(--coral); font-weight: 400;
}
.u-card p{
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  border-top: 1px solid var(--line);
  padding: 28px 0 24px;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.foot{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--ink-mute);
}
.foot a:hover{ color: var(--coral);}
.foot-links{ display: flex; gap: 20px; flex-wrap: wrap; }
.foot .signoff{
  font-family: var(--serif); font-style: italic; font-size: 14px;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in{
  opacity: 1; transform: translateY(0);
}
.reveal-words .word{
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-words.in .word{
  opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-words .word{ opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px){
  section{ padding: 52px 0; }
  .wrap{ padding: 0 18px; }
  .sec-head{ margin-bottom: 20px; flex-direction: column; gap: 8px; align-items: flex-start;}
}
