/* ══════════════════════════════════════════════════════
   CUSTOM PROPERTIES
══════════════════════════════════════════════════════ */
:root {
  --bg:           #070D18;
  --bg-card:      rgba(11, 20, 38, 0.75);
  --glass-border: rgba(255, 255, 255, 0.07);

  --purple:       #7C3AED;
  --purple-lt:    #A78BFA;
  --cyan:         #06B6D4;
  --cyan-lt:      #67E8F9;
  --orange:       #F97316;
  --orange-lt:    #FCA768;
  --green:        #22C55E;

  --grad-cool:    linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --grad-warm:    linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
  --grad-line:    linear-gradient(to bottom, #7C3AED, #06B6D4, #F97316);

  --text-1:       #E2E8F0;
  --text-2:       #94A3B8;
  --text-3:       #475569;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --r-sm:         8px;
  --r-md:         14px;
  --r-lg:         20px;
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 600; }
em { font-style: italic; }

code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════════════ */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-cool);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ══════════════════════════════════════════════════════
   ANIMATED BACKGROUND ORBS
══════════════════════════════════════════════════════ */
.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  animation-duration: 11s;
}

.orb-2 {
  width: 420px;
  height: 420px;
  top: 38%;
  right: -80px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  animation-duration: 14s;
  animation-delay: -4s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -60px;
  left: 28%;
  background: radial-gradient(circle, #F97316, transparent 70%);
  animation-duration: 12s;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  33%       { transform: translateY(-28px) scale(1.04); }
  66%       { transform: translateY(18px) scale(0.97); }
}

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.layout {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.sidebar {
  flex: 0 0 400px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 4rem 2.5rem;
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2rem;
}

/* Availability badge */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.avail-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Name */
.name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 0.85rem;
}

.name-grad {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Role tag */
.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.85rem;
}

.role-icon { font-style: normal; }

/* Bio */
.bio {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 26rem;
}

/* ── Stats ── */
.stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat { flex: 1; text-align: center; }

.stat-val {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: var(--grad-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
}

.stat-sep {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* ── Nav ── */
.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: color 0.3s var(--ease);
}

.nav-pill {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text-3);
  border-radius: 2px;
  transition: width 0.35s var(--ease), background 0.3s var(--ease);
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
}

.nav-link:hover .nav-pill,
.nav-link.active .nav-pill {
  width: 46px;
  background: var(--cyan);
}

/* ── Social ── */
.social {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.soc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-3);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
}

.soc-btn:hover {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.14);
}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════ */
.content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  padding: 5rem 4rem 4rem 4.5rem;
}

/* ══════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════ */
.section {
  margin-bottom: 7.5rem;
}

.sec-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* Gradient text helper */
.g-text {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════
   GLASS CARD
══════════════════════════════════════════════════════ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(6, 182, 212, 0.05);
}

/* ══════════════════════════════════════════════════════
   3D TILT
══════════════════════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear,
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

/* ══════════════════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   SECTION 01 · NAME STORY
══════════════════════════════════════════════════════ */
.name-story {
  margin-bottom: 1.5rem;
}

.name-halves {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.half { flex: 1; }

.half-word {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.half-word.cool {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.half-word.warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.half-desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
}

.half-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.jalebi-spin {
  font-size: 2.4rem;
  display: inline-block;
  animation: spin-slow 9s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.plus {
  font-size: 0.8rem;
  color: var(--text-3);
}

.contrast-note {
  font-size: 0.9375rem;
  color: var(--text-2);
  padding-top: 1.1rem;
  border-top: 1px solid var(--glass-border);
}

/* Blockquote card */
.blockquote-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--r-md);
}

.bq-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--grad-cool);
  flex-shrink: 0;
}

.blockquote-card p {
  font-size: 0.9375rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════
   SECTION 02 · AI GRID
══════════════════════════════════════════════════════ */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ai-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.ai-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.ai-header h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-1);
  margin-bottom: 0.15rem;
}

.ai-sub {
  font-size: 0.72rem;
  color: var(--text-3);
}

.ai-card > p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Project links */
.plinks {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.plinks-sub {
  margin-top: 0.35rem;
  margin-left: 0.85rem;
}

.plink {
  font-size: 0.85rem;
  color: var(--cyan-lt);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s;
}

.plink:hover { opacity: 0.65; }

.plink i {
  font-size: 0.6rem;
  flex-shrink: 0;
}

.plink-label {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.09);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--cyan-lt);
}

/* ══════════════════════════════════════════════════════
   SECTION 03 · ABOUT
══════════════════════════════════════════════════════ */
.about-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.1rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--glass-border);
}

.cert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-sm);
  background: rgba(124, 58, 237, 0.09);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: var(--purple-lt);
}

.cert i { font-size: 0.78rem; }

/* ══════════════════════════════════════════════════════
   SECTION 04 · TIMELINE
══════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1.5rem;
}

/* Gradient vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--grad-line);
  border-radius: 2px;
}

.tl-item {
  display: flex;
  gap: 1.65rem;
  align-items: flex-start;
  position: relative;
}

.tl-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tl-item:hover .tl-dot {
  border-color: var(--purple-lt);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.tl-card { flex: 1; }

.tl-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.tl-period {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.tl-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tl-badge.current {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ADE80;
}

.tl-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.tl-company {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.tl-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.tl-card ul li {
  font-size: 0.865rem;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.tl-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--purple-lt);
  font-size: 0.7rem;
  top: 0.1em;
}

/* ══════════════════════════════════════════════════════
   SECTION 05 · PROJECTS GRID
══════════════════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.proj-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.proj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
  border-radius: inherit;
  pointer-events: none;
}

.proj-card:hover::after {
  transform: translateX(120%);
}

/* Wide card spans 2 columns */
.proj-card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.proj-card-wide .proj-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.proj-card-wide > div {
  flex: 1;
}

.proj-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.proj-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-1);
  line-height: 1.35;
}

.proj-card p {
  font-size: 0.855rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  padding: 2.5rem 0 5rem;
  border-top: 1px solid var(--glass-border);
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-sub {
  margin-top: 0.3rem;
  font-size: 0.72rem !important;
  opacity: 0.55;
}

.footer-versions {
  margin-top: 0.8rem;
  font-size: 0.72rem !important;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-link {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.version-link:hover {
  border-color: var(--purple-lt);
  color: var(--purple-lt);
}

/* ══════════════════════════════════════════════════════
   FOCUS STYLES (accessibility)
══════════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar { flex: 0 0 320px; padding: 3rem 2rem; }
  .content { padding: 4rem 3rem; }
  .ai-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .layout {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    flex: none;
    width: 100%;
    height: auto;
    position: static;
    padding: 2rem 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    overflow: visible;
  }

  .sidebar-inner { gap: 1.5rem; }
  .nav { display: none; }
  .social { margin-top: 0; }

  .content {
    height: auto;
    overflow-y: visible;
    padding: 2.5rem 1.5rem;
  }

  .section { margin-bottom: 4rem; }

  .ai-grid,
  .proj-grid { grid-template-columns: 1fr; }

  .proj-card-wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .name-halves {
    flex-direction: column;
    gap: 0.85rem;
  }

  .half-divider { flex-direction: row; }

  .sec-title { font-size: 1.75rem; }
  .name { font-size: 2rem; }

  .timeline { padding-left: 1rem; }
  .timeline::before { left: 3px; }

  .orb { opacity: 0.1; }
}

@media (max-width: 480px) {
  .sidebar { padding: 1.5rem 1rem 1rem; }
  .content { padding: 1.5rem 1rem; }
  .glass-card { padding: 1.25rem; }
  .stats { padding: 0.85rem 1rem; }
}
