/* ===================================================================
   PORTFOLIO NURUL LAYLI - DIGITAL BUSINESS & UI/UX
   Styling inspired by Reference 2 (Modern SaaS / Fintech Bento UI)
   =================================================================== */

:root {
  /* Color Palette - Light Theme (Reference 2 Inspired: Clean Crisp Neutral with Radiant Modern Orbs) */
  --bg-body: #f8fafc;
  --bg-frame: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-secondary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-card: rgba(226, 232, 240, 0.8);
  --border-hover: rgba(99, 102, 241, 0.35);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --accent-primary: #1e1b4b;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --btn-primary-bg: #1e293b;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #0f172a;
  
  --pill-bg: #f1f5f9;
  --pill-text: #334155;
  --pill-active-bg: #1e293b;
  --pill-active-text: #ffffff;

  /* Card and Bento Radii matching Reference 2 */
  --radius-frame: 36px;
  --radius-card: 28px;
  --radius-card-sm: 20px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 16px 36px -10px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.7);
  --shadow-card-hover: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.25);
  --shadow-orb: 0 12px 28px -6px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-frame: #111827;
  --bg-card: #151f32;
  --bg-card-hover: #1c2842;
  --bg-card-secondary: #0f172a;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(129, 140, 248, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  --accent-primary: #818cf8;
  --btn-primary-bg: #6366f1;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #4f46e5;

  --pill-bg: #1e293b;
  --pill-text: #e2e8f0;
  --pill-active-bg: #6366f1;
  --pill-active-text: #ffffff;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-card-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(129, 140, 248, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  min-height: 100vh;
}

/* Ambient Floating Decorative Blobs (MD 0. Pengaturan: 2-4 bentuk melayang pelan) */
.ambient-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatSlow 20s infinite ease-in-out alternate;
}

[data-theme="dark"] .ambient-blob {
  opacity: 0.25;
  filter: blur(100px);
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ec4899 0%, #a855f7 70%);
  top: -100px;
  right: -50px;
  animation-duration: 22s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, #6366f1 70%);
  bottom: 20%;
  left: -150px;
  animation-duration: 26s;
  animation-delay: -5s;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #10b981 0%, #06b6d4 70%);
  top: 50%;
  right: -80px;
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
  100% { transform: translate(25px, -30px) scale(0.95); }
}

/* Main Container Frame (Reference 2 Canvas Aesthetic) */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin-bottom: 36px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
  font-weight: 700;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-indigo);
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-indigo);
  flex-shrink: 0;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0 auto;
}

.nav-link {
  display: inline-block;
  padding: 6px 11px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--pill-bg);
}

.nav-link.active {
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  font-weight: 600;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Control Pills (Theme, Lang, CTA) */
.ctrl-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--pill-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.ctrl-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctrl-pill-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary-pill:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
}

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--border-card);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

/* ===================================================================
   HERO SECTION (Strictly Following Reference 2 Layout)
   Left: Big Bold Typography + Subtitle + Action Buttons
   Right: Staggered Bento Cards with Layered Frosted Glow Orbs
   =================================================================== */
.hero-section {
  padding: 40px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-indigo);
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}

.hero-title {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-typed-wrapper {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--accent-indigo);
  min-height: 2.2rem;
  margin-bottom: 16px;
}

.typed-text {
  border-right: 2px solid var(--accent-indigo);
  padding-right: 4px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: var(--accent-indigo); }
  50% { border-color: transparent; }
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-social-btn:hover {
  color: var(--accent-indigo);
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
}

/* ===================================================================
   HERO ETHAN COLE & AARAV SINGH STYLE 3D OVERLAP AVATAR STAGE
   Kepala/tubuh bagian atas menyembul keluar dari lingkaran latar belakang
   =================================================================== */
.hero-ethan-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.ethan-avatar-container {
  position: relative;
  width: 440px;
  height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto;
}

/* 1. Ambient Glow Behind the Circle */
.ethan-ambient-glow {
  position: absolute;
  bottom: 30px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(236, 72, 153, 0.16) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .ethan-ambient-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 75%);
  filter: blur(48px);
}

/* Orbital Rotating Ring */
.ethan-orbit-ring {
  position: absolute;
  bottom: 15px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1.5px dashed rgba(99, 102, 241, 0.22);
  pointer-events: none;
  z-index: 1;
  animation: rotateOrbitalRing 45s linear infinite;
}

[data-theme="dark"] .ethan-orbit-ring {
  border-color: rgba(168, 85, 247, 0.25);
}

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

/* 2. The 3D Backdrop Circle (Lingkaran Latar Belakang) */
.ethan-backdrop-circle {
  position: absolute;
  bottom: 25px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 242, 255, 0.8) 45%, rgba(243, 232, 255, 0.65) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 24px 60px rgba(99, 102, 241, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 2px 12px rgba(255, 255, 255, 0.9);
  z-index: 2;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .ethan-backdrop-circle {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(49, 46, 129, 0.45) 50%, rgba(15, 23, 42, 0.7) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* 3. Photo Frame with 3D Pop-Out / Overlap Effect */
/* Clipper container extends 125px above circle, while bottom conforms to circle shape */
.ethan-photo-clipper {
  position: absolute;
  bottom: 25px;
  width: 350px;
  height: 485px;
  border-radius: 175px 175px 175px 175px;
  overflow: hidden;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.ethan-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.14));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.ethan-avatar-container:hover .ethan-photo-img {
  transform: scale(1.03) translateY(-4px);
  filter: drop-shadow(0 20px 36px rgba(99, 102, 241, 0.22));
}

/* 4. Floating 3D Iridescent Orb with Sparkle (Aarav Singh Reference) */
.ethan-floating-orb {
  position: absolute;
  bottom: 85px;
  left: 5px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98) 0%, rgba(224, 231, 255, 0.8) 28%, rgba(236, 72, 153, 0.4) 62%, rgba(99, 102, 241, 0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 12px 30px rgba(99, 102, 241, 0.35),
    inset 0 3px 8px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  animation: orbPulse 5s infinite ease-in-out;
}

.ethan-floating-orb .sparkle-icon {
  font-size: 1.3rem;
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}

@keyframes orbPulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3px, -8px) scale(1.07); }
}

/* 5. Floating Glassmorphism Metric Cards (Aarav Singh Reference) */
.ethan-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  z-index: 5;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

[data-theme="dark"] .ethan-float-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.ethan-float-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 42px rgba(99, 102, 241, 0.22);
  border-color: var(--accent-indigo);
  z-index: 8;
}

/* Card 1: Top Right - Honors & Awards */
.float-card-awards {
  top: 45px;
  right: -10px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: floatTopRight 6s infinite ease-in-out;
}

.ethan-card-stat {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-indigo);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.ethan-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
}

/* Card 2: Bottom Right - Design Impact */
.float-card-impact {
  bottom: 50px;
  right: -15px;
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: floatBottomRight 6.8s infinite ease-in-out 1s;
}

.ethan-impact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ethan-impact-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ethan-impact-rate {
  font-size: 0.88rem;
  font-weight: 800;
  color: #10b981;
}

.ethan-sparkline {
  color: var(--accent-indigo);
  overflow: visible;
}

@keyframes floatTopRight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes floatBottomRight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* 6. Subtitle Identity Pill Badge at Bottom */
.ethan-badge-tag {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 8px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

[data-theme="dark"] .ethan-badge-tag {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.ethan-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===================================================================
   SECTION 1.5: HIGHLIGHTS KEAHLIAN & PRESTASI
   Pindahan 4 Kartu dari Hero agar Hero Lebih Lega & Elegan
   =================================================================== */
.highlights-section {
  width: 100%;
  padding: 10px 0 50px;
  margin-top: -10px;
}

.highlights-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.highlight-card {
  padding: 28px 22px;
  min-height: 210px;
}

.highlight-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .highlight-badge-pill {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

/* The Core Card of Reference 2 */
.ref2-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ref2-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

/* Signature Layered Frosted Glow Orb Icon (Reference 2) */
.ref2-orb-container {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref2-orb-base {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.ref2-orb-overlay {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  top: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .ref2-orb-overlay {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Orb Color Themes from Reference 2 */
.orb-pink .ref2-orb-base {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
}
.orb-blue .ref2-orb-base {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.orb-purple .ref2-orb-base {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}
.orb-emerald .ref2-orb-base {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.orb-indigo .ref2-orb-base,
.orb-base-indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

/* ===================================================================
   HERO PHOTO UPLOAD BENTO CARD & INTERACTIVE DROPZONE
   =================================================================== */
.photo-file-input {
  display: none !important;
}

.ref2-photo-card {
  min-height: 290px;
  padding: 14px;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.ref2-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-indigo);
}

/* 1. Empty Dropzone State (Bagian Kosong untuk Upload Foto) */
.photo-dropzone {
  width: 100%;
  height: 100%;
  min-height: 262px;
  border: 2px dashed rgba(99, 102, 241, 0.45);
  border-radius: calc(var(--radius-card) - 6px);
  background: rgba(99, 102, 241, 0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  transition: all var(--transition-normal);
  outline: none;
}

.photo-dropzone:hover,
.photo-dropzone:focus-visible,
.photo-dropzone.drag-over {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.22);
  transform: scale(1.01);
}

.photo-orb {
  margin-bottom: 14px;
  transform: scale(0.95);
}

.photo-badge-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.photo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.photo-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  max-width: 220px;
  margin: 0 auto;
}

.photo-upload-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.photo-dropzone:hover .photo-upload-btn-pill {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.photo-format-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 2. Photo Preview State */
.photo-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 270px;
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-card) - 6px);
  transition: transform 0.4s ease;
}

.ref2-photo-card:hover .hero-photo-img {
  transform: scale(1.03);
}

.photo-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.05) 45%, rgba(15, 23, 42, 0.85) 100%);
  opacity: 0.95;
  transition: opacity var(--transition-normal);
  border-radius: calc(var(--radius-card) - 6px);
}

.photo-preview-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  z-index: 2;
}

.photo-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.photo-action-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.photo-action-btn.btn-danger {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.7);
}

.photo-action-btn.btn-danger:hover {
  background: #dc2626;
}

.photo-preview-caption {
  text-align: left;
  color: #ffffff;
}

.caption-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 3px;
}

.caption-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Floating Toast Notification */
.portfolio-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ref2-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ref2-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================================================================
   SECTION COMMON STYLING
   =================================================================== */
.content-section {
  padding: 60px 0;
  scroll-margin-top: 100px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-pill-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--pill-bg);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Bento Card Grid */
.bento-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

/* ===================================================================
   ABOUT ME SECTION
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: stretch;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 40px 32px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 24px;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-indigo));
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
  cursor: default;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.profile-avatar-wrapper:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.35);
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--accent-indigo);
  font-weight: 800;
  border: 3px solid var(--bg-card);
  overflow: hidden;
  position: relative;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-status-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #10b981;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  z-index: 2;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-role {
  font-size: 0.92rem;
  color: var(--accent-indigo);
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}

.profile-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.profile-meta-label {
  color: var(--text-muted);
}

.profile-meta-value {
  font-weight: 600;
  color: var(--text-primary);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-paragraph {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.hobbies-wrapper {
  margin-top: 8px;
}

.hobbies-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hobbies-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hobby-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--pill-bg);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

/* Quick Stats Bento */
.stats-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-sm);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-indigo);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===================================================================
   SKILLS SECTION (Progress Bars Fill When Visible)
   =================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.skill-card-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-item {
  margin-bottom: 18px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.skill-pct {
  color: var(--accent-indigo);
}

.skill-bar-bg {
  width: 100%;
  height: 12px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tools & Software Badges */
.tools-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.tool-badge:hover {
  transform: translateY(-3px);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.soft-skill-pill {
  padding: 16px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================================================================
   PROJECTS SECTION (Filter Tabs + Cards with Hover Effects)
   =================================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.filter-btn.active {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
  border-color: transparent;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.project-thumb-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-card-secondary);
  overflow: hidden;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb-img {
  transform: scale(1.05);
}

.project-badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-award-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-detail-box {
  background: var(--bg-card-secondary);
  border-radius: var(--radius-card-sm);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.project-detail-row {
  margin-bottom: 6px;
}

.project-detail-row:last-child {
  margin-bottom: 0;
}

.project-detail-row strong {
  color: var(--text-primary);
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tech-tag {
  padding: 4px 12px;
  background: var(--pill-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  gap: 12px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-indigo);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link-btn:hover {
  color: var(--accent-purple);
  transform: translateX(3px);
}

/* ===================================================================
   EXPERIENCE SECTION (Organizational Leadership)
   =================================================================== */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.exp-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.exp-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.exp-period-col {
  border-right: 1px solid var(--border-card);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.exp-period-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pill-bg);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-indigo);
  margin-bottom: 12px;
  width: fit-content;
}

.exp-org-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.exp-role-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.exp-tasks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-tasks-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-tasks-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-indigo);
  font-weight: 800;
}

/* ===================================================================
   EDUCATION SECTION
   =================================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.edu-year-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pill-bg);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-indigo);
  margin-bottom: 16px;
  width: fit-content;
}

.edu-institution {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.edu-major {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-indigo);
  margin-bottom: 14px;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   AWARDS & CERTIFICATES SECTION (With Interactive Modal)
   =================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-indigo);
}

.cert-preview-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-card-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.cert-card:hover .cert-thumb-img {
  transform: scale(1.08);
}

.cert-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cert-card:hover .cert-zoom-overlay {
  opacity: 1;
}

.cert-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cert-level-pill {
  padding: 4px 10px;
  background: var(--pill-bg);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-indigo);
}

.cert-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.cert-org {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Certificate Lightbox Modal */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cert-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-card);
}

.cert-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.cert-modal-close {
  background: var(--pill-bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cert-modal-close:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.cert-modal-body {
  padding: 24px;
  text-align: center;
}

.cert-modal-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.cert-modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===================================================================
   CONTACT & SOCIAL SECTION
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
}

.contact-avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.contact-item-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.contact-item-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-indigo);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: var(--bg-card);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-weight: 500;
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ===================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver Hook)
   =================================================================== */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===================================================================
   RESPONSIVENESS (Mobile & Tablet)
   =================================================================== */
@media (max-width: 1080px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    background: var(--bg-frame);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: none;
    gap: 8px;
    z-index: 100;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions, .hero-socials {
    justify-content: center;
  }

  .hero-ethan-stage {
    margin: 10px auto 0;
  }

  .ethan-avatar-container {
    width: 380px;
    height: 470px;
  }

  .ethan-backdrop-circle {
    width: 320px;
    height: 320px;
    bottom: 20px;
  }

  .ethan-photo-clipper {
    width: 310px;
    height: 440px;
    border-radius: 155px 155px 155px 155px;
    bottom: 20px;
  }

  .ethan-orbit-ring {
    width: 350px;
    height: 350px;
    bottom: 10px;
  }

  .ethan-ambient-glow {
    width: 320px;
    height: 320px;
  }

  .float-card-awards {
    top: 30px;
    right: 5px;
  }

  .float-card-impact {
    bottom: 40px;
    right: 5px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

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

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

  .exp-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .exp-period-col {
    border-right: none;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 14px;
  }

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

@media (max-width: 768px) {
  .page-wrapper {
    padding: 16px 14px 40px;
  }

  .ethan-avatar-container {
    width: 320px;
    height: 420px;
  }

  .ethan-backdrop-circle {
    width: 270px;
    height: 270px;
    bottom: 20px;
  }

  .ethan-photo-clipper {
    width: 260px;
    height: 390px;
    border-radius: 130px 130px 130px 130px;
    bottom: 20px;
  }

  .ethan-orbit-ring {
    display: none;
  }

  .ethan-floating-orb {
    bottom: 50px;
    left: 10px;
    width: 46px;
    height: 46px;
  }

  .float-card-awards {
    top: 15px;
    right: 5px;
    padding: 10px 14px;
  }

  .ethan-card-stat {
    font-size: 1.25rem;
  }

  .float-card-impact {
    bottom: 30px;
    right: 5px;
    padding: 10px 14px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-bento-grid {
    grid-template-columns: 1fr;
  }

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

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

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