/* ================================================================
   Muhamad Ramdani — Portfolio Presentation
   Premium Dark Theme CSS
   ================================================================ */

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

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #030712;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --grad-1: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  --grad-2: linear-gradient(135deg, #22d3ee, #0ea5e9);
  --grad-3: linear-gradient(135deg, #10b981, #22d3ee);
  --font: 'Outfit', 'Inter', -apple-system, sans-serif;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
   PROGRESS BAR
---------------------------------------------------------------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-1);
  z-index: 100;
  transition: width 0.5s ease;
  box-shadow: 0 0 16px rgba(14,165,233,0.6);
}

/* ----------------------------------------------------------------
   TOP RIGHT CONTROLS
---------------------------------------------------------------- */
.top-right-controls {
  position: fixed;
  top: 20px; right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
}
.slide-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.05);
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.fullscreen-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.fullscreen-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: var(--primary);
  border-color: var(--primary);
}

/* ----------------------------------------------------------------
   NAV CONTROLS
---------------------------------------------------------------- */
.nav-controls {
  position: fixed;
  bottom: 2rem; right: 2rem;
  display: flex;
  gap: 0.6rem;
  z-index: 100;
}
.nav-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover, .nav-btn.laser-hover {
  background: rgba(14,165,233,0.15);
  color: var(--primary);
  transform: scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(14,165,233,0.3);
}
.nav-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   SLIDE DOTS
---------------------------------------------------------------- */
.slide-dots {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 100;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.dot::before {
  content:'';
  position:absolute;
  inset:-10px;
}
.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(14,165,233,0.5);
}
.dot:hover, .dot.laser-hover {
  background: var(--accent2);
  transform: scale(1.3);
}
.dot.active:hover, .dot.active.laser-hover { transform: none; }

/* ----------------------------------------------------------------
   KEYBOARD HINT
---------------------------------------------------------------- */
.keyboard-hint {
  position: fixed;
  bottom: 5.5rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  z-index: 100;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   PRESENTATION & SLIDES
---------------------------------------------------------------- */
.presentation {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.slide.exit-left {
  opacity: 0;
  transform: translateX(-100%);
  visibility: hidden;
}
.slide-content {
  width: 100%;
  max-width: 1200px;
  padding: 2rem 3rem;
  position: relative;
  z-index: 2;
}
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 100vh;
}

/* ----------------------------------------------------------------
   COMMON ELEMENTS
---------------------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--accent2);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--grad-1);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(14,165,233,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,165,233,0.5);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(241,245,249,0.45);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

/* Floating icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.float-icon {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 0.875rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  animation: floatAnim linear infinite;
}
.fi-1 { top: 12%; left: 5%; animation-duration: 9s; animation-delay: 0s; }
.fi-2 { top: 22%; right: 7%; animation-duration: 11s; animation-delay: -2s; }
.fi-3 { top: 62%; left: 6%; animation-duration: 10s; animation-delay: -4s; }
.fi-4 { top: 72%; right: 5%; animation-duration: 12s; animation-delay: -1s; }
.fi-5 { top: 42%; left: 3%; animation-duration: 8s; animation-delay: -3s; }
.fi-6 { top: 52%; right: 4%; animation-duration: 13s; animation-delay: -5s; }
@keyframes floatAnim {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
  75% { transform: translateY(-20px) rotate(2deg); }
}

/* Particles */
.particles {
  position: absolute; inset: 0;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   SLIDE 0: HERO
---------------------------------------------------------------- */
.slide-hero {
  background: radial-gradient(ellipse at 30% 40%, rgba(14,165,233,0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(139,92,246,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 50% 100%, rgba(6,182,212,0.08) 0%, transparent 40%),
              linear-gradient(160deg, #020617 0%, #030712 40%, #0a0520 100%);
}
.hero-avatar-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}
.hero-avatar-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad-1);
  display: flex; align-items: center; justify-content: center;
  animation: ringPulse 4s ease-in-out infinite;
}
.hero-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-dark);
}
.hero-avatar-glow {
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: var(--grad-1);
  opacity: 0.15;
  filter: blur(20px);
  z-index: -1;
  animation: ringPulse 4s ease-in-out infinite reverse;
}
.hero-avatar-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  padding: 0.35rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.status-dot-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.2} }

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-suffix {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.hero-role {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.hero-techline {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem 2rem;
  backdrop-filter: blur(12px);
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.3;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----------------------------------------------------------------
   SLIDE 1: ABOUT ME
---------------------------------------------------------------- */
.slide-about {
  background: linear-gradient(160deg, #020617 0%, #030712 50%, #0a0520 100%);
}
.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 3rem;
}
.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.about-photo-wrap {
  position: relative;
  width: 150px; height: 150px;
}
.about-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(14,165,233,0.3);
}
.about-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.about-photo-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(14,165,233,0.35);
  animation: spin 25s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-name-card {
  text-align: center;
}
.about-name {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.name-suffix {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.about-title-badge {
  display: inline-block;
  background: var(--grad-1);
  padding: 0.35rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.about-contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.about-contact-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}
.about-contact-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
}

.about-right {
  padding-top: 0.5rem;
}
.about-summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-summary strong {
  color: var(--text-primary);
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  transition: var(--transition);
}
.highlight-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.highlight-icon {
  width: 38px; height: 38px;
  border-radius: 0.6rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.highlight-card strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.highlight-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------------
   SLIDE 2: TECH STACK
---------------------------------------------------------------- */
.slide-tech {
  background: linear-gradient(160deg, #020617 0%, #030712 50%, #070318 100%);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.tech-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.1rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tech-card:hover::before { opacity: 1; }
.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.3);
  box-shadow: 0 8px 30px rgba(14,165,233,0.12);
}
.tech-icon {
  width: 44px; height: 44px;
  margin: 0 auto 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--tc);
  position: relative;
  z-index: 1;
}
.tech-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  position: relative;
  z-index: 1;
}
.tech-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   SLIDE 3: CAREER TIMELINE
---------------------------------------------------------------- */
.slide-career {
  background: linear-gradient(160deg, #020617 0%, #030712 50%, #0a0520 100%);
}
.career-road {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
/* Vertical line connecting cards */
.career-road::before {
  content: '';
  position: absolute;
  left: 46px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(139,92,246,0.3), transparent);
  z-index: 0;
}
.career-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.career-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: 0 4px 24px rgba(14,165,233,0.1);
}
.career-current {
  border-color: rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.06);
}
.career-current:hover {
  border-color: rgba(14,165,233,0.5);
}
.career-logo-wrap {
  width: 52px; height: 52px;
  border-radius: 0.75rem;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.career-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.career-info { flex: 1; min-width: 0; }
.career-company-name {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.career-role {
  font-size: 0.82rem;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.career-period,
.career-location {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.career-period i,
.career-location i {
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 12px;
}
.career-badge, .career-badge-current {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.career-badge-current {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.3);
  color: var(--accent2);
}

/* ----------------------------------------------------------------
   FEATURE SLIDES (4, 5, 6)
---------------------------------------------------------------- */
.slide-feature {
  background: linear-gradient(160deg, #020617 0%, #030712 50%, #0a0520 100%);
}
.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 3rem;
}
.feature-layout.reverse {
  direction: rtl;
}
.feature-layout.reverse > * {
  direction: ltr;
}
.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  color: var(--accent2);
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.feature-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}
.feat-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.feat-icon {
  width: 36px; height: 36px;
  border-radius: 0.6rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.feat-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.feat-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Project Showcase Card */
.project-showcase-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}
.showcase-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.showcase-logo {
  width: 42px; height: 42px;
  object-fit: contain;
  border-radius: 0.6rem;
  background: #fff;
  padding: 4px;
}
.showcase-company {
  font-size: 1rem;
  font-weight: 800;
}
.showcase-hq {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.showcase-projects {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.showcase-project {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  transition: var(--transition);
}
.showcase-project:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
}
.showcase-project.active {
  border-color: rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.06);
}
.sp-icon {
  width: 34px; height: 34px;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--c);
  flex-shrink: 0;
}
.sp-info { flex: 1; min-width: 0; }
.sp-name { font-size: 0.82rem; font-weight: 700; }
.sp-type { font-size: 0.7rem; color: var(--text-muted); }
.sp-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.showcase-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.showcase-tech-row span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* BRI Highlight */
.bri-card {}
.bri-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(14,165,233,0.06);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.bri-logo-wrap {
  width: 56px; height: 56px;
  border-radius: 0.65rem;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.bri-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.bri-title { font-size: 0.92rem; font-weight: 800; }
.bri-url { font-size: 0.72rem; color: var(--primary); font-family: monospace; margin-bottom: 0.3rem; }
.bri-award {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

/* Experience Mini Cards */
.exp-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.exp-mini-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1rem 1.15rem;
  transition: var(--transition);
}
.exp-mini-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.exp-mini-logo {
  width: 48px; height: 48px;
  border-radius: 0.6rem;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.exp-mini-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 3px;
}
.exp-mini-info { flex: 1; }
.exp-mini-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.exp-mini-info > span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.exp-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.exp-mini-tags span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   SLIDE 7: PORTFOLIO
---------------------------------------------------------------- */
.slide-portfolio {
  background: linear-gradient(160deg, #020617 0%, #030712 50%, #0a0520 100%);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 950px;
  margin: 0 auto 1.5rem;
}
.portfolio-card {
  background: rgba(248,250,252,0.96);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 0.875rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  transition: all 0.35s ease;
  cursor: default;
  color: #0b1220;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}
.portfolio-card::before {
  content:'';
  position:absolute;
  inset:0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14,165,233,0.25), rgba(139,92,246,0.15), rgba(15,23,42,0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events:none;
}
.portfolio-card:hover, .portfolio-card.laser-hover {
  background: rgba(255,255,255,0.98);
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.3);
}
.port-icon {
  width: 42px; height: 42px;
  border-radius: 0.65rem;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--c);
  transition: all 0.35s ease;
  padding: 4px;
}
.port-icon.landscape {
  width: 72px;
  padding: 4px 8px;
}
.port-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.port-name { font-size: 0.85rem; font-weight: 800; color: #0b1220; }
.port-desc { font-size: 0.7rem; color: #475569; }
.port-badge {
  position: absolute;
  top: 0.5rem; right: 0.65rem;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 2rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.port-badge-special {
  background: rgba(251,191,36,0.15);
  border-color: rgba(251,191,36,0.3);
  color: #92400e;
}
.port-badge-special i {
  font-size: 0.58rem;
  margin-right: 0.15rem;
}
.portfolio-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.portfolio-note i { color: var(--primary); }

/* ----------------------------------------------------------------
   SLIDE 8: CERTIFICATIONS
---------------------------------------------------------------- */
.slide-certs {
  background: linear-gradient(160deg, #020617 0%, #030712 50%, #070318 100%);
}
.certs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.certs-column {}
.certs-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.certs-heading i {
  color: var(--primary);
  font-size: 0.9rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  transition: var(--transition);
}
.cert-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.cert-icon {
  width: 40px; height: 40px;
  border-radius: 0.6rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.cert-info { flex: 1; }
.cert-name { font-size: 0.85rem; font-weight: 700; }
.cert-issuer { font-size: 0.72rem; color: var(--text-muted); }
.cert-badge {
  color: var(--success);
  font-size: 1rem;
}

/* Language Cards */
.lang-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.lang-name {
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  background: var(--grad-1);
  border-radius: 3px;
  transition: width 1s ease;
}
.lang-level {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
}

/* Skills Cloud */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.skill-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}
.skill-chip.primary {
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.25);
  color: var(--accent2);
}

/* ----------------------------------------------------------------
   SLIDE 9: CLOSING
---------------------------------------------------------------- */
.slide-closing {
  background: radial-gradient(ellipse at 30% 40%, rgba(14,165,233,0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(139,92,246,0.12) 0%, transparent 55%),
              linear-gradient(160deg, #020617 0%, #030712 40%, #0a0520 100%);
}
.closing-avatar {
  margin-bottom: 1rem;
}
.closing-avatar .hero-avatar-ring {
  width: 110px; height: 110px;
}
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--accent2);
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.closing-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.closing-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 2rem;
}
.closing-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font);
}
.contact-pill i {
  color: var(--primary);
  font-size: 0.85rem;
}
.contact-pill:hover {
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.closing-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.closing-year {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.closing-year a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   LASER POINTER (Remote)
---------------------------------------------------------------- */
.laser-pointer {
  position: fixed;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff3b3b 30%, transparent 70%);
  box-shadow: 0 0 20px 6px rgba(255,59,59,0.6);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: left 0.08s linear, top 0.08s linear, opacity 0.3s ease;
  opacity: 0;
}
.tap-ripple {
  position: fixed;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,59,59,0.3);
  border: 2px solid rgba(255,59,59,0.6);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(0);
  animation: tapRipple 0.6s ease-out forwards;
}
@keyframes tapRipple {
  to { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ----------------------------------------------------------------
   REMOTE MODAL
---------------------------------------------------------------- */
.remote-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.remote-modal.active {
  display: flex;
}
.remote-modal-content {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}
.close-modal {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-modal:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.remote-header {
  margin-bottom: 1rem;
}
.remote-icon-ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 0.75rem;
}
.remote-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
.remote-p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.qrcode-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.qrcode-container canvas,
.qrcode-container img {
  border-radius: 0.75rem;
  border: 4px solid white;
}
.remote-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: blink 1.5s infinite;
}
.remote-status.connected .status-dot {
  background: var(--success);
  animation: none;
}
.remote-status.connected .status-text {
  color: var(--success);
}
.remote-id-display {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.remote-id-display strong {
  color: var(--text-secondary);
  font-family: monospace;
}
.remote-info {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* ----------------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------------- */
.animate-in, .animate-left, .animate-right, .animate-up {
  opacity: 0;
}
.animate-in { transform: translateY(30px); }
.animate-left { transform: translateX(-40px); }
.animate-right { transform: translateX(40px); }
.animate-up { transform: translateY(40px); }

/* ----------------------------------------------------------------
   RESPONSIVE — COMPREHENSIVE MOBILE SUPPORT
---------------------------------------------------------------- */

/* === Allow vertical scroll inside each slide on small screens === */
@media (max-width: 1024px) {
  .slide {
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .slide-content {
    min-height: 100vh;
    height: auto;
    padding: 5rem 1.5rem 5.5rem;
  }
  .center-content {
    min-height: 100vh;
    height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  /* Grids to single or fewer columns */
  .feature-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-content: start;
  }
  .feature-layout.reverse {
    direction: ltr;
  }
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-content: start;
  }
  .about-left { order: -1; }
  .about-left, .about-right, .feature-visual, .feature-text {
    min-width: 0;
  }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .certs-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* === TABLET & SMALL LAPTOP (≤768px) === */
@media (max-width: 768px) {
  /* --- Global slide & content --- */
  .slide-content {
    padding: 5rem 1.25rem 5.5rem;
    max-width: 100%;
  }
  .center-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  /* --- Top Controls --- */
  .top-right-controls {
    top: 10px;
    right: 0.75rem;
    gap: 0.35rem;
  }
  .slide-counter {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
  }
  .fullscreen-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  /* --- Nav Controls --- */
  .nav-controls {
    bottom: 0.75rem;
    right: 0.75rem;
  }
  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  /* --- Slide Dots --- */
  .slide-dots {
    bottom: 1rem;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .dot.active {
    width: 22px;
  }

  /* --- Keyboard Hint — hide on mobile/tablet --- */
  .keyboard-hint {
    display: none;
  }

  /* --- Floating icons — smaller on mobile --- */
  .float-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    border-radius: 0.6rem;
  }

  /* ==================== HERO SLIDE ==================== */
  .hero-avatar-ring {
    width: 100px;
    height: 100px;
  }
  .hero-avatar-badge {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-suffix {
    font-size: 0.9rem;
  }
  .hero-role {
    font-size: 1rem;
  }
  .hero-techline {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }
  .hero-status {
    font-size: 0.72rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
  }
  .hero-stats {
    padding: 0.85rem 1rem;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stat strong {
    font-size: 1.5rem;
  }
  .hero-stat span {
    font-size: 0.62rem;
  }
  .hero-stat-divider {
    height: 30px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 0.6rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  /* ==================== ABOUT SLIDE ==================== */
  .about-layout {
    gap: 1.25rem;
  }
  .about-photo-wrap {
    width: 110px;
    height: 110px;
  }
  .about-photo {
    width: 110px;
    height: 110px;
  }
  .about-name {
    font-size: 1.25rem;
  }
  .about-title-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
  }
  .about-contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .about-contact-item {
    flex: 0 1 auto;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
  }
  .about-summary {
    font-size: 0.82rem;
    line-height: 1.6;
  }
  .about-highlights {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .about-highlights::-webkit-scrollbar {
    display: none;
  }
  .highlight-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    padding: 0.7rem 0.85rem;
  }
  .highlight-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .highlight-card strong {
    font-size: 0.78rem;
  }
  .highlight-card span {
    font-size: 0.7rem;
  }

  /* ==================== TECH STACK SLIDE ==================== */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .tech-card {
    padding: 0.85rem 0.7rem;
  }
  .tech-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 0.45rem;
  }
  .tech-name {
    font-size: 0.78rem;
  }
  .tech-desc {
    font-size: 0.62rem;
  }

  /* ==================== CAREER TIMELINE SLIDE ==================== */
  .career-road {
    gap: 0.65rem;
  }
  .career-road::before {
    left: 35px;
  }
  .career-card {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .career-logo-wrap {
    width: 42px;
    height: 42px;
    padding: 4px;
  }
  .career-company-name {
    font-size: 0.82rem;
  }
  .career-role {
    font-size: 0.72rem;
  }
  .career-period,
  .career-location {
    font-size: 0.65rem;
  }
  .career-badge,
  .career-badge-current {
    font-size: 0.62rem;
    padding: 0.2rem 0.55rem;
  }

  /* ==================== FEATURE SLIDES (4, 5, 6) ==================== */
  .feature-layout {
    gap: 1.25rem;
  }
  .session-chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.75rem;
  }
  .feature-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  .feature-desc {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }
  .feat-item {
    padding: 0.6rem 0.75rem;
    gap: 0.65rem;
  }
  .feat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .feat-item strong {
    font-size: 0.75rem;
  }
  .feat-item span {
    font-size: 0.68rem;
  }

  /* Project Showcase Card */
  .project-showcase-card {
    padding: 1rem;
  }
  .showcase-logo {
    width: 34px;
    height: 34px;
  }
  .showcase-company {
    font-size: 0.85rem;
  }
  .showcase-hq {
    font-size: 0.65rem;
  }
  .showcase-project {
    padding: 0.55rem 0.7rem;
  }
  .sp-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .sp-name {
    font-size: 0.75rem;
  }
  .sp-type {
    font-size: 0.62rem;
  }
  .sp-badge {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
  }
  .showcase-tech-row span {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
  }

  /* BRI Highlight */
  .bri-highlight {
    padding: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .bri-logo-wrap {
    width: 44px;
    height: 44px;
    padding: 5px;
  }
  .bri-title {
    font-size: 0.82rem;
  }
  .bri-url {
    font-size: 0.65rem;
  }
  .bri-award {
    font-size: 0.62rem;
  }

  /* Experience Mini Cards */
  .exp-mini-card {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }
  .exp-mini-logo {
    width: 40px;
    height: 40px;
  }
  .exp-mini-info strong {
    font-size: 0.78rem;
  }
  .exp-mini-info > span {
    font-size: 0.68rem;
  }
  .exp-mini-tags span {
    font-size: 0.58rem;
    padding: 0.1rem 0.4rem;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .portfolio-card {
    padding: 0.8rem 0.9rem;
    gap: 0.65rem;
  }
  .port-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .port-name {
    font-size: 0.78rem;
  }
  .port-desc {
    font-size: 0.62rem;
  }
  .port-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
  .portfolio-note {
    font-size: 0.72rem;
  }

  /* ==================== CERTIFICATIONS SLIDE ==================== */
  .certs-layout {
    gap: 1.25rem;
  }
  .certs-heading {
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
  }
  .cert-card {
    padding: 0.7rem 0.85rem;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
  }
  .cert-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .cert-name {
    font-size: 0.78rem;
  }
  .cert-issuer {
    font-size: 0.65rem;
  }
  .lang-card {
    grid-template-columns: 70px 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .lang-name {
    font-size: 0.72rem;
  }
  .lang-level {
    font-size: 0.62rem;
  }
  .skill-chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.55rem;
  }

  /* ==================== CLOSING SLIDE ==================== */
  .closing-avatar .hero-avatar-ring {
    width: 85px;
    height: 85px;
  }
  .closing-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
  }
  .closing-title {
    font-size: 1.6rem;
  }
  .closing-desc {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
  .contact-pill {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }
  .closing-actions {
    gap: 0.6rem;
  }
  .closing-actions .btn-primary,
  .closing-actions .btn-outline {
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
  }
  .closing-year {
    font-size: 0.65rem;
  }

  /* --- Section header --- */
  .section-label {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-desc {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
}

/* === MOBILE PHONE (≤480px) === */
@media (max-width: 480px) {
  .slide-content {
    padding: 5rem 0.85rem 5rem;
  }
  .center-content {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
  }

  /* Top controls even smaller */
  .top-right-controls {
    top: 8px;
    right: 0.5rem;
  }
  .slide-counter {
    font-size: 0.62rem;
    padding: 0.25rem 0.55rem;
  }
  .fullscreen-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  /* Nav */
  .nav-controls {
    bottom: 0.5rem;
    right: 0.5rem;
    gap: 0.4rem;
  }
  .nav-btn {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  /* Dots */
  .slide-dots {
    bottom: 0.7rem;
    gap: 0.3rem;
  }
  .dot { width: 7px; height: 7px; }
  .dot.active { width: 18px; }

  /* Float icons — hide most on very small screens */
  .fi-3, .fi-4, .fi-5, .fi-6 {
    display: none;
  }
  .float-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  /* ==================== HERO ==================== */
  .hero-avatar-ring {
    width: 85px;
    height: 85px;
  }
  .hero-avatar-badge {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
    border-width: 2px;
  }
  .hero-avatar-glow {
    inset: -8px;
  }
  .hero-status {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.75rem;
  }
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
  }
  .hero-suffix {
    font-size: 0.8rem;
  }
  .hero-role {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .hero-techline {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    width: 100%;
    max-width: 320px;
  }
  .hero-stat strong {
    font-size: 1.35rem;
  }
  .hero-stat span {
    font-size: 0.58rem;
  }
  .hero-stat-divider {
    display: none;
  }
  .hero-actions {
    max-width: 100%;
    gap: 0.5rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  .scroll-indicator {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }

  /* ==================== ABOUT ==================== */
  .about-layout {
    gap: 1rem;
  }
  .about-photo-wrap {
    width: 90px;
    height: 90px;
  }
  .about-photo {
    width: 90px;
    height: 90px;
  }
  .about-name {
    font-size: 1.1rem;
  }
  .name-suffix {
    font-size: 0.82rem;
  }
  .about-title-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
  }
  .about-contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .about-contact-item {
    flex: 0 1 auto;
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
  }
  .about-summary {
    font-size: 0.78rem;
  }
  .about-highlights {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .about-highlights::-webkit-scrollbar {
    display: none;
  }
  .highlight-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 0.6rem 0.7rem;
    gap: 0.65rem;
  }
  .highlight-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .highlight-card strong {
    font-size: 0.72rem;
  }
  .highlight-card span {
    font-size: 0.65rem;
  }

  /* ==================== TECH STACK ==================== */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .tech-card {
    padding: 0.7rem 0.5rem;
  }
  .tech-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    border-radius: 0.55rem;
  }
  .tech-name {
    font-size: 0.72rem;
  }
  .tech-desc {
    font-size: 0.58rem;
  }
  .section-header {
    margin-bottom: 1.25rem;
  }

  /* ==================== CAREER TIMELINE ==================== */
  .career-road {
    gap: 0.5rem;
  }
  .career-road::before {
    left: 29px;
    width: 1.5px;
  }
  .career-card {
    padding: 0.6rem 0.7rem;
    gap: 0.6rem;
  }
  .career-logo-wrap {
    width: 36px;
    height: 36px;
    padding: 3px;
    border-radius: 0.55rem;
  }
  .career-company-name {
    font-size: 0.75rem;
  }
  .career-role {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
  }
  .career-period,
  .career-location {
    font-size: 0.6rem;
  }
  .career-period i,
  .career-location i {
    font-size: 0.55rem;
    width: 10px;
  }
  .career-badge,
  .career-badge-current {
    font-size: 0.58rem;
    padding: 0.15rem 0.45rem;
  }

  /* ==================== FEATURE SLIDES ==================== */
  .feature-layout {
    gap: 1rem;
  }
  .session-chip {
    font-size: 0.6rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.5rem;
  }
  .feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }
  .feature-desc {
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
  }
  .feature-list {
    gap: 0.45rem;
  }
  .feat-item {
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
  .feat-icon {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
    border-radius: 0.45rem;
  }
  .feat-item strong {
    font-size: 0.68rem;
  }
  .feat-item span {
    font-size: 0.6rem;
  }

  /* Project Showcase Card */
  .project-showcase-card {
    padding: 0.75rem;
    border-radius: 0.75rem;
  }
  .showcase-header {
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }
  .showcase-logo {
    width: 28px;
    height: 28px;
  }
  .showcase-company {
    font-size: 0.75rem;
  }
  .showcase-hq {
    font-size: 0.58rem;
  }
  .showcase-projects {
    gap: 0.4rem;
    margin-bottom: 0.85rem;
  }
  .showcase-project {
    padding: 0.45rem 0.55rem;
    gap: 0.5rem;
  }
  .sp-icon {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .sp-name {
    font-size: 0.68rem;
  }
  .sp-type {
    font-size: 0.55rem;
  }
  .sp-badge {
    font-size: 0.52rem;
    padding: 0.1rem 0.35rem;
  }
  .showcase-tech-row {
    gap: 0.25rem;
  }
  .showcase-tech-row span {
    font-size: 0.55rem;
    padding: 0.12rem 0.35rem;
  }

  /* BRI */
  .bri-highlight {
    padding: 0.6rem;
    gap: 0.6rem;
  }
  .bri-logo-wrap {
    width: 38px;
    height: 38px;
    padding: 4px;
  }
  .bri-title { font-size: 0.75rem; }
  .bri-url { font-size: 0.6rem; }
  .bri-award { font-size: 0.58rem; padding: 0.15rem 0.45rem; }

  /* Experience Mini Cards */
  .exp-cards-stack {
    gap: 0.55rem;
  }
  .exp-mini-card {
    padding: 0.6rem 0.7rem;
    gap: 0.6rem;
  }
  .exp-mini-logo {
    width: 34px;
    height: 34px;
    padding: 3px;
  }
  .exp-mini-info strong {
    font-size: 0.72rem;
  }
  .exp-mini-info > span {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }
  .exp-mini-tags {
    gap: 0.2rem;
  }
  .exp-mini-tags span {
    font-size: 0.52rem;
    padding: 0.08rem 0.35rem;
  }

  /* ==================== PORTFOLIO ==================== */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .portfolio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.8rem 0.6rem;
    gap: 0.5rem;
    position: relative;
  }
  .port-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    margin: 0 auto;
  }
  .port-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .port-name {
    font-size: 0.72rem;
    font-weight: 700;
  }
  .port-desc {
    font-size: 0.58rem;
    line-height: 1.3;
    margin-top: 0.1rem;
  }
  .port-badge {
    position: static;
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.52rem;
    padding: 0.1rem 0.4rem;
  }
  /* Make the last card span full width for visual balance */
  .portfolio-card:last-child {
    grid-column: span 2;
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
  }
  .portfolio-card:last-child .port-icon {
    margin: 0 0.85rem 0 0;
  }
  .portfolio-card:last-child .port-info {
    align-items: flex-start;
    text-align: left;
  }
  .portfolio-card:last-child .port-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    margin-top: 0;
  }
  .port-name { font-size: 0.72rem; }
  .port-desc { font-size: 0.58rem; }
  .port-badge {
    font-size: 0.5rem;
    padding: 0.12rem 0.35rem;
    top: 0.35rem;
    right: 0.45rem;
  }
  .portfolio-note {
    font-size: 0.65rem;
  }

  /* ==================== CERTIFICATIONS ==================== */
  .certs-layout {
    gap: 1rem;
  }
  .certs-heading {
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
  }
  .cert-card {
    padding: 0.6rem 0.7rem;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
  }
  .cert-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .cert-name { font-size: 0.72rem; }
  .cert-issuer { font-size: 0.6rem; }
  .cert-badge { font-size: 0.85rem; }
  .lang-card {
    grid-template-columns: 60px 1fr auto;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }
  .lang-name { font-size: 0.68rem; }
  .lang-bar { height: 4px; }
  .lang-level { font-size: 0.58rem; }
  .skills-cloud {
    gap: 0.3rem;
  }
  .skill-chip {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
  }

  /* ==================== CLOSING ==================== */
  .closing-avatar {
    margin-bottom: 0.75rem;
  }
  .closing-avatar .hero-avatar-ring {
    width: 75px;
    height: 75px;
  }
  .closing-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.75rem;
  }
  .closing-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }
  .closing-desc {
    font-size: 0.78rem;
    margin-bottom: 1rem;
    max-width: 100%;
  }
  .closing-contacts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }
  .contact-pill {
    flex: 0 1 auto;
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    width: auto;
    max-width: none;
  }
  .closing-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .closing-actions .btn-primary,
  .closing-actions .btn-outline {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 130px;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .closing-year {
    font-size: 0.6rem;
  }

  /* --- Section header globals --- */
  .section-label {
    font-size: 0.62rem;
    padding: 0.25rem 0.65rem;
    gap: 0.35rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .section-desc {
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }

  /* Buttons global */
  .btn-primary, .btn-outline {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
  }
}

/* === VERY SMALL PHONES (≤380px) === */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.3rem;
  }
  .hero-stats {
    max-width: 280px;
  }
  .hero-stat strong {
    font-size: 1.2rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .career-logo-wrap {
    width: 32px;
    height: 32px;
  }
  .career-road::before {
    left: 27px;
  }
  .career-company-name {
    font-size: 0.7rem;
  }
  .feature-title {
    font-size: 1.1rem;
  }
  .closing-title {
    font-size: 1.15rem;
  }
  .portfolio-card {
    padding: 0.55rem 0.6rem;
  }
}

/* === Landscape phone — ensure content doesn't get clipped === */
@media (max-height: 500px) and (orientation: landscape) {
  .slide {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .center-content {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }
  .hero-avatar-ring {
    width: 70px;
    height: 70px;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .hero-stats {
    flex-direction: row;
    padding: 0.5rem 0.8rem;
  }
  .hero-stat strong {
    font-size: 1.2rem;
  }
}
