/* ==========================================================================
   Sujeet Kumar — Portfolio
   Concept: "Spec Sheet" — a UX/UI Design Manager's world is Figma canvases,
   inspect panels, component annotations and blueprint grids. The page reads
   like a live design file: selection corner-brackets, mono annotation labels,
   dimension-line dividers, and a cool blueprint palette.
   ========================================================================== */

:root{
  /* --- Color tokens --- */
  --paper:      #F2F4F7;
  --paper-2:    #E8ECF1;
  --ink:        #0F2140;
  --ink-soft:   #4C5A70;
  --ink-faint:  #8593A6;
  --line:       #CBD5E0;
  --line-soft:  #DDE4EB;
  --accent:     #FF5A36;   /* signal / annotation orange */
  --accent-2:   #1FAA59;   /* growth / success green */
  --white:      #FFFFFF;
  --surface:    #FFFFFF;

  /* --- Type tokens --- */
  --font-display: 'Archivo', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* --- Layout tokens --- */
  --maxw: 1180px;
  --pad: 32px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }

::selection{ background: var(--accent); color: var(--white); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Subtle paper grain to keep flat colors from feeling too digital */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Signature element: Figma-style corner brackets ("frame" selection marks)
   ========================================================================== */
.corner{
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.corner.tl{ top: -6px; left: -6px; border-right: none; border-bottom: none; }
.corner.tr{ top: -6px; right: -6px; border-left: none; border-bottom: none; }
.corner.bl{ bottom: -6px; left: -6px; border-right: none; border-top: none; }
.corner.br{ bottom: -6px; right: -6px; border-left: none; border-top: none; }

.frame-target{ position: relative; display: inline-block; color: var(--accent); }
.frame-target .corner{ opacity: 1; animation: pulse-corner 2.6s ease-in-out infinite; }
.frame-target .corner.tr,.frame-target .corner.bl{ animation-delay: .15s; }

@keyframes pulse-corner{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.15); }
}

.frame-hover{ position: relative; }
.frame-hover .corner{ opacity: 0; }
.frame-hover:hover .corner, .frame-hover:focus-within .corner{ opacity: 1; }
.frame-hover:hover .corner.tl, .frame-hover:focus-within .corner.tl{ transform: translate(-2px,-2px); }
.frame-hover:hover .corner.tr, .frame-hover:focus-within .corner.tr{ transform: translate(2px,-2px); }
.frame-hover:hover .corner.bl, .frame-hover:focus-within .corner.bl{ transform: translate(-2px,2px); }
.frame-hover:hover .corner.br, .frame-hover:focus-within .corner.br{ transform: translate(2px,2px); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,244,247,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-mark{
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  letter-spacing: .04em; color: var(--ink); flex-shrink: 0;
}
.mark-bracket{ color: var(--accent); }
.nav-links{ display: flex; gap: 28px; margin-right: auto; margin-left: 48px; }
.nav-links a{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s ease;
}
.nav-links a .dot{
  width: 5px; height: 5px; border-radius: 50%; background: var(--line);
  transition: background .2s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover .dot{ background: var(--accent); }
.nav-links a.is-active{ color: var(--ink); }
.nav-links a.is-active .dot{ background: var(--accent); }
.nav-cta{
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--ink); padding: 8px 16px; border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--ink); color: var(--paper); }
.nav-toggle{
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px; width: 36px;
}
.nav-toggle span{ display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-mobile{
  display: none; flex-direction: column; padding: 8px var(--pad) 20px;
  border-top: 1px solid var(--line-soft);
}
.nav-mobile a{
  padding: 12px 0; font-family: var(--font-mono); font-size: 14px;
  border-bottom: 1px solid var(--line-soft); color: var(--ink-soft);
}
.nav.open .nav-mobile{ display: flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 96px var(--pad) 120px;
  overflow: hidden;
}
.hero-grid{
  position: absolute; inset: -40px -100px auto -100px; height: 620px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  opacity: .6;
  z-index: 0;
}
.hero-inner{ position: relative; z-index: 1; max-width: 880px; }

.hero-title{
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.04;
  font-weight: 800;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-title em{ font-style: italic; font-weight: 500; color: var(--ink-soft); }

.reveal{
  opacity: 0; transform: translateY(18px);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.delay-1{ animation-delay: .08s; }
.delay-2{ animation-delay: .16s; }
.delay-3{ animation-delay: .24s; }
.delay-4{ animation-delay: .36s; }
@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }

.hero-meta{ margin-top: 32px; max-width: 620px; }
.hero-sub{ font-size: 17px; color: var(--ink-soft); }
.hero-sub strong{ color: var(--ink); font-weight: 600; }
.hero-sub a{ text-decoration: underline; text-underline-offset: 3px; }

.hero-stats{ display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.stat-chip{
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 18px; display: flex; flex-direction: column; gap: 2px;
  min-width: 128px;
}
.stat-num{ font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--accent-2); }
.stat-label{ font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

.hero-actions{ display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn span{ transition: transform .2s ease; }
.btn:hover span{ transform: translateX(3px); }
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--accent); }
.btn-ghost{ border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-lg{ padding: 16px 26px; font-size: 15px; }

.scroll-cue{
  position: absolute; right: var(--pad); bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: .1em; text-transform: uppercase;
}
.scroll-cue i{
  width: 1px; height: 34px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue i::after{
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent); animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop{ 0%{ top: -100%; } 60%,100%{ top: 100%; } }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section{ max-width: var(--maxw); margin: 0 auto; padding: 108px var(--pad); }
.section-head{ max-width: 620px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin-bottom: 14px; }
.section-sub{ color: var(--ink-soft); font-size: 16px; }

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline{ display: flex; flex-direction: column; }

.role{ display: grid; grid-template-columns: 28px 1fr; gap: 28px; }
.role-rail{ display: flex; flex-direction: column; align-items: center; }
.role-dot{
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--accent);
  flex-shrink: 0; margin-top: 8px;
}
.role[data-tag="Current"] .role-dot{ background: var(--accent); }
.role-line{ width: 1px; flex: 1; background: var(--line); margin-top: 6px; }

.role-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 28px;
}
.role-top{
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 16px; margin-bottom: 16px;
}
.role-card h3{ font-size: 21px; font-weight: 700; }
.role-type{ font-weight: 400; color: var(--ink-soft); font-size: 16px; }
.role-org{ font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
.role-period{
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  background: rgba(255,90,54,.08); border: 1px solid rgba(255,90,54,.25);
  padding: 5px 10px; border-radius: 20px; white-space: nowrap;
}

.role-list li{
  position: relative; padding-left: 20px; margin-bottom: 10px;
  color: var(--ink-soft); font-size: 15px; line-height: 1.6;
}
.role-list li::before{
  content: '→'; position: absolute; left: 0; color: var(--accent);
  font-family: var(--font-mono); font-size: 13px;
}
.role-list li:last-child{ margin-bottom: 0; }

.role-impact{
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.impact-item{ display: flex; align-items: center; gap: 10px; }
.impact-num{
  font-family: var(--font-mono); font-weight: 600; font-size: 20px; color: var(--accent-2);
}
.impact-item span:last-child{ font-size: 13px; color: var(--ink-soft); max-width: 140px; }

/* ==========================================================================
   Expertise
   ========================================================================== */
.expertise-grid{
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: start;
}
.tag-cloud{ display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.tag{
  font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 9px 16px; color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tag:hover{ border-color: var(--accent); color: var(--ink); background: rgba(255,90,54,.05); }

.pillars-label{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-faint); margin: 0 0 18px; text-transform: uppercase;
}
.pillar-row{ display: flex; flex-direction: column; gap: 0; }
.pillar{
  padding: 20px 0; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; align-items: start;
}
.pillar:last-child{ border-bottom: 1px solid var(--line-soft); }
.pillar-index{ font-family: var(--font-mono); font-size: 13px; color: var(--accent); grid-row: span 2; padding-top: 3px; }
.pillar h3{ font-size: 17px; font-weight: 700; }
.pillar p{ grid-column: 2; font-size: 14px; color: var(--ink-soft); margin: 0; }

.tools-strip{ margin-top: 88px; }
.tools-label{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-faint); margin: 0 0 20px; text-transform: uppercase;
}
.tools-track{
  overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.tools-track{ display: flex; width: max-content; }
.tools-set{
  display: flex; gap: 40px; padding-right: 40px; flex-shrink: 0;
  animation: scroll-left 26s linear infinite;
}
.tools-set span{
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--ink-faint); white-space: nowrap;
}
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-100%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid{ display: grid; grid-template-columns: 1.2fr .9fr; gap: 64px; }
.about-lede{ font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }
.about-copy p{ margin: 0 0 18px; font-size: 16px; color: var(--ink-soft); }
.about-copy p:last-child{ margin-bottom: 0; }

.about-side{ display: flex; flex-direction: column; gap: 20px; }
.side-card{
  position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px 26px;
}
.side-card h4{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.edu-item{ margin-bottom: 14px; }
.edu-item:last-child{ margin-bottom: 0; }
.edu-degree{ font-size: 14.5px; font-weight: 600; margin: 0 0 2px; }
.edu-school{ font-size: 13px; color: var(--ink-soft); margin: 0; }

.cert-list li{
  font-size: 13.5px; color: var(--ink-soft);
  padding: 8px 0; border-top: 1px dashed var(--line-soft);
}
.cert-list li:first-child{ border-top: none; padding-top: 0; }

.lang-row{
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px dashed var(--line-soft); font-size: 14px;
}
.lang-row:first-of-type{ border-top: none; padding-top: 0; }
.lang-level{
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-2);
  background: rgba(31,170,89,.08); padding: 3px 9px; border-radius: 20px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{
  position: relative; margin: 0 var(--pad) 0; border-radius: 8px 8px 0 0;
  background: var(--ink); color: var(--paper); overflow: hidden;
  padding: 108px var(--pad) 88px;
}
.contact-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
}
.contact-inner{ position: relative; max-width: var(--maxw); margin: 0 auto; }
.contact .eyebrow{ color: var(--accent); }
.contact h2{ color: var(--paper); font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; }
.contact-sub{ color: rgba(242,244,247,.7); font-size: 17px; max-width: 460px; margin-top: 18px; }
.contact-actions{ margin-top: 36px; }
.contact .btn-primary{ background: var(--accent); color: var(--white); }
.contact .btn-primary:hover{ background: var(--paper); color: var(--ink); }

.contact-links{
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(242,244,247,.15);
}
.contact-links a{
  font-family: var(--font-mono); font-size: 13.5px; color: rgba(242,244,247,.75);
  display: flex; align-items: center; gap: 6px; transition: color .2s ease;
}
.contact-links a:hover{ color: var(--paper); }
.contact-loc{
  font-family: var(--font-mono); font-size: 13.5px; color: rgba(242,244,247,.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad) 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; gap: 12px;
}
.footer-top{ font-family: var(--font-mono); color: var(--ink-soft); }
.footer-top:hover{ color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px){
  .expertise-grid, .about-grid{ grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px){
  :root{ --pad: 20px; }
  .nav-links, .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .hero{ padding: 64px var(--pad) 90px; }
  .section{ padding: 72px var(--pad); }
  .role{ grid-template-columns: 18px 1fr; gap: 16px; }
  .role-card{ padding: 22px 20px; }
  .role-top{ flex-direction: column; align-items: flex-start; }
  .contact{ margin: 0; border-radius: 0; padding: 72px var(--pad) 64px; }
  .scroll-cue{ display: none; }
}
