/* ════════════════════════════════════════════════════
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ════════════════════════════════════════════════════ */

:root {
  /* — Color Palette (Deep Space Blue + Electric Blue Gradient) — */
  --bg-primary: hsl(228, 25%, 4%);
  --bg-secondary: hsl(228, 20%, 7%);
  --bg-tertiary: hsl(228, 18%, 10%);
  --bg-glass: hsla(228, 20%, 13%, 0.5);
  --accent: hsl(217, 95%, 60%);
  --accent-dim: hsl(225, 80%, 40%);
  --accent-glow: hsla(217, 95%, 60%, 0.15);
  --accent-warm: hsl(195, 90%, 60%);
  --text-primary: hsl(220, 25%, 96%);
  --text-muted: hsl(225, 12%, 52%);
  --border: hsla(217, 50%, 50%, 0.1);
  --border-hover: hsla(217, 70%, 60%, 0.25);

  /* — Typography — */
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* — Spacing Scale — */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* — Effects — */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-glow: 0 0 40px hsla(217, 95%, 60%, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --blur-glass: blur(16px);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════ */

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

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  cursor: none;
}
a:hover {
  color: hsl(217, 95%, 75%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.accent { color: var(--accent); }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* ════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ════════════════════════════════════════════════════
   CUSTOM CURSOR
   ════════════════════════════════════════════════════ */

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

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid hsla(217, 95%, 60%, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cursor-dot.hovering {
  width: 12px;
  height: 12px;
  background: var(--accent-warm);
}
.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: hsla(195, 90%, 60%, 0.3);
  background: hsla(195, 90%, 60%, 0.05);
}

/* ════════════════════════════════════════════════════
   GRAIN OVERLAY
   ════════════════════════════════════════════════════ */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ════════════════════════════════════════════════════
   SIDE DOT NAVIGATION
   ════════════════════════════════════════════════════ */

.side-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsla(225, 10%, 50%, 0.3);
  border: 1.5px solid transparent;
  transition: var(--transition);
  position: relative;
}
.side-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}
.side-dot:hover::after {
  opacity: 1;
}
.side-dot:hover {
  background: hsla(217, 95%, 60%, 0.3);
  border-color: var(--accent);
  transform: scale(1.3);
}
.side-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.2);
}

/* ════════════════════════════════════════════════════
   SECTION COMMON
   ════════════════════════════════════════════════════ */

section {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.section-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, hsla(217, 80%, 50%, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 80%, hsla(240, 70%, 55%, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 800px 300px at 50% 50%, hsla(225, 50%, 30%, 0.04) 0%, transparent 70%);
}


.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid hsla(217, 70%, 55%, 0.15);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

/* ════════════════════════════════════════════════════
   SCROLL ANIMATIONS (Staggered)
   ════════════════════════════════════════════════════ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays based on data-stagger attribute */
.animate-on-scroll[data-stagger="1"] { transition-delay: 0.08s; }
.animate-on-scroll[data-stagger="2"] { transition-delay: 0.16s; }
.animate-on-scroll[data-stagger="3"] { transition-delay: 0.24s; }
.animate-on-scroll[data-stagger="4"] { transition-delay: 0.32s; }
.animate-on-scroll[data-stagger="5"] { transition-delay: 0.40s; }
.animate-on-scroll[data-stagger="6"] { transition-delay: 0.48s; }
.animate-on-scroll[data-stagger="7"] { transition-delay: 0.56s; }
.animate-on-scroll[data-stagger="8"] { transition-delay: 0.64s; }

/* ════════════════════════════════════════════════════
   GLASS CARD
   ════════════════════════════════════════════════════ */

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: none;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(135deg, hsla(217, 95%, 60%, 0.2), hsla(195, 90%, 60%, 0.1));
}
.btn:hover::before {
  opacity: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: var(--bg-primary);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-3px);
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: hsla(225, 20%, 4%, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-slow);
}
#navbar.scrolled {
  background: hsla(225, 20%, 4%, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-lg);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

/* ════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-gradient-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 20% 30%, hsla(217, 80%, 50%, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 80% 70%, hsla(240, 70%, 55%, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 900px 400px at 50% 50%, hsla(225, 50%, 30%, 0.05) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1200px;
  width: 100%;
}

.hero-text { flex: 1; }

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-name-accent {
  background: linear-gradient(135deg, var(--accent), hsl(200, 90%, 75%), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

/* Split character animation */
.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-40deg);
  animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  min-height: 1.6em;
}

/* Typewriter */
.typewriter { border-right: none; }
.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: var(--space-md);
}
.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
  background: hsla(225, 15%, 10%, 0.5);
}
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-4px);
}

/* Stagger reveal for hero elements */
.stagger-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero visual (right side) */
.hero-visual {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* Profile photo */
.profile-photo-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 3px solid var(--border);
}

.profile-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: ringRotate 4s linear infinite;
  z-index: 0;
}
.profile-photo-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--accent-warm);
  border-left-color: var(--accent-warm);
  animation: ringRotate 6s linear infinite reverse;
}

.profile-photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Floating tech badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 420px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: floatBadge 5s ease-in-out infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
  transition: var(--transition);
}
.badge i {
  font-size: 1.05rem;
  color: var(--accent);
}
.badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-4px) scale(1.05);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* ════════════════════════════════════════════════════
   ABOUT SECTION — BENTO GRID
   ════════════════════════════════════════════════════ */

.about {
  background: var(--bg-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

.bento-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) calc(var(--space-lg) + 0.5rem);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(ellipse at 30% 20%, hsla(217, 80%, 55%, 0.04) 0%, transparent 60%);
}
.bento-card:hover::before {
  opacity: 1;
}
.bento-card:hover {
  border-color: var(--border-hover);
}

.bento-large {
  grid-row: span 2;
}

.bento-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bento-label i {
  font-size: 0.85rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.bento-card p:last-child {
  margin-bottom: 0;
}

.bento-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.bento-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Bento grid — right column: 1 medium + 3 stats */
.bento-medium {
  grid-column: 2;
}

/* Stats row inside bento */
.bento-grid > .bento-stat:nth-child(3) { grid-column: 1; grid-row: 3; }
.bento-grid > .bento-stat:nth-child(4) { grid-column: 2; grid-row: 3; }

/* ════════════════════════════════════════════════════
   SERVICES SECTION
   ════════════════════════════════════════════════════ */

.services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.service-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-glow), hsla(240, 60%, 55%, 0.06));
  font-size: 1.8rem;
  color: var(--accent);
  border: 1px solid hsla(217, 70%, 55%, 0.1);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.service-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  background: hsla(217, 95%, 60%, 0.06);
  border: 1px solid hsla(217, 95%, 60%, 0.12);
  border-radius: 999px;
  color: var(--accent);
}

/* ════════════════════════════════════════════════════
   EXPERIENCE (TIMELINE)
   ════════════════════════════════════════════════════ */

.experience {
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), hsla(195, 90%, 60%, 0.3), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.timeline-dot {
  position: absolute;
  left: -2.85rem;
  top: 1.6rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent);
  z-index: 1;
}

.timeline-card {
  padding: var(--space-lg);
}
.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.timeline-header {
  margin-bottom: var(--space-md);
}
.timeline-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.timeline-company,
.timeline-date {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-right: var(--space-md);
}
.timeline-company i,
.timeline-date i {
  margin-right: 0.3rem;
  color: var(--accent);
}

.timeline-details li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.timeline-details li::before {
  content: "\25B9";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ════════════════════════════════════════════════════
   PROJECTS SECTION
   ════════════════════════════════════════════════════ */

.projects {
  background: var(--bg-primary);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: none;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: hsla(217, 95%, 60%, 0.06);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* 3D Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    hsla(217, 95%, 60%, 0.08),
    transparent 60%
  );
}
.tilt-card:hover .card-spotlight {
  opacity: 1;
}

.project-card {
  display: flex;
  flex-direction: column;
  cursor: none;
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.project-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  background: hsla(217, 95%, 60%, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.project-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.project-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  background: hsla(217, 95%, 60%, 0.05);
  border: 1px solid hsla(217, 95%, 60%, 0.1);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.project-link:hover {
  gap: 0.7rem;
}

/* ════════════════════════════════════════════════════
   SKILLS — CONSTELLATION / FLOATING CLOUD
   ════════════════════════════════════════════════════ */

.skills {
  background: var(--bg-secondary);
}

.skills-constellation {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.skill-orbit {
  text-align: center;
}

.orbit-label {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.orbit-label i {
  color: var(--accent);
  font-size: 1rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  perspective: 600px;
}

.skill-node {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}
.skill-node.lg {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-color: hsla(217, 70%, 55%, 0.15);
  background: hsla(217, 95%, 60%, 0.04);
}
.skill-node:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.08);
}

/* ════════════════════════════════════════════════════
   CERTIFICATES SECTION
   ════════════════════════════════════════════════════ */

.certificates {
  background: var(--bg-primary);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.certificates-hidden {
  display: none;
  margin-top: var(--space-md);
}
.certificates-hidden.show {
  display: grid;
}

.cert-card {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cert-icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.cert-toggle-container {
  text-align: center;
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════════════════ */

.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}
.contact-item > i {
  font-size: 1.4rem;
  color: var(--accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.contact-item a { font-size: 0.95rem; }

/* Contact Form */
.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: var(--text-muted);
}
.contact-form-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}
.form-message.success {
  background: hsla(150, 70%, 45%, 0.15);
  color: hsl(150, 70%, 60%);
  border: 1px solid hsla(150, 70%, 45%, 0.3);
}
.form-message.error {
  background: hsla(0, 70%, 50%, 0.15);
  color: hsl(0, 70%, 65%);
  border: 1px solid hsla(0, 70%, 50%, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 1;
}

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

.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-links a {
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* ════════════════════════════════════════════════════
   FOCUS VISIBLE (Accessibility)
   ════════════════════════════════════════════════════ */

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

/* ════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-visual { flex: none; }
  .profile-photo-wrapper { width: 220px; height: 220px; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large { grid-column: span 2; grid-row: auto; }
  .bento-medium { grid-column: auto; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .certificates-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .side-nav { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsla(225, 20%, 4%, 0.98);
    backdrop-filter: var(--blur-glass);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.65rem var(--space-lg);
    display: block;
  }
  .nav-toggle { display: block; }

  .hero-name { font-size: 2.4rem; }
  .hero-title { font-size: 1.1rem; }

  section { padding: var(--space-xl) 0; }
  .section-title { font-size: 2rem; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: auto; }

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

  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Disable custom cursor on touch */
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button, .filter-btn, .project-card { cursor: auto; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-name { font-size: 1.9rem; }
  .profile-photo-wrapper { width: 180px; height: 180px; }
  .hero-badges { display: none; }
  .container { padding: 0 var(--space-md); }
}
