/* ═══════════════════════════════════════════════════════════
   iRawNewton Portfolio — styles.css
   Author: Gaurab Roy (iRawNewton)
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  --blue: #0ff;
  --blue-dim: #00d4ff;
  --blue-dark: #0066cc;
  --cyan: #00f5ff;
  --cyan-glow: rgba(0, 245, 255, 0.15);
  --navy: #050d1a;
  --navy-2: #071122;
  --navy-3: #0a1628;
  --navy-card: rgba(10, 22, 40, 0.85);
  --white: #f0f8ff;
  --white-60: rgba(240, 248, 255, 0.6);
  --white-20: rgba(240, 248, 255, 0.2);
  --white-08: rgba(240, 248, 255, 0.08);
  --accent: #00ffcc;
  --accent-dim: rgba(0, 255, 204, 0.12);
  --border: rgba(0, 245, 255, 0.15);
  --border-2: rgba(0, 245, 255, 0.08);
  --glow-sm: 0 0 12px rgba(0, 245, 255, 0.3);
  --glow-md: 0 0 30px rgba(0, 245, 255, 0.25);
  --glow-lg: 0 0 60px rgba(0, 245, 255, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  /* custom cursor */
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}

/* ─── Background Canvas ─────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Scroll Progress ────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-dark), var(--cyan), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--cyan);
}

/* ─── Custom Cursor ──────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: var(--glow-sm);
  transition: transform 0.1s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 245, 255, 0.5);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
}

@media (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ─── Section base ───────────────────────────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--blue-dark), var(--cyan));
  border-radius: 2px;
  box-shadow: var(--glow-sm);
}

/* ─── Reveal Animations ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 4px 40px rgba(0, 255, 204, 0.45);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--white-60);
  background: var(--white-08);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(0, 245, 255, 0.08);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-2), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.3s;
}

.logo-bracket {
  color: var(--cyan);
}

.logo-text {
  color: var(--white);
}

.nav-logo:hover .logo-text {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-60);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--white);
  background: var(--white-08);
}

.nav-link.active {
  color: var(--cyan);
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
  color: var(--navy) !important;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 20px;
  box-shadow: 0 2px 16px rgba(0, 212, 255, 0.3);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  color: var(--navy) !important;
  box-shadow: 0 4px 24px rgba(0, 255, 204, 0.4);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white-60);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: left;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(-1px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(1px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5, 13, 26, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

/* Animated grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
  z-index: 0;
}

@keyframes gridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

/* Floating tech icons */
.float-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: floatBob 6s ease-in-out infinite;
  animation-delay: var(--d);
}

.float-icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.18;
}

.float-icon span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  opacity: 0.18;
  letter-spacing: 0.1em;
}

.fi-flutter {
  color: var(--blue-dim);
}

.fi-dart {
  color: #0175C2;
}

.fi-firebase {
  color: #FFCA28;
}

.fi-supabase {
  color: var(--accent);
}

.fi-github {
  color: var(--white);
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(2deg);
  }

  66% {
    transform: translateY(-6px) rotate(-1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  opacity: 0.85;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.name-pre {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--white-60);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.name-main {
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 70%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.25));
}

.name-brand {
  font-size: 0.38em;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  -webkit-text-fill-color: var(--cyan);
}

.hero-title {
  margin-bottom: 20px;
}

.title-static {
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--white-60);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 8px 24px;
  border-radius: 100px;
  background: var(--white-08);
  backdrop-filter: blur(8px);
  display: inline-block;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 600;
  color: var(--white);
  min-height: 2.2em;
  margin-bottom: 20px;
}

.typed-cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--cyan);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--white-60);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
  row-gap: 16px;
  box-shadow: var(--glow-sm);
  display: inline-flex;
}

.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 32px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-pill>span:not(.stat-num):not(.stat-label) {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--cyan);
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--white-60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -2px;
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--white-60);
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--cyan);
  left: -1px;
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% {
    top: -10px;
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 40px;
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about {
  background: var(--navy-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.avatar-frame {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.avatar-inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-card));
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-md);
  position: relative;
  z-index: 2;
  margin: 10px auto 0;
}

.avatar-initials {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.avatar-ring.r1 {
  width: 230px;
  height: 230px;
  animation: ringPulse 3s ease-in-out infinite;
}

.avatar-ring.r2 {
  width: 260px;
  height: 260px;
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.08;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.avatar-badge {
  position: absolute;
  bottom: 14px;
  right: -10px;
  background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
  z-index: 3;
}

.about-lead {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-text-col p {
  color: var(--white-60);
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.about-text-col p strong {
  color: var(--white);
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  transition: background 0.25s, border-color 0.25s;
}

.chip:hover {
  background: rgba(0, 245, 255, 0.14);
  border-color: var(--cyan);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--white-60);
  transition: color 0.25s;
}

.about-link svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.about-link:hover {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .avatar-frame {
    width: 180px;
    height: 180px;
  }

  .avatar-inner {
    width: 160px;
    height: 160px;
  }
}

/* ═══════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════ */
.skills {
  background: var(--navy);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  transition-delay: var(--card-delay, 0s);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: var(--glow-md);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.skill-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.skill-card h3 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sl-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-60);
  width: 110px;
  flex-shrink: 0;
}

.sl-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.sl-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-dark), var(--cyan));
  box-shadow: 0 0 6px rgba(0, 245, 255, 0.4);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
═══════════════════════════════════════════════════════════ */
.experience {
  background: var(--navy-2);
}

.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

.ti-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ti-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-3);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-top: 20px;
}

.timeline-item.ti-active .ti-dot,
.timeline-item:hover .ti-dot {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
  box-shadow: var(--glow-sm);
}

.ti-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border), transparent);
  min-height: 24px;
}

.ti-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.ti-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-item.ti-active .ti-card::before,
.timeline-item:hover .ti-card::before {
  opacity: 1;
}

.timeline-item:hover .ti-card {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--glow-sm);
  transform: translateX(4px);
}

.ti-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ti-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.ti-company {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 2px;
}

.ti-location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-60);
}

.ti-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--white-60);
  white-space: nowrap;
  flex-shrink: 0;
}

.ti-badge.ti-current {
  background: rgba(0, 255, 204, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.ti-period {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-60);
  margin-bottom: 16px;
}

.ti-period svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.ti-bullets {
  margin-bottom: 16px;
  padding-left: 16px;
}

.ti-bullets li {
  font-size: 0.9rem;
  color: var(--white-60);
  margin-bottom: 6px;
  position: relative;
}

.ti-bullets li::before {
  content: '›';
  position: absolute;
  left: -14px;
  color: var(--cyan);
  font-weight: 700;
}

.ti-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ti-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════════ */
.projects {
  background: var(--navy);
}

.proj-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pf-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-60);
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.25s;
}

.pf-btn:hover,
.pf-btn.active {
  color: var(--navy);
  background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(0, 212, 255, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.proj-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.proj-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .proj-card-wide {
    grid-column: span 2;
  }
}

.proj-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.35s;
  opacity: 0;
}

.proj-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: var(--glow-md);
}

.proj-card:hover .proj-card-glow {
  opacity: 1;
}

.proj-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.proj-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-dark), rgba(0, 245, 255, 0.2));
  border: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--cyan);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.proj-meta {
  flex: 1;
}

.proj-meta h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.proj-platform {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--white-60);
  letter-spacing: 0.08em;
}

.proj-store-link,
.proj-store-badges {
  color: var(--white-60);
  transition: color 0.25s;
  display: flex;
  gap: 8px;
}

.proj-store-link svg {
  width: 20px;
  height: 20px;
}

.proj-store-link:hover {
  color: var(--cyan);
}

.proj-desc {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 16px;
}

.proj-features {
  margin-bottom: 16px;
  padding-left: 14px;
}

.proj-features li {
  font-size: 0.82rem;
  color: var(--white-60);
  margin-bottom: 5px;
  position: relative;
}

.proj-features li::before {
  content: '→';
  position: absolute;
  left: -14px;
  color: var(--accent);
  font-size: 0.8rem;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.proj-tech span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.proj-impact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-2);
}

.proj-impact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* hide filtered-out cards */
.proj-card.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   ACHIEVEMENTS
═══════════════════════════════════════════════════════════ */
.achievements {
  background: var(--navy-2);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ach-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.ach-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ach-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--glow-md);
}

.ach-card:hover::after {
  opacity: 1;
}

.ach-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.4));
}

.ach-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.ach-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.ach-desc {
  font-size: 0.86rem;
  color: var(--white-60);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════════════════════ */
.education {
  background: var(--navy);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.edu-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.edu-card:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}

.edu-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.edu-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-degree {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.edu-school {
  font-size: 0.84rem;
  color: var(--cyan);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-60);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   WHY
═══════════════════════════════════════════════════════════ */
.why {
  background: var(--navy-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--glow-md);
}

.why-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0, 245, 255, 0.06);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.why-card:hover .why-num {
  color: rgba(0, 245, 255, 0.12);
}

.why-card h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  position: relative;
}

.why-card h3::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--cyan));
  border-radius: 2px;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.75;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact {
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cd-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cd-item:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--glow-sm);
  transform: translateX(4px);
}

.cd-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-icon svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.cd-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cd-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
}

/* Contact Form */
.contact-form-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glow-sm);
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.cf-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cf-field input,
.cf-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(240, 248, 255, 0.25);
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  color: var(--accent);
}

.form-success svg {
  width: 48px;
  height: 48px;
}

.form-success p {
  font-size: 1rem;
  color: var(--white-60);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cf-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border-2);
  padding: 60px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--white-60);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-brand .nav-logo {
  margin-bottom: 4px;
  display: inline-block;
}

.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--white-60);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--white-08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-60);
  transition: all 0.25s;
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-sm);
}

.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--white-60);
}

.footer-keywords {
  font-family: var(--font-mono);
  font-size: 0.65rem !important;
  letter-spacing: 0.06em;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 28px rgba(0, 255, 204, 0.5);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ─── Misc utilities ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.4);
}

::selection {
  background: rgba(0, 245, 255, 0.25);
  color: var(--white);
}

/* ─── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .hero-stats {
    padding: 16px 20px;
  }

  .stat-pill {
    padding: 0 16px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .ach-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .float-icon {
    display: none;
  }
}