/* ============================================
   ANGGA PORTFOLIO — Design System
   Professional • Elegant • Clean • Minimalist
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Fresh, Bright, Cerah Light Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-dark: #3730a3;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --success: #16a34a;
  --error: #dc2626;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-pad: clamp(80px, 10vw, 120px);
  --container-width: 1200px;
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

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

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

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

a { color: var(--accent-light); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

::selection { background: var(--accent); color: white; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

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

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 24px;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--border);
  }
  
  .nav-links.open { right: 0; }
  
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  
  .nav-overlay.open { display: block; }
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-end;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.tilt-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}

.tilt-3d-inner {
  transform: translateZ(25px);
  transform-style: preserve-3d;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-greeting {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-greeting::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 8px;
  line-height: 1.05;
}

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

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-typing {
  display: inline;
  border-right: 2px solid var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { border-color: transparent; } }

.hero-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

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

.hero-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.hero-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  position: relative;
  z-index: 10;
}

.d-none {
  display: none !important;
}

/* ============================================
   3D HERO PHOTO SCENE & HOLOGRAPHIC RINGS
   ============================================ */
.hero-mode-switcher {
  display: inline-flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 15;
  position: relative;
}

.hero-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-mode-btn:hover {
  color: #ffffff;
}

.hero-mode-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.hero-photo-3d-scene {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Hologram Orbit Rings */
.photo-3d-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 1;
}

.photo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.photo-ring.ring-1 {
  width: 440px;
  height: 440px;
  margin-top: -220px;
  margin-left: -220px;
  border: 1.5px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25), inset 0 0 20px rgba(99, 102, 241, 0.15);
  animation: orbitRing1 16s linear infinite;
}

.photo-ring.ring-2 {
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  border: 1.5px dashed rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  animation: orbitRing2 20s linear infinite reverse;
}

.photo-ring.ring-3 {
  width: 490px;
  height: 490px;
  margin-top: -245px;
  margin-left: -245px;
  border: 1px dotted rgba(168, 85, 247, 0.35);
  animation: orbitRing3 26s linear infinite;
}

@keyframes orbitRing1 {
  0% { transform: rotateX(68deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(68deg) rotateY(15deg) rotateZ(360deg); }
}
@keyframes orbitRing2 {
  0% { transform: rotateX(60deg) rotateY(-20deg) rotateZ(0deg); }
  100% { transform: rotateX(60deg) rotateY(-20deg) rotateZ(360deg); }
}
@keyframes orbitRing3 {
  0% { transform: rotateX(72deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(72deg) rotateY(0deg) rotateZ(360deg); }
}

.photo-3d-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 460px;
  border-radius: 24px;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.photo-3d-glow {
  position: absolute;
  inset: -15px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 60%, rgba(99, 102, 241, 0.35) 0%, rgba(6, 182, 212, 0.2) 40%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
  transform: translateZ(-20px);
  z-index: -1;
}

.photo-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

.photo-3d-img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  object-position: bottom center;
  transform: translateZ(30px);
  transform-style: preserve-3d;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* Floating 3D Badges */
.floating-3d-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.25);
  z-index: 10;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: floatBadge 6s ease-in-out infinite;
}

.floating-3d-badge.badge-top-right {
  top: 40px;
  right: -25px;
  transform: translateZ(65px);
  animation-delay: 0s;
}

.floating-3d-badge.badge-bottom-left {
  bottom: 50px;
  left: -25px;
  transform: translateZ(75px);
  animation-delay: -3s;
}

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

.floating-3d-badge .badge-icon-wrap {
  font-size: 1.3rem;
  line-height: 1;
}

.floating-3d-badge .badge-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.floating-3d-badge .badge-sub {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ========================================================
   INTERACTIVE DEVELOPER TERMINAL & AVATAR SHOWCASE (HERO)
   ======================================================== */
.dev-terminal-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Avatar Status Pill above Terminal */
.hero-avatar-status-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 6px 16px 6px 6px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
  animation: floatAvatar 5s ease-in-out infinite;
}
@keyframes floatAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-mini-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.hero-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #6366f1;
}

.hero-avatar-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.hero-status-pill {
  display: flex;
  flex-direction: column;
}

.hero-status-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.hero-status-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Developer Terminal Window */
.dev-terminal-window {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.dev-terminal-window:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(99, 102, 241, 0.3);
}

/* Terminal Header */
.dev-terminal-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.dev-terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.terminal-dot:hover { opacity: 0.8; }
.terminal-dot.close { background: #ff5f56; }
.terminal-dot.min { background: #ffbd2e; }
.terminal-dot.max { background: #27c93f; }

.dev-terminal-title {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-terminal-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.dev-terminal-action-btn:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

/* Terminal Body */
.dev-terminal-body {
  padding: 16px 18px;
  height: 380px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: text;
}
.dev-terminal-body::-webkit-scrollbar {
  width: 6px;
}
.dev-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Terminal Content Lines */
.terminal-output-line {
  word-break: break-word;
  white-space: pre-wrap;
}

.terminal-banner {
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 8px;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.terminal-prompt-text {
  font-weight: 600;
  white-space: nowrap;
}

.terminal-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 140px;
}

.terminal-real-input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  caret-color: #38bdf8;
  padding: 0;
}

/* Shortcut Chips Bar */
.dev-terminal-shortcuts {
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcut-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.terminal-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.terminal-chip:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #fff;
  transform: translateY(-1px);
}

/* Terminal Color Themes */
/* 1. Cyberpunk */
.dev-terminal-window.theme-cyberpunk {
  background: #070913;
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.2);
}
.dev-terminal-window.theme-cyberpunk .terminal-prompt-text { color: #06b6d4; }
.dev-terminal-window.theme-cyberpunk .terminal-banner { color: #f43f5e; }
.dev-terminal-window.theme-cyberpunk .cmd-success { color: #2dd4bf; }
.dev-terminal-window.theme-cyberpunk .cmd-highlight { color: #f43f5e; }

/* 2. Matrix */
.dev-terminal-window.theme-matrix {
  background: #020804;
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.dev-terminal-window.theme-matrix .terminal-prompt-text { color: #22c55e; }
.dev-terminal-window.theme-matrix .terminal-banner { color: #86efac; }
.dev-terminal-window.theme-matrix .cmd-success { color: #4ade80; }
.dev-terminal-window.theme-matrix .cmd-highlight { color: #bbf7d0; }
.dev-terminal-window.theme-matrix .terminal-chip:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #86efac;
}

/* 3. Dracula */
.dev-terminal-window.theme-dracula {
  background: #181424;
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.2);
  color: #f1f5f9;
}
.dev-terminal-window.theme-dracula .terminal-prompt-text { color: #c084fc; }
.dev-terminal-window.theme-dracula .terminal-banner { color: #f472b6; }
.dev-terminal-window.theme-dracula .cmd-success { color: #a855f7; }
.dev-terminal-window.theme-dracula .cmd-highlight { color: #38bdf8; }

/* 4. Tokyo Night */
.dev-terminal-window.theme-tokyo {
  background: #0f141c;
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.2);
  color: #e2e8f0;
}
.dev-terminal-window.theme-tokyo .terminal-prompt-text { color: #38bdf8; }
.dev-terminal-window.theme-tokyo .terminal-banner { color: #fb923c; }
.dev-terminal-window.theme-tokyo .cmd-success { color: #38bdf8; }
.dev-terminal-window.theme-tokyo .cmd-highlight { color: #818cf8; }

/* 5. Clean Monokai */
.dev-terminal-window.theme-monokai {
  background: #1e1e1e;
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.2);
  color: #f8f8f2;
}
.dev-terminal-window.theme-monokai .terminal-prompt-text { color: #eab308; }
.dev-terminal-window.theme-monokai .terminal-banner { color: #a6e22e; }
.dev-terminal-window.theme-monokai .cmd-success { color: #a6e22e; }
.dev-terminal-window.theme-monokai .cmd-highlight { color: #66d9ef; }

/* About Card Modern Glassmorphism */
.about-showcase-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-img-frame {
  width: 100%;
  max-width: 340px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-img-frame:hover img {
  transform: scale(1.04);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  color: white;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-sm);
}

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

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* ============================================
   3D ABOUT SHOWCASE CARD & CYBER BRACKETS
   ============================================ */
.about-photo-3d-scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/5;
  perspective: 1200px;
  transform-style: preserve-3d;
  margin: 0 auto;
}

.about-3d-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
  padding: 12px;
}

.about-3d-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  transform: translateZ(28px);
  transform-style: preserve-3d;
  background: #0f172a;
}

.about-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}

.about-3d-card:hover .about-3d-img {
  transform: scale(1.04);
}

.about-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

.about-3d-glow {
  position: absolute;
  inset: -15px;
  border-radius: 25px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.15) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  transform: translateZ(-10px);
  z-index: -1;
}

/* Cybernetic Corner Brackets */
.cyber-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid #06b6d4;
  pointer-events: none;
  z-index: 6;
  transform: translateZ(48px);
}
.cyber-bracket.bracket-tl {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}
.cyber-bracket.bracket-tr {
  top: 6px;
  right: 6px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 6px;
}
.cyber-bracket.bracket-bl {
  bottom: 6px;
  left: 6px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 6px;
}
.cyber-bracket.bracket-br {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

/* Floating 3D Micro-Badges on About */
.about-floating-chip {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateZ(60px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 7;
}

.chip-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.6s infinite;
}

.about-floating-stat-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  transform: translateZ(80px);
  pointer-events: none;
  z-index: 8;
  animation: floatStat 5s ease-in-out infinite;
}

@keyframes floatStat {
  0%, 100% { transform: translateZ(80px) translateY(0); }
  50% { transform: translateZ(80px) translateY(-6px); }
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-desc {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

.about-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.9;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.about-info-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- Skills Section ---------- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-percent {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s var(--ease);
}

/* ---------- Portfolio Section ---------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

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

.portfolio-image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  color: white;
  transition: all 0.3s var(--ease);
}

.portfolio-overlay a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-techs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.portfolio-tech {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--accent-glow);
  color: var(--accent-light);
  border-radius: 100px;
  font-weight: 500;
}

.portfolio-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  color: var(--text-muted);
  font-size: 2.5rem;
}

/* ---------- Experience & Education Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 32px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s var(--ease);
}

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

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Stats Counter ---------- */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item { padding: 20px 0; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ---------- Testimonials Section ---------- */
.testimonials-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.6s var(--ease);
}

.testimonial-slide.active { display: block; }

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

.testimonial-quote {
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 20px;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

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

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-value {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.contact-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder { color: var(--text-muted); }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.alert-success { background: rgba(34, 197, 94, 0.1); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.2); }
.alert-error { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 99;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.3);
}

/* ---------- 404 Page ---------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-primary);
}

.page-404 h1 {
  font-size: 8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-greeting { justify-content: center; }
  .hero-bio { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image-wrapper { width: 280px; height: 280px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-image-wrapper { width: 220px; height: 220px; }
  .about-info-grid { grid-template-columns: 1fr; }
  .docker-metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ==============================================
   DOCKER HUB PORTFOLIO INTEGRATION STYLES
   ============================================== */
.portfolio-card.has-docker {
  border-top: 2px solid rgba(2, 132, 199, 0.4);
}

.portfolio-docker-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-docker-badge:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.portfolio-overlay .btn-overlay-docker {
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  border: 1px solid #38bdf8;
}

.portfolio-overlay .btn-overlay-docker:hover {
  background: #0284c7;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.portfolio-docker-pill-wrap {
  margin-top: 4px;
  margin-bottom: 8px;
}

.portfolio-docker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 6px;
  font-size: 0.76rem;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-docker-pill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.portfolio-docker-pill .docker-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.portfolio-docker-pill:hover .docker-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Modal Styling */
.docker-modal-content {
  background: #ffffff;
}

.docker-modal-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.docker-avatar-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.docker-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.docker-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.docker-metric-card .metric-label {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 500;
}

.docker-metric-card .metric-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.docker-metric-card .metric-sub {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Terminal Box */
.docker-terminal-box {
  background: #0b0f19;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.docker-terminal-header {
  background: #111827;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dots .dot.red { background: #ef4444; }
.terminal-dots .dot.yellow { background: #f59e0b; }
.terminal-dots .dot.green { background: #10b981; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.terminal-badge {
  font-size: 0.65rem;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.docker-terminal-body {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-comment {
  color: #64748b;
  font-size: 0.75rem;
  font-style: italic;
}

.terminal-code-line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #020617;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  color: #38bdf8;
  font-size: 0.85rem;
  overflow-x: auto;
}

.terminal-code-line .prompt {
  color: #a855f7;
  font-weight: 700;
  user-select: none;
}

.terminal-code-line code {
  color: #38bdf8;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-terminal-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-terminal-copy:hover {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
}

.btn-terminal-copy.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

