/* ==============================
   VARIABLES & RESET
   ============================== */

:root {
  --bg: #030711;
  --bg-soft: #0b1220;
  --card: rgba(11, 18, 32, 0.75);
  --card-hover: rgba(15, 25, 45, 0.9);
  --text: #c8d3e8;
  --muted: #64748b;
  --heading: #ffffff;
  --accent: #4af0c4;
  --accent-2: #7c6bf5;
  --accent-3: #f0924a;
  --border: rgba(100, 116, 139, 0.18);
  --border-hover: rgba(74, 240, 196, 0.35);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-soft: #eef1f7;
  --card: rgba(255, 255, 255, 0.82);
  --card-hover: rgba(255, 255, 255, 0.96);
  --text: #374151;
  --muted: #6b7280;
  --heading: #0f172a;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(74, 240, 196, 0.5);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: none;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==============================
   LOADER
   ============================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.06em;
  animation: loaderPulse 1.1s ease-in-out infinite alternate;
}

.loader-logo span {
  color: var(--accent);
}

.hidden-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loaderPulse {
  from {
    transform: scale(0.98);
    opacity: 0.65;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==============================
   BACKGROUND
   ============================== */

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.9;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ==============================
   CUSTOM CURSOR
   ============================== */

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(74, 240, 196, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s;
}

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

/* ==============================
   SCROLL PROGRESS
   ============================== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000;
  transition: width 0.05s linear;
}

/* ==============================
   THEME TOGGLE
   ============================== */

.theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 5rem;
  z-index: 200;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  cursor: none;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(20deg);
}

/* ==============================
   NAVBAR
   ============================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(3, 7, 17, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 247, 250, 0.85);
}

.nav-container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.04em;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.logo:hover::after {
  width: 100%;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  cursor: none;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--heading);
  margin: 2px auto;
  transition: 0.3s ease;
}

/* ==============================
   HERO
   ============================== */

.hero {
  min-height: 100vh;
  padding: 110px 0 80px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.availability-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.status-pill,
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.status-pill {
  border: 1px solid rgba(74, 240, 196, 0.3);
  background: rgba(74, 240, 196, 0.07);
  color: var(--accent);
}

.availability-pill {
  border: 1px solid rgba(124, 107, 245, 0.35);
  background: rgba(124, 107, 245, 0.08);
  color: var(--heading);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(74, 240, 196, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 240, 196, 0.55);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(74, 240, 196, 0);
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.9;
  color: var(--heading);
  letter-spacing: -0.06em;
  margin-bottom: 1.6rem;
}

.hero-headline .line {
  display: block;
}

.hero-headline .accent-line {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 580px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.hero-sub strong {
  color: var(--heading);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

/* ==============================
   BUTTONS
   ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: none;
  transition: 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #38bde0 50%, var(--accent-2) 100%);
  background-size: 200% 200%;
  color: #030711;
  animation: gradShift 4s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(74, 240, 196, 0.25);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--heading);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

@keyframes gradShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.magnetic {
  display: inline-flex;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-socials a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, transform 0.2s;
}

.hero-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ==============================
   TERMINAL CARD
   ============================== */

.hero-card {
  position: relative;
}

.terminal-card {
  border: 1px solid var(--border);
  background: rgba(3, 7, 17, 0.88);
  backdrop-filter: blur(24px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.terminal-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-header span:nth-child(1) {
  background: #ef4444;
}

.terminal-header span:nth-child(2) {
  background: #f59e0b;
}

.terminal-header span:nth-child(3) {
  background: #22c55e;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.5rem;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.terminal-body {
  padding: 1.4rem 8rem 1.6rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  margin-top: 0.9rem;
}

.terminal-line:first-child {
  margin-top: 0;
}

.prompt {
  color: var(--accent);
}

.cmd {
  color: #e2e8f0;
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-size: 0.85rem;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-output {
  color: var(--muted);
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.83rem;
}

.stack-pills,
.tech-list,
.about-tags,
.resume-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-pills {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.stack-pills span,
.tech-list span,
.about-tags span,
.resume-mini-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(74, 240, 196, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tech-list span:hover {
  border-color: var(--accent);
  background: rgba(74, 240, 196, 0.12);
  transform: translateY(-2px);
}

.about-tags span {
  color: var(--text);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* ==============================
   PROFILE ORB
   ============================== */

.profile-orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -16px;
  bottom: -70px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 24px 60px rgba(74, 240, 196, 0.2);
}

.profile-orbit img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg);
}

/* ==============================
   IMPACT SECTION
   ============================== */

.impact-strip {
  padding: 1.3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.impact-card {
  padding: 1.6rem;
  background: rgba(3, 7, 17, 0.75);
  backdrop-filter: blur(18px);
  transition: background 0.25s, transform 0.25s;
}

[data-theme="light"] .impact-card {
  background: rgba(255, 255, 255, 0.82);
}

.impact-card:hover {
  background: var(--card-hover);
}

.impact-card h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.35rem;
}

.impact-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==============================
   SECTIONS COMMON
   ============================== */

.section {
  padding: 100px 0;
}

.dark-section {
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-title.left {
  text-align: left;
  margin: 0 0 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: start;
}

/* ==============================
   ABOUT
   ============================== */

.about-text p {
  color: var(--text);
  margin-bottom: 1.1rem;
}

.about-tags {
  margin-top: 1.2rem;
}

/* ==============================
   SKILLS
   ============================== */

.skills-layout-new {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.skill-bars {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-bar:not(:last-child) {
  margin-bottom: 1.2rem;
}

.skill-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
}

.skill-bar-top span {
  color: var(--heading);
  font-weight: 700;
  font-size: 0.92rem;
}

.skill-bar-top small {
  color: var(--muted);
  font-size: 0.75rem;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(74, 240, 196, 0.2);
}

.skills-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.skill-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}

.skill-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.skill-card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.skill-card h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

/* ==============================
   PROJECTS
   ============================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.8rem;
  min-height: 280px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.project-card.featured {
  background: linear-gradient(135deg, rgba(74, 240, 196, 0.08), rgba(124, 107, 245, 0.08)), var(--card);
  border-color: rgba(74, 240, 196, 0.25);
}

.project-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 240, 196, 0.15), transparent 70%);
  top: -60px;
  right: -60px;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(74, 240, 196, 0.08);
}

.project-card:hover .project-label {
  transform: translateX(6px);
}

.project-card:hover .project-top i {
  transform: rotate(-8deg) scale(1.08);
  color: var(--accent);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-label {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.project-top i {
  color: var(--heading);
  font-size: 1.4rem;
  opacity: 0.7;
  transition: transform 0.2s, color 0.2s;
}

.project-card h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.project-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.tech-list {
  margin-top: 1.2rem;
}

.project-links {
  margin-top: 1.5rem;
}

.proj-link {
  color: var(--muted);
  background: transparent;
  cursor: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.proj-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ==============================
   ARCHITECTURE
   ============================== */

.architecture-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.arch-node {
  min-height: 210px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.arch-node:hover {
  border-color: var(--border-hover);
  background: rgba(74, 240, 196, 0.05);
  transform: translateY(-4px);
}

.arch-node i {
  color: var(--accent);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.arch-node h3 {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.arch-node p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.arch-arrow {
  color: var(--accent);
  opacity: 0.75;
}

/* ==============================
   EXPERIENCE / TIMELINE
   ============================== */

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

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.8rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(74, 240, 196, 0.35);
}

.timeline-content {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
}

.timeline-content:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.timeline-date {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-company {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.7rem !important;
  opacity: 0.75;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==============================
   RESUME PREVIEW
   ============================== */

.resume-section {
  background: transparent;
}

.resume-preview-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.resume-preview-card::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 107, 245, 0.15), transparent 70%);
  right: -80px;
  top: -80px;
}

.resume-preview-left {
  position: relative;
  z-index: 1;
}

.resume-preview-left .eyebrow {
  margin-bottom: 0.3rem;
}

.resume-preview-left h2 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.resume-preview-left p {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 1.4rem;
}

.resume-paper {
  position: relative;
  z-index: 1;
  min-height: 420px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  padding: 1.4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.resume-preview-card:hover .resume-paper {
  transform: rotate(0deg) translateY(-4px);
}

.resume-paper-header {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.4rem;
}

.resume-paper-header strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.resume-paper-header span {
  color: #64748b;
  font-size: 0.8rem;
}

.resume-line {
  height: 8px;
  width: 75%;
  background: #dbe3ef;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.resume-line.wide {
  width: 100%;
}

.resume-line.short {
  width: 45%;
}

.resume-mini-section {
  margin-top: 1.4rem;
}

.resume-mini-section span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.resume-mini-tags {
  margin-top: 1.5rem;
}

.resume-mini-tags span {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

/* ==============================
   CONTACT
   ============================== */

.contact-section p {
  color: var(--muted);
  margin-top: 0.8rem;
}

.contact-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.contact-form {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  outline: none;
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(74, 240, 196, 0.04);
}

.form-group small {
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 600;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #ef4444;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(3, 7, 17, 0.3);
  border-top-color: #030711;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================
   MODALS
   ============================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 17, 0.78);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  animation: modalIn 0.25s ease;
}

[data-theme="light"] .modal-content {
  background: rgba(255, 255, 255, 0.96);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--heading);
  cursor: none;
}

.modal-content h2 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-grid > div {
  background: rgba(255, 255, 255, 0.025);
  padding: 1.2rem;
}

[data-theme="light"] .modal-grid > div {
  background: rgba(255, 255, 255, 0.8);
}

.modal-grid h3 {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.modal-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==============================
   THANK YOU PAGE
   ============================== */

.thank-page {
  min-height: 100vh;
}

.thank-you-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px;
}

.thank-you-card {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(24px);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #030711;
  font-size: 2rem;
}

.thank-you-card h1 {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.8rem;
}

.thank-copy {
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto 1rem;
}

.redirect-text {
  color: var(--muted);
}

.redirect-text span {
  color: var(--accent);
  font-weight: 700;
}

.thank-actions {
  margin-top: 1.8rem;
}

/* ==============================
   FOOTER
   ============================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.back-top {
  color: var(--heading);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.back-top:hover {
  color: var(--accent);
}

/* ==============================
   REVEAL ANIMATIONS
   ============================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1050px) {
  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .arch-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .arch-node {
    min-height: auto;
  }

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

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .resume-preview-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 2rem;
  }

  .profile-orbit {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 1.5rem auto 0;
  }

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

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

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-paper {
    transform: rotate(0deg);
  }
}

@media (max-width: 850px) {
  body {
    cursor: auto;
  }

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

  .btn,
  .hamburger,
  .theme-toggle,
  .proj-link,
  .modal-close {
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    background: rgba(3, 7, 17, 0.97);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem;
    backdrop-filter: blur(24px);
    display: none;
    align-items: stretch;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .theme-toggle {
    right: 70px;
  }

  .hero {
    padding-top: 110px;
  }

  .terminal-card {
    transform: none;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .section {
    padding: 75px 0;
  }

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

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

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

  .thank-you-card {
    padding: 2.2rem;
  }
}

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

.resume-section .eyebrow,
.contact-section .eyebrow {
  color: #4af0c4 !important;
}

.location-card {
  margin-top: 1.8rem;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  overflow: hidden;
}

.location-text {
  padding: 1rem 1rem 0.8rem;
}

.location-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.location-label i {
  font-size: 0.95rem;
}

.location-text p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.map-preview {
  height: 180px;
  border-top: 1px solid var(--border);
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: none;
}

/* ==============================
   SKILL LOGO MARQUEE
   ============================== */

.logo-marquee {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
  padding-top: 6px;

  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marqueeScroll 40s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex-shrink: 0;

  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(74, 240, 196, 0.12);
}

.logo-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.skills-layout-new,
.skills-cards,
.skill-card {
  overflow: visible;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==============================
   CERTIFICATIONS
   ============================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cert-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(74,240,196,0.12);
}

.cert-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-image i {
  font-size: 5.5rem;
  transition: transform 0.25s ease;
}

.cert-card:hover .cert-image i {
  transform: scale(1.08);
}

.ibm-bg {
  background:
    radial-gradient(circle at top right,
    rgba(15,98,254,0.14),
    transparent 60%),
    rgba(255,255,255,0.02);
}

.ibm-logo {
  width: 105px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

[data-theme="light"] .ibm-logo {
  filter: none;
}

.google-bg {
  background:
    radial-gradient(circle at top right,
    rgba(66,133,244,0.14),
    transparent 60%),
    rgba(255,255,255,0.02);
}

.google-logo {
  width: 68px;
}

.france-bg {
  background: linear-gradient(
    135deg,
    rgba(0, 85, 164, 0.15),
    rgba(255,255,255,0.08),
    rgba(239, 65, 53, 0.15)
  );
}

.flag-icon {
  font-size: 3.2rem;
}

.cert-content {
  padding: 1.2rem;
}

.cert-provider {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-content h3 {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.45rem 0 0.55rem;
}

.cert-content small {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

.experience-card {
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(74,240,196,0.08), transparent 42%);
  pointer-events: none;
}

.experience-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.experience-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(74,240,196,0.25);
  background: rgba(74,240,196,0.07);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.impact-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.impact-points span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.experience-card .tech-list {
  position: relative;
  z-index: 1;
}

@media (max-width: 850px) {
  .experience-top {
    flex-direction: column;
  }
}

/* ==============================
   EXPERIENCE LOGOS
   ============================== */

.experience-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.experience-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;

  opacity: 0.92;
  filter:
    drop-shadow(0 8px 18px rgba(0,0,0,0.18));

  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
}

.timeline-content:hover .experience-logo {
  transform: translateY(-2px) scale(1.03);
  opacity: 1;

  filter:
    drop-shadow(0 12px 22px rgba(74,240,196,0.10));
}

.timeline-content h3 {
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .experience-logo {
    width: 44px;
    height: 44px;
  }
}

.cert-coming {
  opacity: 0.92;
  border-style: dashed;
}

.cert-coming:hover {
  transform: translateY(-6px);
}

.coming-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      rgba(74,240,196,0.12),
      rgba(124,107,245,0.12)
    );
}

.coming-bg i {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.9;
}

.coursework-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25rem;
}

.course-card{
  border:1px solid var(--border);
  background:var(--card);
  backdrop-filter:blur(18px);
  border-radius:var(--radius);
  padding:1.6rem;
  transition:border-color .25s, transform .25s, box-shadow .25s;
}

.course-card:hover{
  border-color:var(--border-hover);
  transform:translateY(-4px);
  box-shadow:0 20px 50px rgba(74,240,196,0.08);
}

.course-card-head{
  display:flex;
  align-items:center;
  gap:0.7rem;
  margin-bottom:1.3rem;
  padding-bottom:1.1rem;
  border-bottom:1px solid var(--border);
}

.course-card-head i{
  color:var(--accent);
  font-size:1.3rem;
  width:38px;
  height:38px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:rgba(74,240,196,0.08);
  border:1px solid rgba(74,240,196,0.18);
}

.course-card-head h3{
  color:var(--heading);
  font-family:var(--font-display);
  font-size:1.02rem;
  margin:0;
}

.course-card ul{
  list-style:none;
  padding:0;
  margin:0;
}

.course-card li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.8rem;
  padding:0.65rem 0.15rem;
  border-bottom:1px dashed var(--border);
  transition:background .2s ease, padding-left .2s ease;
  border-radius:8px;
}

.course-card li:last-child{
  border-bottom:none;
}

.course-card li:hover{
  background:rgba(74,240,196,0.05);
  padding-left:0.5rem;
}

.course-name{
  color:var(--text);
  font-size:0.88rem;
  line-height:1.4;
}

.course-code{
  flex-shrink:0;
  font-family:var(--font-mono);
  font-size:0.7rem;
  font-weight:600;
  color:var(--accent);
  background:rgba(74,240,196,0.07);
  border:1px solid var(--border);
  padding:0.22rem 0.55rem;
  border-radius:999px;
  white-space:nowrap;
}

@media (max-width: 900px){
  .coursework-grid{
    grid-template-columns:1fr;
  }
}

.projects-more{
  display:flex;
  justify-content:center;
  margin-top:2.5rem;
}

.projects-btn{
  padding:1rem 1.75rem;
  font-size:1rem;
  box-shadow:0 16px 40px rgba(74,240,196,.15);
}

.projects-btn:hover{
  box-shadow:0 20px 50px rgba(74,240,196,.25);
}

/* =========================================================
   MODERN AI SYSTEM ARCHITECTURE
   ========================================================= */

.ai-system-architecture {
  --ai-accent: var(--primary, #8b5cf6);
  --ai-accent-secondary: var(--secondary, #22d3ee);
  --ai-surface: rgba(255, 255, 255, 0.045);
  --ai-surface-strong: rgba(255, 255, 255, 0.07);
  --ai-border: rgba(255, 255, 255, 0.11);
  --ai-border-strong: rgba(139, 92, 246, 0.45);
  --ai-muted: rgba(255, 255, 255, 0.65);

  position: relative;
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px solid var(--ai-border);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(139, 92, 246, 0.13),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.ai-system-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.ai-architecture-heading {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.ai-architecture-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 999px;
  color: var(--ai-accent);
  background: rgba(139, 92, 246, 0.09);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ai-architecture-heading h3 {
  margin: 0 0 0.8rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.1;
}

.ai-architecture-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ai-muted);
  line-height: 1.75;
}

.ai-architecture-canvas {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto;
}

.ai-layer {
  display: flex;
  justify-content: center;
}

.ai-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ai-border);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.ai-node:hover {
  z-index: 5;
  transform: translateY(-5px);
  border-color: var(--ai-border-strong);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(139, 92, 246, 0.1);
}

.ai-node-wide {
  width: min(100%, 680px);
}

.ai-user-node {
  width: min(100%, 360px);
}

.ai-node-icon {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  color: var(--ai-accent);
  background: rgba(139, 92, 246, 0.1);
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-node-copy {
  flex: 1;
  min-width: 0;
}

.ai-node-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ai-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-node h4 {
  margin: 0 0 0.28rem;
  font-size: 1rem;
}

.ai-node p {
  margin: 0;
  color: var(--ai-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ai-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(34, 211, 238, 0.17);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(34, 211, 238, 0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  white-space: nowrap;
}

.ai-status-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-accent-secondary);
  box-shadow: 0 0 10px var(--ai-accent-secondary);
  animation: aiStatusPulse 1.8s infinite;
}

/* Vertical request lines */

.ai-vertical-connector {
  position: relative;
  width: 2px;
  height: 70px;
  margin: 0 auto;
  overflow: visible;
  background: linear-gradient(
    to bottom,
    rgba(139, 92, 246, 0.15),
    rgba(139, 92, 246, 0.75),
    rgba(139, 92, 246, 0.15)
  );
}

.ai-vertical-connector::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ai-accent);
  border-bottom: 2px solid var(--ai-accent);
  transform: translateX(-50%) rotate(45deg);
}

.ai-connector-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(10, 10, 20, 0.8);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  white-space: nowrap;
}

.ai-flow-dot {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ai-accent-secondary);
  box-shadow:
    0 0 7px var(--ai-accent-secondary),
    0 0 16px var(--ai-accent-secondary);
  transform: translateX(-50%);
  animation: aiFlowDown 2.4s linear infinite;
}

.ai-flow-dot-delay-1 {
  animation-delay: 0.4s;
}

.ai-flow-dot-delay-2 {
  animation-delay: 0.8s;
}

.ai-flow-dot-delay-3 {
  animation-delay: 1.2s;
}

/* AWS boundary */

.ai-cloud-boundary {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(255, 153, 0, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 153, 0, 0.07),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.018);
}

.ai-cloud-boundary::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px dashed rgba(255, 153, 0, 0.08);
  border-radius: 19px;
}

.ai-cloud-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-cloud-title > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ai-cloud-title i {
  color: #ff9900;
  font-size: 1.4rem;
}

.ai-cloud-title small {
  color: rgba(255, 255, 255, 0.46);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
}

/* Service split */

.ai-service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ai-service-node {
  align-items: flex-start;
  min-height: 155px;
}

.ai-service-node .ai-node-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.ai-mini-documents {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 32px;
  opacity: 0.38;
}

.ai-mini-documents span {
  position: absolute;
  width: 25px;
  height: 29px;
  border: 1px solid var(--ai-accent);
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.07);
}

.ai-mini-documents span:nth-child(1) {
  left: 0;
  transform: rotate(-8deg);
}

.ai-mini-documents span:nth-child(2) {
  left: 8px;
}

.ai-mini-documents span:nth-child(3) {
  left: 16px;
  transform: rotate(8deg);
}

/* Branch connectors */

.ai-branch-connector,
.ai-merge-connector {
  position: relative;
  height: 70px;
}

.ai-branch-connector::before,
.ai-merge-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 34px;
  transform: translateX(-50%);
  background: rgba(139, 92, 246, 0.55);
}

.ai-branch-connector::before {
  top: 0;
}

.ai-merge-connector::before {
  bottom: 0;
}

.ai-branch-connector::after,
.ai-merge-connector::after {
  content: "";
  position: absolute;
  left: 16.66%;
  width: 66.66%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.2),
    rgba(139, 92, 246, 0.75),
    rgba(139, 92, 246, 0.2)
  );
}

.ai-branch-connector::after {
  top: 33px;
}

.ai-merge-connector::after {
  bottom: 33px;
}

.ai-branch-line,
.ai-merge-line {
  position: absolute;
  width: 2px;
  height: 36px;
  background: rgba(139, 92, 246, 0.45);
}

.ai-branch-line {
  top: 33px;
}

.ai-merge-line {
  bottom: 33px;
}

.ai-branch-line-left,
.ai-merge-line-left {
  left: 16.66%;
}

.ai-branch-line-right,
.ai-merge-line-right {
  right: 16.66%;
}

.ai-branch-dot,
.ai-merge-dot {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ai-accent);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.8);
  transform: translateX(-50%);
}

.ai-branch-dot {
  top: 29px;
}

.ai-merge-dot {
  bottom: 29px;
}

/* Special nodes */

.ai-api-node {
  border-color: rgba(34, 211, 238, 0.2);
}

.ai-llm-node {
  overflow: hidden;
  border-color: rgba(139, 92, 246, 0.34);
}

.ai-llm-node::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(139, 92, 246, 0.08) 45%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: aiModelSweep 4s ease-in-out infinite;
}

.ai-model-pulse {
  position: absolute;
  left: 24px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 17px;
  animation: aiModelPulse 2.2s ease-out infinite;
}

.ai-response-node {
  border-color: rgba(34, 197, 94, 0.22);
}

.ai-response-node .ai-node-icon {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(74, 222, 128, 0.08);
}

/* Stack pills */

.ai-architecture-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.ai-architecture-stack span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--ai-border);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.ai-architecture-stack span:hover {
  transform: translateY(-3px);
  border-color: var(--ai-border-strong);
  color: #ffffff;
}

.ai-architecture-stack i {
  color: var(--ai-accent);
}

.ai-architecture-note {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

/* Animations */

@keyframes aiFlowDown {
  0% {
    top: -7px;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 2px);
    opacity: 0;
  }
}

@keyframes aiStatusPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes aiModelPulse {
  0% {
    opacity: 0.65;
    transform: scale(0.85);
  }

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

@keyframes aiModelSweep {
  0%,
  25% {
    transform: translateX(-100%);
  }

  60%,
  100% {
    transform: translateX(100%);
  }
}

/* Light theme support */

html[data-theme="light"] .ai-system-architecture {
  --ai-surface: rgba(15, 23, 42, 0.035);
  --ai-surface-strong: rgba(15, 23, 42, 0.06);
  --ai-border: rgba(15, 23, 42, 0.11);
  --ai-muted: rgba(15, 23, 42, 0.65);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(139, 92, 246, 0.1),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .ai-node {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(248, 250, 252, 0.9)
    );
}

html[data-theme="light"] .ai-node p,
html[data-theme="light"] .ai-architecture-heading p {
  color: rgba(15, 23, 42, 0.66);
}

html[data-theme="light"] .ai-status-badge,
html[data-theme="light"] .ai-architecture-stack span {
  color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .ai-connector-label {
  color: rgba(15, 23, 42, 0.64);
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .ai-cloud-title small,
html[data-theme="light"] .ai-architecture-note {
  color: rgba(15, 23, 42, 0.48);
}

/* Tablet */

@media (max-width: 900px) {
  .ai-system-architecture {
    padding: 2rem 1.25rem;
  }

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

  .ai-service-node {
    min-height: auto;
  }

  .ai-branch-connector,
  .ai-merge-connector {
    display: none;
  }

  .ai-service-grid {
    position: relative;
    gap: 3rem;
    padding: 1rem 0;
  }

  .ai-service-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
      to bottom,
      rgba(139, 92, 246, 0.2),
      rgba(139, 92, 246, 0.65),
      rgba(139, 92, 246, 0.2)
    );
  }

  .ai-service-node {
    z-index: 2;
    width: min(100%, 580px);
    margin: 0 auto;
  }

  .ai-service-grid::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    transform: translateX(-50%);
    background: rgba(139, 92, 246, 0.55);
  }

  .ai-llm-node {
    margin-top: 30px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .ai-system-architecture {
    margin-top: 2rem;
    padding: 1.5rem 0.8rem;
    border-radius: 22px;
  }

  .ai-architecture-heading {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .ai-architecture-heading h3 {
    font-size: 1.7rem;
  }

  .ai-cloud-boundary {
    padding: 1rem 0.65rem;
    border-radius: 20px;
  }

  .ai-cloud-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .ai-node {
    align-items: flex-start;
    padding: 1rem;
    border-radius: 16px;
  }

  .ai-node-wide,
  .ai-user-node {
    width: 100%;
  }

  .ai-node-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .ai-node h4 {
    font-size: 0.9rem;
  }

  .ai-node p {
    font-size: 0.75rem;
  }

  .ai-status-badge {
    display: none;
  }

  .ai-connector-label {
    left: 13px;
    font-size: 0.52rem;
  }

  .ai-architecture-stack {
    gap: 0.5rem;
  }

  .ai-architecture-stack span {
    padding: 0.5rem 0.65rem;
    font-size: 0.61rem;
  }

  .ai-model-pulse {
    left: 17px;
    width: 46px;
    height: 46px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .ai-flow-dot,
  .ai-status-badge > span,
  .ai-model-pulse,
  .ai-llm-node::after {
    animation: none;
  }

  .ai-node,
  .ai-architecture-stack span {
    transition: none;
  }
}

.hero-headline .line{
    display:block;
}

/* =========================================================
   MOBILE UX OVERHAUL
   Desktop remains unchanged
   ========================================================= */

@media (max-width: 850px) {

  /* ---------- GLOBAL MOBILE ---------- */

  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  .container {
    width: min(100% - 28px, 680px);
  }

  /* Prevent accidental horizontal overflow */
  section,
  header,
  footer,
  .section,
  .dark-section {
    max-width: 100%;
    overflow-x: clip;
  }


  /* =======================================================
     NAVBAR
     ======================================================= */

  .navbar {
    height: auto;
  }

  .nav-container {
    height: 64px;
    width: calc(100% - 28px);
    position: relative;
  }

  .logo {
    font-size: 1.28rem;
    z-index: 210;
  }

  /* Put both controls inside one visual control area */
  .theme-toggle {
    position: static;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .hamburger span {
    width: 18px;
    height: 2px;
    margin: 2px auto;
  }

  /*
     The theme button currently sits outside the nav-container
     in your HTML. Make room for it visually without changing
     the desktop structure.
  */
  .nav-container {
    padding-right: 92px;
  }

  .theme-toggle {
    position: fixed;
    top: 12px;
    right: 64px;
    z-index: 250;
  }

  .hamburger {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 250;
  }


  /* ---------- MOBILE MENU ---------- */

  .nav-links {
    position: fixed;

    top: 72px;
    left: 14px;
    right: 14px;

    width: auto;
    max-height: calc(100dvh - 90px);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0.25rem;

    padding: 0.65rem;

    background: rgba(3, 7, 17, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    z-index: 240;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
  }

  .nav-links.active {
    display: flex;
    animation: mobileMenuIn 0.2s ease-out;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;

    min-height: 48px;
    width: 100%;

    padding: 0.75rem 0.9rem;

    border-radius: 12px;

    font-size: 0.92rem;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(74, 240, 196, 0.07);
  }

  .nav-link::after {
    display: none;
  }

  @keyframes mobileMenuIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }


  /* =======================================================
     HERO
     ======================================================= */

  .hero {
    min-height: auto;
    padding: 105px 0 58px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .hero-content {
    width: 100%;
  }

  .availability-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.3rem;
  }

  .status-pill,
  .availability-pill {
    max-width: 100%;
    font-size: 0.68rem;
    padding: 0.45rem 0.75rem;
  }

  .hero-headline {
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
  }


  /* ---------- HERO BUTTONS ---------- */

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 0.8rem;
    font-size: 0.82rem;
  }

  .hero-socials {
    gap: 0.8rem;
    margin-top: 0.25rem;
  }

  .hero-socials a {
    min-height: 42px;
    font-size: 0.82rem;
  }


  /* =======================================================
     TERMINAL CARD
     ======================================================= */

  .hero-card {
    width: 100%;
    margin-top: 0.25rem;
  }

  .terminal-card {
    width: 100%;
    transform: none !important;
    border-radius: 16px;
  }

  .terminal-header {
    padding: 0.75rem 0.9rem;
  }

  .terminal-header span {
    width: 9px;
    height: 9px;
  }

  .terminal-title {
    font-size: 0.65rem;
  }

  .terminal-body {
    padding: 1.1rem;
    font-size: 0.74rem;
  }

  .terminal-output {
    padding-left: 0.9rem;
    font-size: 0.72rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .stack-pills {
    padding-left: 0.9rem;
    gap: 0.35rem;
  }

  .stack-pills span {
    font-size: 0.65rem;
    padding: 0.25rem 0.55rem;
  }

  .profile-orbit {
    width: 100px;
    height: 100px;
    margin: 1rem auto 0;
  }


  /* =======================================================
     IMPACT
     ======================================================= */

  .impact-strip {
    padding: 0.9rem 0;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border-radius: 16px;
  }

  .impact-card {
    padding: 1rem 0.75rem;
    min-width: 0;
  }

  .impact-card h3 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .impact-card p {
    font-size: 0.72rem;
    line-height: 1.4;
  }


  /* =======================================================
     SECTIONS
     ======================================================= */

  .section {
    padding: 68px 0;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 0.98;
    margin-bottom: 2.3rem;
  }

  .section-title.left {
    margin-bottom: 1.5rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }


  /* =======================================================
     ABOUT
     ======================================================= */

  .two-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-text p {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .about-tags {
    gap: 0.4rem;
  }

  .about-tags span {
    font-size: 0.72rem;
    padding: 0.28rem 0.6rem;
  }


  /* =======================================================
     SKILLS
     ======================================================= */

  .skills-layout-new {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-bars {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .skill-bar-top {
    gap: 0.5rem;
  }

  .skill-bar-top span {
    font-size: 0.78rem;
  }

  .skill-bar-top small {
    font-size: 0.65rem;
  }

  .skills-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .skill-card {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .skill-card p {
    font-size: 0.8rem;
  }


  /* =======================================================
     PROJECTS
     ======================================================= */

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

  .project-card {
    min-height: auto;
    padding: 1.25rem;
    border-radius: 16px;

    /*
      Remove desktop 3D behavior on touch.
      This prevents cards from feeling unstable while scrolling.
    */
    transform: none !important;
  }

  .project-card:hover {
    transform: none;
  }

  .project-top {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

  .project-label {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .project-top i {
    flex-shrink: 0;
    font-size: 1.15rem;
  }

  .project-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .project-card p {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .tech-list {
    gap: 0.35rem;
  }

  .tech-list span {
    font-size: 0.66rem;
    padding: 0.25rem 0.55rem;
  }

  .project-links {
    margin-top: 1.15rem;
  }

  .proj-link {
    min-height: 42px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    cursor: pointer;
  }

  .projects-more .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    text-align: center;
  }


  /* =======================================================
     GENERAL ARCHITECTURE FLOW
     ======================================================= */

  .architecture-card {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .architecture-flow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .arch-node {
    min-height: auto;
    padding: 1rem;
    border-radius: 14px;
  }

  .arch-node i {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
  }

  .arch-node h3 {
    font-size: 0.92rem;
  }

  .arch-node p {
    font-size: 0.78rem;
  }

  /*
     Important:
     Don't rotate the desktop arrow and let it float between
     unpredictable card heights.

     Give it a dedicated connector position instead.
  */
  .arch-arrow {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
  }

  .arch-arrow i {
    transform: rotate(90deg);
    font-size: 0.9rem;
  }


  /* =======================================================
     COURSEWORK
     ======================================================= */

  .coursework-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .course-card {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .course-card-head {
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
  }

  .course-card-head h3 {
    font-size: 0.95rem;
  }


  /* =======================================================
     LOGO MARQUEE
     ======================================================= */

  .logo-marquee {
    margin-top: 2rem;
    mask-image: linear-gradient(
      to right,
      transparent,
      black 5%,
      black 95%,
      transparent
    );
  }

  .logo-track {
    gap: 0.65rem;
    animation-duration: 32s;
  }

  .logo-item {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }


  /* =======================================================
     EXPERIENCE
     ======================================================= */

  .experience-heading {
    gap: 0.75rem;
  }

  .experience-logo {
    width: 42px;
    height: 42px;
  }


  /* =======================================================
     MODALS
     ======================================================= */

  .modal-content {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }


  /* =======================================================
     CONTACT / FOOTER
     ======================================================= */

  .footer-content {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .footer-content p {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .back-top {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
}

/* =========================================================
   MOBILE AI / AWS ARCHITECTURE
   Replace desktop connector geometry with clean vertical flow
   ========================================================= */

@media (max-width: 850px) {

  .ai-system-architecture {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 18px;

    overflow: hidden;
  }

  .ai-architecture-heading {
    padding: 0 0.25rem;
  }

  .ai-architecture-heading h3 {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .ai-architecture-heading p {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .ai-architecture-canvas {
    width: 100%;
    overflow: hidden;
  }


  /* ---------- ALL NODES ---------- */

  .ai-node,
  .ai-node-wide,
  .ai-user-node,
  .ai-service-node {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box;
  }

  .ai-node {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .ai-node-copy {
    min-width: 0;
  }

  .ai-node h4 {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .ai-node p {
    font-size: 0.68rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .ai-node-label {
    font-size: 0.58rem;
  }

  .ai-node-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }


  /* ---------- REMOVE PROBLEMATIC DESKTOP CONNECTORS ---------- */

  .ai-branch-connector,
  .ai-merge-connector {
    display: none !important;
  }

  /*
     Remove the pseudo-element vertical line currently
     being generated through the service grid.
  */
  .ai-service-grid::before,
  .ai-service-grid::after {
    display: none !important;
    content: none !important;
  }


  /* ---------- SERVICE STACK ---------- */

  .ai-service-grid {
    display: flex !important;
    flex-direction: column !important;

    gap: 0.7rem !important;

    padding: 0 !important;
    margin: 0 !important;

    position: relative;
  }

  .ai-service-node {
    margin: 0 !important;
  }


  /* ---------- CLEAN CONNECTORS ---------- */

  .ai-vertical-connector {
    position: relative;

    width: 100%;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
  }

  .ai-vertical-connector::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    transform: translateX(-50%);

    background: linear-gradient(
      to bottom,
      rgba(74, 240, 196, 0.15),
      rgba(74, 240, 196, 0.65),
      rgba(74, 240, 196, 0.15)
    );

    pointer-events: none;
  }

  .ai-flow-dot {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;
  }

  .ai-connector-label {
    left: auto !important;
    right: 8px !important;

    font-size: 0.5rem !important;

    padding: 0.18rem 0.4rem;

    white-space: nowrap;

    z-index: 3;
  }


  /* ---------- AWS CLOUD ---------- */

  .ai-cloud-boundary {
    width: 100%;
    max-width: 100%;

    padding: 0.8rem;

    border-radius: 16px;

    overflow: hidden;
  }

  .ai-cloud-title {
    gap: 0.3rem;
  }

  .ai-cloud-title > div {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .ai-cloud-title span {
    font-size: 0.78rem;
  }

  .ai-cloud-title small {
    font-size: 0.55rem;
    line-height: 1.4;
  }


  /* ---------- RAG DOCUMENT DECORATION ---------- */

  .ai-mini-documents {
    display: none !important;
  }


  /* ---------- STATUS BADGES ---------- */

  .ai-status-badge {
    display: none !important;
  }


  /* ---------- LLM ---------- */

  .ai-llm-node {
    margin-top: 0 !important;
  }

  .ai-model-pulse {
    display: none;
  }


  /* ---------- ARCHITECTURE STACK TAGS ---------- */

  .ai-architecture-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .ai-architecture-stack span {
    font-size: 0.58rem;
    padding: 0.4rem 0.55rem;
  }


  /* ---------- FINAL RESPONSE ---------- */

  .ai-response-node {
    margin-bottom: 0.25rem;
  }
}

/* =========================================================
   MOBILE EXPERIENCE CARDS
   ========================================================= */

@media (max-width: 850px) {

  .timeline {
    width: 100%;
  }

  .timeline-item {
    padding-left: 0;
  }

  /*
     Hide the desktop timeline line/dot on phones.
     The cards themselves become the visual structure.
  */
  .timeline::before,
  .timeline-dot {
    display: none;
  }

  .timeline-content.experience-card {
    width: 100%;
    padding: 1.25rem;
    border-radius: 18px;
  }


  /* ---------- HEADER ---------- */

  .experience-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .experience-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;

    width: 100%;
    text-align: center;
  }


  /* ---------- LOGO ---------- */

  .experience-logo {
    width: 72px !important;
    height: 72px !important;

    flex: 0 0 72px;

    object-fit: contain;

    border-radius: 16px;

    padding: 0.35rem;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);

    box-sizing: border-box;
  }


  /* ---------- JOB INFO ---------- */

  .experience-heading > div {
    width: 100%;
    min-width: 0;
  }

  .timeline-date {
    display: block;
    margin-bottom: 0.45rem;

    font-size: 0.68rem;
    line-height: 1.4;
  }

  .timeline-content h3 {
    font-size: 1.08rem;
    line-height: 1.2;

    max-width: 100%;
    margin: 0 auto 0.4rem;
  }

  .timeline-company {
    font-size: 0.76rem !important;
    line-height: 1.5;
  }


  /* ---------- BADGE ---------- */

  .experience-badge {
    align-self: center;

    font-size: 0.62rem;
    line-height: 1;

    padding: 0.45rem 0.7rem;

    white-space: nowrap;
  }


  /* ---------- DESCRIPTION ---------- */

  .experience-card > p {
    font-size: 0.82rem;
    line-height: 1.7;

    margin-top: 1.2rem;
  }


  /* ---------- IMPACT POINTS ---------- */

  .impact-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;

    margin-top: 1rem;
  }

  .impact-points span {
    width: 100%;
    box-sizing: border-box;

    font-size: 0.68rem;
    line-height: 1.4;

    padding: 0.45rem 0.65rem;

    text-align: center;
  }


  /* ---------- TECHNOLOGIES ---------- */

  .experience-card .tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 0.4rem;

    margin-top: 1rem;
  }

  .experience-card .tech-list span {
    font-size: 0.64rem;
    padding: 0.28rem 0.55rem;
  }
}

/* =========================================================
   MOBILE CONTACT SECTION
   ========================================================= */

@media (max-width: 850px) {

  .contact-section .two-column {
    display: flex;
    flex-direction: column;

    gap: 2rem;
  }


  /* ---------- CONTACT COPY ---------- */

  .contact-section .section-title.left {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .contact-section > .container > div:first-child > p {
    font-size: 0.9rem;
    line-height: 1.7;
  }


  /* ---------- CONTACT LINKS ---------- */

  .contact-links {
    gap: 0.55rem;
    margin-top: 1.25rem;
  }

  .contact-links a {
    min-height: 42px;

    padding: 0.55rem 0;

    font-size: 0.82rem;

    display: flex;
    align-items: center;
  }


  /* ---------- FORM ---------- */

  .contact-form {
    width: 100%;
    box-sizing: border-box;

    margin-top: 0 !important;

    padding: 1.15rem;

    border-radius: 18px;
  }


  /* ---------- FORM FIELDS ---------- */

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    box-sizing: border-box;

    min-height: 48px;

    padding: 0.8rem 0.85rem;

    font-size: 16px;

    border-radius: 11px;
  }

  .form-group textarea {
    min-height: 145px;
    resize: vertical;
    line-height: 1.55;
  }


  /* ---------- SEND BUTTON ---------- */

  #submitBtn {
    width: 100%;

    min-height: 50px;

    justify-content: center;

    margin-top: 0.25rem;

    font-size: 0.85rem;
  }
}

/* =========================================================
   MOBILE PROFILE PHOTO
   Desktop remains completely unchanged
   ========================================================= */

@media (max-width: 850px) {

  /* Make the profile area an intentional mobile element */
  .profile-orbit {
   width: 100px !important;
  height: 100px !important;
  margin: 0 auto 1.25rem !important;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    order: -1;
  }

  /* The actual photo */
  .profile-orbit img {
    width: 100px !important;
  height: 100px !important;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid rgba(74, 240, 196, 0.35);

    box-shadow:
      0 0 0 5px rgba(74, 240, 196, 0.05),
      0 12px 30px rgba(0, 0, 0, 0.25);
  }


  /* Keep the photo centered within the hero card */
  .hero-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card .profile-orbit {
    align-self: center;
  }


  /*
     Don't let the existing desktop orbit/animation
     make the mobile photo move around.
  */
  .profile-orbit,
  .profile-orbit img {
    transform: none !important;
  }

  .profile-orbit::before,
  .profile-orbit::after {
    display: none !important;
  }


  /* =======================================================
     MOBILE TERMINAL
     ======================================================= */

  .terminal-card {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
  }

  .terminal-header {
    min-height: 42px;

    display: flex;
    align-items: center;

    padding: 0.65rem 0.85rem;
  }

  .terminal-title {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
    font-size: 0.62rem;
  }

  .terminal-body {
    padding: 1rem;

    font-size: 0.72rem;

    line-height: 1.55;

    overflow-x: hidden;
  }

  .terminal-output {
    max-width: 100%;

    padding-left: 0.8rem;

    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 850px) {
  .arch-arrow {
    transform: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .arch-arrow i {
    transform: rotate(90deg) !important;
  }
}

@media (max-width: 850px) {

  .hero-card {
    position: relative;
  }

  .profile-orbit {
    position: absolute !important;

    width: 90px !important;
    height: 90px !important;

    top: -28px !important;
    right: 2px !important;

    margin: 0 !important;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    order: initial;
  }

  .profile-orbit img {
    width: 90px !important;
    height: 90px !important;

    object-fit: cover;
    border-radius: 50%;

    border: 2px solid rgba(74, 240, 196, 0.45);

    box-shadow:
      0 0 0 5px rgba(74, 240, 196, 0.06),
      0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .profile-orbit,
  .profile-orbit img {
    transform: none !important;
  }

  .profile-orbit::before,
  .profile-orbit::after {
    display: none !important;
  }
}