/* ============================================================
   Nazhwa Maulana Portfolio — Main Stylesheet
   Theme: Futuristic / Cyberpunk-lite (Dark + Neon)
   Accent: Electric Blue (#00c6ff), Purple (#7B61FF), Cyan (#00d4aa), Gold (#f5a623)
   Fonts: Orbitron (heading) + Space Grotesk (sub-heading) + Inter (body)
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --clr-bg:          #06060f;
  --clr-bg-2:        #0a0a1a;
  --clr-bg-3:        #0d0d22;
  --clr-surface:     rgba(255, 255, 255, 0.04);
  --clr-surface-hov: rgba(255, 255, 255, 0.07);
  --clr-border:      rgba(255, 255, 255, 0.08);
  --clr-border-hov:  rgba(123, 97, 255, 0.5);

  /* Neon accent palette */
  --clr-blue:   #00c6ff;
  --clr-purple: #7B61FF;
  --clr-cyan:   #00d4aa;
  --clr-red:    #e53e3e;
  --clr-gold:   #f5a623;

  /* Gradient */
  --grad-primary:  linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-purple) 100%);
  --grad-neon:     linear-gradient(135deg, var(--clr-purple) 0%, var(--clr-cyan) 100%);
  --grad-warm:     linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-red) 100%);
  --grad-text:     linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-purple) 60%, var(--clr-cyan) 100%);

  /* Typography */
  --font-heading: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-sub:     'Space Grotesk', sans-serif;
  --font-body:    'Inter', 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container:  1200px;
  --gap:        1.5rem;

  /* Effects */
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: 1px solid rgba(255,255,255,0.08);
  --glass-blur:   blur(16px) saturate(160%);
  --shadow-neon:  0 0 30px rgba(123,97,255,0.25), 0 0 60px rgba(0,198,255,0.1);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.5);
  --radius:       12px;
  --radius-lg:    20px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar height */
  --nav-h: 68px;
}

/* ============================================================
   2. CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--clr-bg);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-purple);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-blue); }

/* Focus visible outline for a11y */
:focus-visible {
  outline: 2px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-family: var(--font-sub); }

p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: #94a3b8; }

strong { color: #e2e8f0; font-weight: 600; }

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

/* ============================================================
   4. Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
}

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,198,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,198,255,0.45), 0 0 60px rgba(123,97,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--clr-blue);
  border: 1px solid var(--clr-blue);
}
.btn-outline:hover {
  background: rgba(0,198,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,198,255,0.2);
}

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

.btn-icon { font-size: 0.85em; }

/* ============================================================
   6. Navigation
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(6,6,15,0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.logo-bracket {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo:hover { opacity: 0.8; }

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-sub);
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
}
.nav-link:hover::after,
.nav-link.active::after { width: 70%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
}
.ham-line {
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   7. Section Base
   ============================================================ */
.section {
  padding-block: var(--section-py);
  position: relative;
}
.section-alt { background: var(--clr-bg-2); }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--clr-purple);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-title { margin-bottom: 0.5rem; }
.section-desc {
  max-width: 55ch;
  margin-inline: auto;
  margin-top: 1rem;
  font-size: 1rem;
}

/* ============================================================
   8. Scroll Animations (Intersection Observer)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s cubic-bezier(0.4,0,0.2,1) calc(var(--delay, 0s)),
    transform 0.65s cubic-bezier(0.4,0,0.2,1) calc(var(--delay, 0s));
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero-specific: starts hidden, JS adds class */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   9. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}

/* Particle canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: blobPulse 8s ease-in-out infinite alternate;
}
.blob-1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(123,97,255,0.18) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}
.blob-2 {
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  bottom: 0%;
  left: -5%;
  animation-delay: 4s;
}
@keyframes blobPulse {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.15) translate(2%, 3%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: clamp(1rem, 5vw, 2rem);
  max-width: 900px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,198,255,0.08);
  border: 1px solid rgba(0,198,255,0.25);
  border-radius: 100px;
  font-family: var(--font-sub);
  font-size: 0.82rem;
  color: var(--clr-cyan);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-cyan);
  box-shadow: 0 0 8px var(--clr-cyan);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--clr-cyan); }
  50%       { opacity: 0.5; box-shadow: 0 0 16px var(--clr-cyan); }
}

/* Name */
.hero-name {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 80px rgba(123,97,255,0.3);
}
.name-break { display: block; }

/* Tagline typewriter */
.hero-tagline {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  min-height: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
}
.typewriter { color: var(--clr-blue); }
.cursor {
  color: var(--clr-purple);
  animation: blink 1s step-end infinite;
  font-weight: 100;
}
@keyframes blink { 50% { opacity: 0; } }

/* Sub tagline */
.hero-sub {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: #64748b;
}
.hero-sub strong { color: #94a3b8; }

/* CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Social icons hero */
.hero-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  transition: var(--transition);
}
.social-icon-link:hover {
  background: rgba(123,97,255,0.15);
  border-color: var(--clr-purple);
  color: var(--clr-blue);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(123,97,255,0.25);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sub);
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--clr-purple);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(10px); opacity: 0; }
  61%       { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   10. ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Photo frame */
.about-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.photo-frame {
  position: relative;
  width: clamp(220px, 30vw, 320px);
  flex-shrink: 0;
  /* Frame rasio 4:5 — foto apapun akan di-crop proporsional */
  aspect-ratio: 4 / 5;
  overflow: hidden;           /* corner-accent border-radius clips the photo */
  border-radius: var(--radius-lg);
}
.profile-photo {
  width: 100%;
  height: 100%;              /* mengisi seluruh frame */
  object-fit: cover;         /* crop proporsional, tidak distorsi */
  object-position: center top; /* prioritaskan bagian wajah (atas) */
  border-radius: var(--radius-lg);
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(10%);
  transition: filter var(--transition);
}
.photo-frame:hover .profile-photo { filter: grayscale(0%); }

.photo-glow {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--grad-primary);
  z-index: 0;
  opacity: 0.5;
  filter: blur(16px);
  transition: opacity var(--transition);
}
.photo-frame:hover .photo-glow { opacity: 0.9; }

/* Corner accents */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
}
.corner-tl { top: -4px; left: -4px; border-top: 3px solid var(--clr-blue); border-left: 3px solid var(--clr-blue); border-radius: 4px 0 0 0; }
.corner-tr { top: -4px; right: -4px; border-top: 3px solid var(--clr-purple); border-right: 3px solid var(--clr-purple); border-radius: 0 4px 0 0; }
.corner-bl { bottom: -4px; left: -4px; border-bottom: 3px solid var(--clr-cyan); border-left: 3px solid var(--clr-cyan); border-radius: 0 0 0 4px; }
.corner-br { bottom: -4px; right: -4px; border-bottom: 3px solid var(--clr-gold); border-right: 3px solid var(--clr-gold); border-radius: 0 0 4px 0; }

/* Stats */
.about-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  color: #475569;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-sub);
}

/* About text */
.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-intro {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #e2e8f0;
  font-weight: 500;
}
.highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.tag-inline {
  display: inline-block;
  background: rgba(123,97,255,0.12);
  border: 1px solid rgba(123,97,255,0.3);
  color: var(--clr-purple);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: var(--font-sub);
  font-weight: 500;
}

/* Info chips */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  font-size: 0.82rem;
  color: #64748b;
  font-family: var(--font-sub);
}
.info-chip svg { color: var(--clr-purple); flex-shrink: 0; }

/* ============================================================
   11. SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.skills-tools-col { display: flex; flex-direction: column; gap: var(--gap); }

.skills-card {
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.skills-card:hover {
  border-color: var(--clr-border-hov);
  box-shadow: var(--shadow-neon);
}

.skills-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  font-family: var(--font-sub);
}
.card-title-icon { font-size: 1.1em; }

/* Progress bars */
.skill-list { display: flex; flex-direction: column; gap: 1.1rem; }
.skill-item {}
.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-family: var(--font-sub);
}
.skill-label span:first-child { color: #cbd5e1; font-weight: 500; }
.skill-pct {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(0,198,255,0.4);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Tool tags */
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-sub);
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition);
}
.tag-video   { background: rgba(0,198,255,0.08); color: var(--clr-blue);   border-color: rgba(0,198,255,0.2); }
.tag-design  { background: rgba(245,166,35,0.08); color: var(--clr-gold);  border-color: rgba(245,166,35,0.2); }
.tag-cyber   { background: rgba(229,62,62,0.08);  color: #fc8181;           border-color: rgba(229,62,62,0.2); }
.tag-soft    { background: rgba(0,212,170,0.08);  color: var(--clr-cyan);  border-color: rgba(0,212,170,0.2); }
.tool-tag:hover { transform: translateY(-1px); filter: brightness(1.2); }

/* ============================================================
   12. TIMELINE (Experience & Education)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  max-width: 800px;
  margin-inline: auto;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-purple), var(--clr-cyan));
  border-radius: 1px;
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Dot on timeline */
.timeline-dot {
  position: absolute;
  left: calc(-2.5rem + 5px);
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 2px solid var(--clr-purple);
  box-shadow: 0 0 10px rgba(123,97,255,0.5);
  z-index: 1;
}

.timeline-card {
  padding: 1.35rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.timeline-card:hover {
  border-color: var(--clr-border-hov);
  box-shadow: var(--shadow-neon);
  transform: translateX(4px);
}

/* Badges */
.timeline-badge {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.badge-work { background: rgba(0,198,255,0.1); color: var(--clr-blue); border: 1px solid rgba(0,198,255,0.2); }
.badge-org  { background: rgba(245,166,35,0.1); color: var(--clr-gold); border: 1px solid rgba(245,166,35,0.2); }

.timeline-role {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.2rem;
  font-family: var(--font-sub);
}
.timeline-org {
  font-size: 0.88rem;
  color: var(--clr-purple);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.timeline-period {
  font-size: 0.78rem;
  color: #475569;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ------ "Saat Ini" badge row ------ */
.timeline-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
/* Override margin from standalone badge when inside a row */
.timeline-badge-row .timeline-badge {
  margin-bottom: 0;
}

/* Badge "Saat Ini" — konsisten dengan hero "Available" badge (warna cyan/teal) */
.badge-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 212, 170, 0.1);
  color: var(--clr-cyan);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

/* Animated pulsing dot di dalam badge */
.badge-current-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-cyan);
  box-shadow: 0 0 6px var(--clr-cyan);
  flex-shrink: 0;
  animation: currentDotPulse 2s ease-in-out infinite;
}
@keyframes currentDotPulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 6px var(--clr-cyan); }
  50%       { opacity: 0.4; box-shadow: 0 0 14px var(--clr-cyan); }
}

/* ------ Card highlight — pekerjaan saat ini ------ */
.timeline-card--current {
  /* Border cyan/teal yang lebih terang dari card biasa */
  border-color: rgba(0, 212, 170, 0.28);
  /* Background sedikit lebih terang — masih glassmorphism, tidak berlebihan */
  background: rgba(0, 212, 170, 0.04);
  /* Subtle glow pada state diam */
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.12),
              0 4px 24px rgba(0, 0, 0, 0.45);
}
/* Hover state: glow lebih kuat tapi tetap elegan */
.timeline-card--current:hover {
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.3),
              0 0 28px rgba(0, 212, 170, 0.18),
              0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateX(6px);
}

/* ------ Dot di timeline line untuk card saat ini ------ */
.timeline-dot--current {
  border-color: var(--clr-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15),
              0 0 12px rgba(0, 212, 170, 0.5);
  /* Animasi glow lembut */
  animation: dotGlow 2.5s ease-in-out infinite;
}
@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15), 0 0 12px rgba(0, 212, 170, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(0, 212, 170, 0.2),  0 0 22px rgba(0, 212, 170, 0.7); }
}


/* ============================================================
   13. EDUCATION
   ============================================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: 800px;
  margin-inline: auto;
}

.edu-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  animation-delay: var(--delay, 0s);
}
.edu-card:hover {
  border-color: var(--clr-border-hov);
  box-shadow: var(--shadow-neon);
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123,97,255,0.1);
  border-radius: 10px;
  border: 1px solid rgba(123,97,255,0.2);
}

.edu-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.edu-content h3 {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}
.edu-institution {
  font-size: 0.88rem;
  color: var(--clr-purple);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.edu-period {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.edu-note { font-size: 0.85rem; color: #64748b; }

/* ============================================================
   14. CERTIFICATIONS
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  animation-delay: var(--delay, 0s);
}
.cert-card:hover {
  border-color: var(--clr-border-hov);
  box-shadow: var(--shadow-neon);
  transform: translateY(-3px);
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.cert-card:hover::before { opacity: 1; }

.cert-logo { flex-shrink: 0; }

.cert-info { flex: 1; min-width: 0; }
.cert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.2rem;
  font-family: var(--font-sub);
  line-height: 1.3;
}
.cert-issuer {
  font-size: 0.78rem;
  color: var(--clr-blue);
  margin-bottom: 0.15rem;
}
.cert-date {
  font-size: 0.72rem;
  color: #475569;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.cert-ribbon {
  position: absolute;
  top: 10px;
  right: -18px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.15rem 1.5rem;
  transform: rotate(35deg);
  text-transform: uppercase;
  width: 80px;
  text-align: center;
}
.cert-ribbon-red  { background: linear-gradient(135deg, #c53030, #e53e3e); }
.cert-ribbon-cyan { background: linear-gradient(135deg, #00d4aa, #00c6ff); }

/* ============================================================
   15. PROJECTS / PORTFOLIO
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-sub);
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.filter-btn:hover {
  color: #e2e8f0;
  border-color: rgba(123,97,255,0.4);
  background: rgba(123,97,255,0.08);
}
.filter-btn.active {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0,198,255,0.25);
}

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

.project-card {
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--clr-border-hov);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
}

/* Card hidden state for filter */
.project-card.hidden {
  display: none;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--clr-bg-3);
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.proj-tag {
  padding: 0.2rem 0.6rem;
  background: rgba(0,198,255,0.15);
  border: 1px solid rgba(0,198,255,0.3);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--clr-blue);
  letter-spacing: 0.04em;
}

.project-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  font-family: var(--font-sub);
  line-height: 1.35;
}
.project-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--font-sub);
  font-weight: 500;
  color: var(--clr-purple);
  border: 1px solid rgba(123,97,255,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(123,97,255,0.06);
  transition: var(--transition);
}
.proj-link:hover {
  background: rgba(123,97,255,0.15);
  border-color: var(--clr-purple);
  color: #fff;
}

/* ============================================================
   16. VIDEO SHOWCASE SECTION
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.video-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  border-radius: 12px;
  background: rgba(10, 10, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  border-color: rgba(123, 97, 255, 0.3);
  box-shadow: 0 4px 20px rgba(123, 97, 255, 0.15);
}

.video-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--clr-cyan);
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.video-badge.tiktok-badge {
  color: #fc8181; /* adjusted from pure tiktok red to match dark theme better */
  background: rgba(229, 62, 62, 0.08);
  border-color: rgba(229, 62, 62, 0.2);
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px; /* Fallback height while iframe loads */
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.video-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite linear;
  pointer-events: none;
}

@keyframes loadingSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.video-embed-wrapper iframe,
.video-embed-wrapper .instagram-media,
.video-embed-wrapper .tiktok-embed {
  position: relative !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 8px !important;
  z-index: 1;
}

/* ============================================================
   17. CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Form */
.contact-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.82rem;
  font-family: var(--font-sub);
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #334155; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.15);
}

/* Form status */
.form-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: var(--clr-cyan); }
.form-status.error   { color: var(--clr-red); }

/* Contact info */
.contact-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  font-family: var(--font-sub);
}
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(123,97,255,0.1);
  border: 1px solid rgba(123,97,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-purple);
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  color: #475569;
  font-family: var(--font-sub);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.contact-value {
  font-size: 0.92rem;
  color: #94a3b8;
  font-family: var(--font-sub);
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--clr-blue); }

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--clr-bg-3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}
.footer-copy {
  font-size: 0.82rem;
  color: #475569;
  text-align: center;
}
.footer-copy strong { color: #64748b; }
.footer-socials { display: flex; gap: 0.5rem; }

/* ============================================================
   18. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,198,255,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 8px 28px rgba(0,198,255,0.45);
  transform: translateY(-3px);
}

/* ============================================================
   19. RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo-wrap {
    align-items: center;
  }
  .photo-frame {
    width: clamp(180px, 50vw, 280px);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ============================================================
   20. RESPONSIVE — Tablet portrait / large phone (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  /* Hamburger visible, nav menu hidden by default */
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;                          /* full viewport height push below navbar */
    background: rgba(6,6,15,0.98);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(123,97,255,0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 0.25rem;
    overflow-y: auto;
    transform: translateX(100%);        /* slide in from right instead of drop-down */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                opacity   0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border-radius: 8px;
    min-height: 48px;                   /* WCAG minimum tap target */
    display: flex;
    align-items: center;
  }
  .nav-link::after { display: none; }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(123,97,255,0.1);
    color: #fff;
  }

  /* Hero adjustments */
  .hero-name {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
    letter-spacing: -0.015em;
  }
  .hero-tagline {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    min-height: 2.2em;                  /* room for cursor on wrap */
    flex-wrap: wrap;
    gap: 0;
  }
  .hero-sub {
    font-size: 0.92rem;
    padding-inline: 0.5rem;
    margin-bottom: 2rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    min-height: 48px;                   /* good tap target */
  }
  .hero-badge { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
  .hero-socials { gap: 0.6rem; }
  .social-icon-link {
    width: 44px;
    height: 44px;                       /* 44×44 minimum touch target */
  }
  .scroll-indicator { display: none; } /* hidden on short-screen phones */

  /* About stats wrap nicely */
  .about-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-number { font-size: 1.5rem; }

  /* Skills card padding reduce */
  .skills-card { padding: 1.35rem 1.2rem; }

  /* Timeline tighter */
  .timeline { padding-left: 2rem; }
  .timeline-dot { left: calc(-2rem + 5px); }
  .timeline-card { padding: 1.1rem 1.2rem; }

  /* Filter bar wrap on small width */
  .filter-bar { gap: 0.4rem; }
  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    min-height: 40px;
  }

  /* Projects single-column */
  .projects-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .contact-form { padding: 1.35rem 1.1rem; }

  /* Cert cards */
  .cert-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
}

/* ============================================================
   21. RESPONSIVE — Small phones (≤ 480px)
   Covers: iPhone SE (375px), iPhone 14 (390px), most Android
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-py: 3rem;
    --gap: 1rem;
  }

  /* Nav */
  .nav-logo { font-size: 1.15rem; }

  /* Hero — prevent overflow on 375px */
  .hero-content { padding-inline: 1rem; }
  .hero-name {
    font-size: clamp(2rem, 12.5vw, 3rem);
    word-break: break-word;
  }
  .hero-tagline {
    font-size: clamp(0.85rem, 4vw, 1rem);
    min-height: 2.4em;
  }
  .hero-sub {
    font-size: 0.88rem;
    max-width: 100%;
    padding-inline: 0;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }
  .hero-cta .btn {
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
  }

  /* Section header */
  .section-label { font-size: 0.7rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* About */
  .photo-frame { width: clamp(160px, 55vw, 240px); }
  .about-intro { font-size: 1rem; }
  .about-text p { font-size: 0.9rem; }
  .info-chips { gap: 0.5rem; }
  .info-chip { font-size: 0.78rem; padding: 0.35rem 0.7rem; }

  /* Stats — row of 3 even on small screen */
  .about-stats { gap: 0.75rem; }
  .stat-item { min-width: 65px; }
  .stat-number { font-size: 1.35rem; }
  .stat-label { font-size: 0.65rem; }

  /* Skills */
  .skills-card { padding: 1.1rem 1rem; }
  .skill-label { font-size: 0.82rem; }
  .tool-tags { gap: 0.4rem; }
  .tool-tag { font-size: 0.74rem; padding: 0.28rem 0.65rem; }

  /* Timeline */
  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: calc(-1.5rem + 5px); width: 12px; height: 12px; }
  .timeline-card { padding: 1rem; }
  .timeline-role { font-size: 0.92rem; }
  .timeline-org  { font-size: 0.82rem; }
  .timeline-period { font-size: 0.72rem; }
  .timeline-desc { font-size: 0.84rem; }

  /* Education */
  .edu-card { padding: 1.1rem; flex-direction: column; gap: 0.75rem; }
  .edu-icon { width: 40px; height: 40px; font-size: 1.5rem; }

  /* Certifications */
  .cert-card { flex-direction: column; align-items: flex-start; padding: 1.1rem; gap: 0.85rem; }
  .cert-ribbon { display: none; }       /* hide decorative ribbon on very small screens */
  .cert-title { font-size: 0.85rem; }

  /* Portfolio */
  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .filter-btn  { flex-shrink: 0; }
  .project-info { padding: 1rem; }
  .project-title { font-size: 0.92rem; }
  .project-desc  { font-size: 0.82rem; }

  /* Contact */
  .contact-form { padding: 1.1rem 0.9rem; }
  .form-group input,
  .form-group textarea {
    font-size: 16px;                    /* prevents iOS auto-zoom on focus */
    padding: 0.7rem 0.85rem;
  }
  .contact-info-title { font-size: 1.1rem; }
  .contact-item { gap: 0.75rem; }
  .contact-label { font-size: 0.68rem; }
  .contact-value { font-size: 0.85rem; word-break: break-all; }

  /* Footer */
  .footer-copy { font-size: 0.78rem; }
  .footer-logo { font-size: 1rem; }

  /* Back to top — smaller on phone */
  .back-to-top { width: 40px; height: 40px; bottom: 1.25rem; right: 1.25rem; }
}

/* ============================================================
   22. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-fade-up { opacity: 1; transform: none; animation: none; }
}

