/* dynamic-portfolio/css/components.css - Upgraded with High-Tech HUD & Terminal */

/* ==========================================================================
   1. APPLE "DYNAMIC ISLAND" CAPSULE NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  transition: transform var(--spring-smooth);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-glass);
  transition: all var(--spring-smooth);
}

.site-header.scrolled .nav-container {
  box-shadow: var(--shadow-md), 0 0 25px rgba(0, 242, 254, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-ios);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.4);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--spring-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-ios);
  border-radius: var(--radius-pill);
  transition: width var(--spring-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  background: var(--bg-control);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--spring-fast);
  text-decoration: none;
  font-size: 1rem;
}

.icon-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.admin-lock-btn {
  position: relative;
}

.admin-lock-btn::after {
  content: 'PORTAL';
  position: absolute;
  top: -4px;
  right: -6px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.58rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION & HIGH-TECH HUD
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hud-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.28);
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 16px var(--accent-emerald); }
  100% { transform: scale(0.92); opacity: 0.8; }
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.typewriter-wrapper {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-height: 2.5rem;
  line-height: 1.4;
  margin: 0.35rem 0 0.65rem 0;
  contain: layout;
  word-break: break-word;
}

.typewriter-text {
  color: var(--accent-cyan);
  font-weight: 700;
  display: inline;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
  transition: none !important;
  will-change: contents;
}

.typewriter-cursor {
  display: inline-block;
  color: #818cf8;
  font-weight: 300;
  margin-left: 3px;
  line-height: 1;
  vertical-align: baseline;
  animation: smoothCursorBlink 1.05s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  user-select: none;
  font-family: monospace;
}

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

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.stat-suffix {
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Hero Right Visual: Real Photo in Apple Glass Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 410px;
}

.avatar-aurora-glow {
  position: absolute;
  inset: -16px;
  background: var(--gradient-ios);
  border-radius: var(--radius-xl);
  filter: blur(32px);
  opacity: 0.38;
  z-index: 0;
  animation: auroraPulse 6s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
  0% { transform: scale(0.96); opacity: 0.28; }
  100% { transform: scale(1.04); opacity: 0.48; }
}

.avatar-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass), var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--spring-smooth);
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.04);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  animation: floatChip 6s ease-in-out infinite alternate;
}

.chip-top {
  top: -16px;
  right: -16px;
  border-color: rgba(0, 242, 254, 0.4);
}

.chip-bottom {
  bottom: -16px;
  left: -16px;
  border-color: rgba(191, 90, 242, 0.4);
  animation-delay: -3s;
}

@keyframes floatChip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   3. HIGH-TECH INTERACTIVE TERMINAL HUD
   ========================================================================== */
.terminal-wrapper {
  max-width: 960px;
  margin: 3rem auto 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.15);
  font-family: var(--font-mono);
}

.terminal-header {
  background: rgba(16, 26, 48, 0.9);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 160px;
  color: #38bdf8;
  font-size: 0.88rem;
  line-height: 1.7;
}

.terminal-prompt {
  color: var(--accent-emerald);
}

.terminal-commands {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.term-cmd-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.term-cmd-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* ==========================================================================
   4. CREDENTIALS, LANGUAGES & EDUCATION SECTION
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.credential-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.languages-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.language-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.language-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.98rem;
}

.language-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
}

.cert-icon {
  font-size: 2rem;
}

.cert-title {
  font-size: 1.1rem;
  color: var(--text-heading);
  font-weight: 700;
}

.cert-issuer {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

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

/* ==========================================================================
   5. UNIQUE HIGH-TECH PROFESSIONAL SKILLS PODS
   ========================================================================== */
.skills-filter-nav {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--spring-fast);
  backdrop-filter: blur(14px);
  user-select: none;
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-ios);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4), 0 0 15px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
  min-height: 250px;
}

/* Unique High-Tech Skill Pod Card */
.tech-pod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  animation: techPodEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all var(--spring-smooth);
}

@keyframes techPodEntrance {
  0% { opacity: 0; transform: translateY(18px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tech-pod-card:hover {
  border-color: rgba(0, 242, 254, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.2);
}

.tech-pod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-pod-card:hover::before {
  opacity: 1;
}

.pod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pod-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.pod-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.15);
}

.pod-heading-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pod-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.pod-category-tag {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pod-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.35);
  color: var(--accent-emerald);
  white-space: nowrap;
}

/* Power Meter Bar */
.pod-meter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pod-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.pod-exp-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pod-pct-label {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.pod-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.pod-fill {
  height: 100%;
  background: linear-gradient(90deg, #0a84ff 0%, #00f2fe 70%, #30d158 100%);
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* Micro-Tags Matrix */
.pod-tags-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.pod-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

/* ==========================================================================
   PIN SECURITY MODAL (For Direct Master PIN Access)
   ========================================================================== */
.pin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--spring-smooth);
}

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

.pin-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 2.5rem 2.2rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(10, 132, 255, 0.3);
  text-align: center;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--spring-bounce);
  position: relative;
}

.pin-modal-backdrop.active .pin-modal-box {
  transform: scale(1) translateY(0);
}

.pin-shield-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a84ff 0%, #00f2fe 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4);
}

.pin-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.pin-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.pin-input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.pin-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.2rem;
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .pin-input {
  background: rgba(243, 245, 250, 0.9);
}

.pin-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.pin-toggle-eye {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.keypad-btn {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.keypad-btn:active {
  transform: scale(0.93);
  background: var(--accent-cyan);
  color: #060911;
}

.pin-error-banner {
  padding: 0.75rem;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* Shake Animation for Incorrect PIN */
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pin-modal-box.shake {
  animation: pinShake 0.4s ease-in-out;
}

/* ==========================================================================
   6. PROJECTS SHOWCASE
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-badge-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1.1rem;
}

.project-name {
  font-size: 1.35rem;
  color: var(--text-heading);
}

.project-description {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.tech-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

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

.view-case-study-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--spring-fast);
}

.view-case-study-btn:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   7. EXPERIENCE TIMELINE
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  border-radius: var(--radius-pill);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

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

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  border: 3px solid var(--bg-base);
}

.timeline-card {
  padding: 2.2rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.timeline-role {
  font-size: 1.35rem;
}

.timeline-company {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1.05rem;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.timeline-bullets li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   7.1 INTERACTIVE IN-PLACE EXPERIENCE STAGE
   ========================================================================== */
.exp-view-toggle-bar {
  display: inline-flex;
  background: var(--surface-translucent);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 4px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.exp-toggle-btn {
  padding: 0.5rem 1.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-toggle-btn:hover {
  color: var(--text-primary);
}

.exp-toggle-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
}

.exp-stage-wrapper {
  margin-top: 2.5rem;
  width: 100%;
}

.exp-stage-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .exp-stage-inner {
    grid-template-columns: 1fr;
  }
}

.exp-nav-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.exp-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--surface-translucent);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.exp-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(4px);
}

.exp-nav-item.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.18);
  transform: translateX(6px);
}

.exp-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
}

.exp-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp-nav-company {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
}

.exp-nav-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.exp-nav-year {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  white-space: nowrap;
}

.exp-content-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-active-stage-card {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: expStageNext3D 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass-bright);
  will-change: transform, opacity;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

@keyframes expStageNext3D {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expStagePrev3D {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.exp-active-stage-card .exp-header-anim {
  animation: expElementStagger 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.04s;
}

.exp-active-stage-card .exp-desc-anim {
  animation: expElementStagger 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.exp-active-stage-card .exp-resp-anim {
  animation: expElementStagger 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.16s;
}

.exp-active-stage-card .exp-stack-anim {
  animation: expElementStagger 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}

@keyframes expElementStagger {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.exp-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-translucent);
  border: 1px solid var(--border-glass);
}

.exp-stage-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.exp-stage-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.exp-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exp-nav-arrow:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.exp-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 45px;
  text-align: center;
}

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-ios);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================================
   9. "HIRE ME" INTERACTIVE MODAL & CONTACT SECTION
   ========================================================================== */
.hire-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--spring-smooth);
}

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

.hire-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(10, 132, 255, 0.25);
  transform: scale(0.94);
  transition: transform var(--spring-bounce);
  padding: 2.5rem;
  position: relative;
}

.hire-modal-backdrop.active .hire-modal-dialog {
  transform: scale(1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card-box {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.direct-contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
}

.contact-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-details p,
.contact-details a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent-cyan);
}

.social-links-row {
  display: flex;
  gap: 0.85rem;
}

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

.social-btn:hover {
  background: var(--accent-cyan);
  color: #060911;
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4);
}

/* Contact Form */
.contact-form-card {
  padding: 2.6rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: rgba(6, 9, 17, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: all var(--spring-fast);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: rgba(243, 245, 250, 0.8);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
}

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

.form-status {
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: var(--accent-emerald);
}

/* ==========================================================================
   10. CASE STUDY MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--spring-smooth);
}

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

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 242, 254, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--spring-bounce);
  position: relative;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--spring-fast);
}

.modal-close-btn:hover {
  background: var(--accent-coral);
  transform: rotate(90deg);
}

.modal-image-banner {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
}

.modal-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-area {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.modal-features-list li span {
  color: var(--accent-emerald);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Footer & Back to Top */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all var(--spring-smooth);
  box-shadow: var(--shadow-glass);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: #060911;
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-bio {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 5.2rem;
    left: 1.25rem;
    right: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all var(--spring-smooth);
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-toggle-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .modal-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PORTAL LINK IN TOPBAR
   ========================================================================== */
.nav-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--accent-cyan);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--spring-fast);
  backdrop-filter: blur(12px);
}

.nav-portal-btn:hover {
  background: var(--gradient-ios);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.nav-portal-btn .portal-icon {
  font-size: 0.9rem;
  transition: transform var(--spring-fast);
}

.nav-portal-btn:hover .portal-icon {
  transform: rotate(15deg) scale(1.1);
}

/* ==========================================================================
   KAWAII EILIK-STYLE DESKTOP ROBOT COMPANION ("Apon")
   Based on user's reference photo: Ceramic white egg body, coral/pink accents,
   "Apon" printed on chest, expressive OLED screen face, and playful scroll gestures!
   ========================================================================== */
.eilik-companion {
  position: fixed;
  bottom: 85px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Comic Speech Bubble */
.eilik-speech {
  position: relative;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 220px;
  text-align: right;
  margin-bottom: 8px;
  box-shadow: var(--shadow-lg), 0 4px 18px rgba(251, 113, 133, 0.15);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  opacity: 0.96;
  transform-origin: bottom right;
  animation: eilikBubbleBob 3s ease-in-out infinite;
  transition: all 0.25s ease;
}

.eilik-speech::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-highlight);
  border-bottom: 1px solid var(--border-highlight);
  transform: rotate(45deg);
}

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

/* Eilik Robot Figure Container */
.eilik-figure {
  width: 110px;
  height: 118px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
  animation: eilikFloatIdle 3.4s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eilik-figure:hover {
  transform: scale(1.08) translateY(-4px);
}

.eilik-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Gentle Egg Body Floating */
@keyframes eilikFloatIdle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.8deg);
  }
}

/* Floating Ellipse Shadow (No bulky plastic base plate!) */
.eilik-shadow {
  transform-origin: 80px 162px;
  animation: eilikShadowPulse 3.4s ease-in-out infinite;
}

@keyframes eilikShadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.18;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.10;
  }
}

/* ==========================================================================
   OLED SCREEN EXPRESSIONS (Happy default, Scrolling anime eyes, Wink on click)
   ========================================================================== */
.face-happy {
  display: block;
}

.face-scroll,
.face-wink {
  display: none;
}

/* When Scrolling: Show animated wide curious eyes & smiling mouth */
.eilik-companion.is-scrolling .face-happy {
  display: none;
}

.eilik-companion.is-scrolling .face-scroll {
  display: block;
  animation: eilikFaceGlow 0.8s ease-in-out infinite alternate;
}

@keyframes eilikFaceGlow {
  0% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)); }
  100% { filter: drop-shadow(0 0 7px rgba(255, 255, 255, 1)); }
}

/* When Clicked / Tricking: Show happy wink `> ^` */
.eilik-companion.is-winking .face-happy,
.eilik-figure.eilik-trick ~ .eilik-svg .face-happy,
.eilik-companion.is-winking .face-scroll {
  display: none !important;
}

.eilik-companion.is-winking .face-wink {
  display: block !important;
}

/* ==========================================================================
   HAND SCROLLING & WAVING GESTURES (Hand motions without random text chips!)
   ========================================================================== */
.arm-left {
  transform-origin: 44px 94px;
  transition: transform 0.3s ease;
}

.arm-right {
  transform-origin: 116px 94px;
  transition: transform 0.3s ease;
}

/* Playful wave / scroll motion with both hands when page is scrolled */
.eilik-companion.is-scrolling .eilik-figure {
  animation: eilikScrollJoy 0.45s ease-in-out infinite alternate;
}

@keyframes eilikScrollJoy {
  0% {
    transform: translateY(0px) rotate(-3deg) scale(1.02);
  }
  100% {
    transform: translateY(-5px) rotate(3deg) scale(1.04);
  }
}

.eilik-companion.is-scrolling .arm-left {
  animation: eilikArmScrollLeft 0.45s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.eilik-companion.is-scrolling .arm-right {
  animation: eilikArmScrollRight 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.22s infinite alternate;
}

@keyframes eilikArmScrollLeft {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  100% {
    transform: rotate(-32deg) translateY(-7px) translateX(-3px);
  }
}

@keyframes eilikArmScrollRight {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  100% {
    transform: rotate(32deg) translateY(-7px) translateX(3px);
  }
}

/* Joyful 360° Backflip Trick on Click */
.eilik-figure.eilik-trick {
  animation: eilikFlipTrick 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes eilikFlipTrick {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  35% { transform: translateY(-38px) scale(1.18) rotate(-180deg); }
  70% { transform: translateY(-10px) scale(1.08) rotate(-360deg); }
  100% { transform: translateY(0) scale(1) rotate(-360deg); }
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
  .eilik-companion {
    bottom: 75px;
    right: 12px;
  }
  .eilik-figure {
    width: 82px;
    height: 90px;
  }
  .eilik-speech {
    font-size: 0.75rem;
    max-width: 170px;
    padding: 0.35rem 0.7rem;
  }
}

/* =========================================================================
   SKILLS ROUND-SHAPE PRESENTATION & SCROLL ANIMATION STYLES
   ========================================================================= */

/* Mode Switcher Buttons */
.skills-mode-btn {
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--surface-translucent);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skills-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.skills-mode-btn.active {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

/* Common Control Bar for Orbit / Slider / Radar */
.orbit-hint-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  background: var(--surface-translucent);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.orbit-hint-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orbit-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.orbit-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.orbit-arrow-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.08);
}

.orbit-counter {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 55px;
  text-align: center;
}

/* -------------------------------------------------------------------------
   STYLE 1: 3D CURVED ORBITAL CAROUSEL (ARC COVERFLOW)
   ------------------------------------------------------------------------- */
.skills-orbit-stage {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 1rem 0 2rem;
  user-select: none;
}

.orbit-cylinder-viewport {
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

.orbit-cylinder-track {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.orbit-round-pod {
  position: absolute;
  width: 300px;
  height: 380px;
  border-radius: 24px;
  padding: 1.4rem;
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  cursor: pointer;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.orbit-round-pod.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.35), 0 20px 50px rgba(0, 0, 0, 0.7);
  opacity: 1 !important;
  pointer-events: auto !important;
}

.orbit-round-pod:not(.active):hover {
  border-color: rgba(0, 242, 254, 0.6);
  opacity: 0.95 !important;
}

.orbit-circle-badge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.orbit-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 2px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.2);
}

.orbit-circular-progress {
  width: 46px;
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-circular-progress svg {
  transform: rotate(-90deg);
}

.orbit-circular-progress .circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3.5;
}

.orbit-circular-progress .circle-fill {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.orbit-circular-progress .pct-text {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.orbit-dots-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.orbit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.orbit-dot:hover {
  background: rgba(0, 242, 254, 0.5);
  transform: scale(1.2);
}

.orbit-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

/* -------------------------------------------------------------------------
   STYLE 2: CIRCULAR CYBER RADAR ORBIT
   ------------------------------------------------------------------------- */
.skills-radar-stage {
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
}

.radar-display-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  min-height: 480px;
  padding: 1rem;
}

.radar-circle-arena {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(15, 23, 42, 0.6) 70%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.15), inset 0 0 35px rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: visible;
}

.radar-concentric-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.2);
  pointer-events: none;
}

.radar-concentric-ring.ring-1 { width: 140px; height: 140px; }
.radar-concentric-ring.ring-2 { width: 250px; height: 250px; }
.radar-concentric-ring.ring-3 { width: 340px; height: 340px; }

.radar-center-core {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, #0ea5e9, #0369a1);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  animation: corePulse 3s infinite alternate ease-in-out;
}

@keyframes corePulse {
  0% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); transform: scale(0.96); }
  100% { box-shadow: 0 0 40px rgba(0, 242, 254, 0.8); transform: scale(1.04); }
}

.core-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.radar-nodes-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-round-node {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(-50%, -50%);
}

.radar-round-node:hover {
  transform: translate(-50%, -50%) scale(1.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
  z-index: 10;
}

.radar-round-node.active {
  background: rgba(0, 242, 254, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.7);
  transform: translate(-50%, -50%) scale(1.25);
  z-index: 10;
}

.radar-hud-card {
  max-width: 420px;
  flex: 1;
  min-width: 300px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass-bright);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: hudReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hudReveal {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* -------------------------------------------------------------------------
   STYLE 3: CONTINUOUS INFINITE CURVED SLIDER
   ------------------------------------------------------------------------- */
.skills-curved-slider-stage {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  user-select: none;
}

.curved-viewport {
  width: 100%;
  overflow-x: hidden;
  cursor: grab;
  padding: 1rem 0 2rem;
}

.curved-viewport:active {
  cursor: grabbing;
}

.curved-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1rem;
}

.curved-round-card {
  width: 290px;
  flex-shrink: 0;
  border-radius: 28px;
  padding: 1.8rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  transition: all 0.35s ease;
}

.curved-round-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
}

/* =========================================================================
   LIGHT THEME INTERACTIVE ENHANCEMENTS & HIGH-CONTRAST VISIBILITY
   ========================================================================= */

/* 1. Skills Style 1: 3D Orbital Carousel Light Mode */
[data-theme="light"] .orbit-round-pod {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(2, 132, 199, 0.22);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .orbit-round-pod.active {
  background: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .orbit-round-pod:not(.active):hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.5);
}

[data-theme="light"] .orbit-icon-circle {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .orbit-circular-progress .circle-bg {
  stroke: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .orbit-circular-progress .pct-text {
  color: var(--text-heading);
}

[data-theme="light"] .pod-track {
  background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .pod-tags-matrix {
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .pod-tag-pill {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-secondary);
}

[data-theme="light"] .orbit-hint-bar {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .orbit-arrow-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="light"] .orbit-arrow-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

[data-theme="light"] .orbit-counter {
  color: var(--accent-blue);
}

[data-theme="light"] .orbit-dot {
  background: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .orbit-dot:hover {
  background: rgba(2, 132, 199, 0.5);
}

[data-theme="light"] .orbit-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

/* 2. Skills Style 2: Cyber Radar Light Mode */
[data-theme="light"] .radar-circle-arena {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.06) 0%, rgba(241, 245, 249, 0.85) 70%);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), inset 0 0 25px rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .radar-concentric-ring {
  border-color: rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .radar-round-node {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .radar-round-node:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .radar-round-node.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--accent-blue);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .radar-hud-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-glass-bright);
  box-shadow: var(--shadow-lg);
}

/* 3. Skills Style 3: Curved Slider Light Mode */
[data-theme="light"] .curved-round-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-glass-bright);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .curved-round-card:hover {
  background: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2);
}

/* 4. Controls, Badges & Interactive Timeline */
[data-theme="light"] .skills-mode-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="light"] .skills-mode-btn:hover {
  background: #ffffff;
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

[data-theme="light"] .skills-mode-btn.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.18);
}

[data-theme="light"] .site-header.scrolled .nav-container {
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow: var(--shadow-md), 0 0 25px rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .project-badge-pill {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .tech-pill {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-secondary);
}

[data-theme="light"] .exp-nav-item {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(203, 213, 225, 0.7);
}

[data-theme="light"] .exp-nav-item:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .exp-nav-item.active {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .exp-nav-year {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue);
}

[data-theme="light"] .exp-nav-arrow {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="light"] .exp-nav-arrow:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

[data-theme="light"] .modal-close-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="light"] .modal-close-btn:hover {
  background: var(--accent-coral);
  color: #ffffff;
  border-color: var(--accent-coral);
}

[data-theme="light"] .term-cmd-btn {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--accent-blue);
}

[data-theme="light"] .term-cmd-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

[data-theme="light"] .terminal-wrapper {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12), 0 0 25px rgba(2, 132, 199, 0.08);
}

@media (max-width: 768px) {
  .skills-orbit-stage {
    perspective: 800px;
    padding: 0.5rem 0 1.5rem;
  }
  .orbit-cylinder-viewport {
    height: 420px;
    perspective: 800px;
  }
  .orbit-cylinder-track,
  .orbit-round-pod {
    width: 260px;
    height: 360px;
    padding: 1.2rem;
  }
  .orbit-icon-circle {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .orbit-circular-progress {
    width: 40px;
    height: 40px;
  }
  .radar-circle-arena {
    width: 300px;
    height: 300px;
  }
  .radar-concentric-ring.ring-1 { width: 110px; height: 110px; }
  .radar-concentric-ring.ring-2 { width: 200px; height: 200px; }
  .radar-concentric-ring.ring-3 { width: 280px; height: 280px; }
  .radar-round-node { width: 46px; height: 46px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .orbit-cylinder-track,
  .orbit-round-pod {
    width: 240px;
    height: 340px;
    padding: 1rem;
  }
  .orbit-cylinder-viewport {
    height: 390px;
  }
  .orbit-dot {
    width: 7px;
    height: 7px;
  }
  .orbit-dot.active {
    width: 18px;
  }
}

/* ==========================================================================
   GMAIL-STYLE DIRECT EMAIL COMPOSE MODAL (ZERO REDIRECT)
   ========================================================================== */
.gmail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmail-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.gmail-compose-window {
  width: 580px;
  max-width: 95vw;
  background: rgba(13, 20, 36, 0.96) !important;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmail-modal-backdrop.active .gmail-compose-window {
  transform: translateY(0) scale(1);
}

.gmail-compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: rgba(0, 242, 254, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.compose-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.compose-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.compose-header-actions {
  display: flex;
  gap: 0.4rem;
}

.compose-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.compose-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.gmail-compose-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.compose-field-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.5rem;
  gap: 0.8rem;
}

.compose-field-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 85px;
  font-weight: 600;
}

.compose-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.compose-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.compose-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.compose-message-area {
  margin-top: 0.4rem;
}

.compose-textarea {
  width: 100%;
  min-height: 150px;
  max-height: 250px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.compose-textarea:focus {
  border-color: rgba(0, 242, 254, 0.5);
}

.gmail-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-gmail-send {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-ios);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--spring-fast);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-gmail-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-gmail-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tool-tag {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-gmail-discard {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn-gmail-discard:hover {
  opacity: 1;
}

.gmail-status-banner {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gmail-status-banner.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.gmail-status-banner.error {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f87171;
}

/* 5. Gmail Compose Modal Light Mode */
[data-theme="light"] .gmail-compose-window {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16), 0 0 30px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .gmail-compose-header {
  background: rgba(2, 132, 199, 0.06);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .compose-title {
  color: var(--text-heading);
}

[data-theme="light"] .compose-action-btn {
  color: var(--text-muted);
}

[data-theme="light"] .compose-action-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}

[data-theme="light"] .compose-field-row {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .compose-input {
  color: var(--text-primary);
}

[data-theme="light"] .compose-input::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .compose-textarea {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
}

[data-theme="light"] .compose-textarea:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
}

[data-theme="light"] .compose-textarea::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .gmail-compose-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .gmail-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .gmail-compose-window {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* ==========================================================================
   SYSTEM-WIDE UNIVERSAL RESPONSIVE ENHANCEMENTS & MOBILE ADAPTATIONS
   ========================================================================== */

/* 1. MOBILE CAPSULE NAVBAR & SLIDE-DOWN DRAWER */
.mobile-toggle-btn {
  display: none;
  background: var(--bg-control);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--spring-fast);
  touch-action: manipulation;
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

@media (max-width: 992px) {
  .site-header {
    top: 0.8rem;
    padding: 0 max(1rem, env(safe-area-inset-left));
  }
  .nav-container {
    padding: 0.55rem 1rem;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: calc(100% + 0.8rem);
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    background: rgba(10, 16, 30, 0.97);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 242, 254, 0.15);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
  }
  .nav-links.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 1.02rem;
    font-weight: 600;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
  }
  .nav-link::after {
    display: none;
  }
}

/* 2. HERO SECTION RESPONSIVENESS */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .typewriter-wrapper {
    justify-content: center;
    text-align: center;
    font-size: 1.35rem;
    min-height: 3.2rem;
  }
  .hero-bio {
    max-width: 100%;
    font-size: 1.05rem;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
  }
  .hero-visual {
    order: -1;
  }
  .avatar-card-wrapper {
    max-width: clamp(260px, 70vw, 360px);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 6rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }
  .typewriter-wrapper {
    font-size: 1.15rem;
    min-height: 3.4rem;
    justify-content: center;
    text-align: center;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .avatar-card-wrapper {
    max-width: 270px;
  }
  .floating-chip {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
  }
  .chip-top {
    top: -10px;
    right: -10px;
  }
  .chip-bottom {
    bottom: -10px;
    left: -10px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.2rem;
  }
  .stat-number {
    font-size: 1.7rem;
  }
}

/* 3. EXPERIENCE STAGE & TIMELINE */
@media (max-width: 992px) {
  .exp-stage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .exp-stage-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
    gap: 0.75rem;
    scrollbar-width: thin;
  }
  .exp-nav-item {
    flex-shrink: 0;
    min-width: 200px;
  }
}

/* 4. PROJECTS & CASE STUDY GRID */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    max-width: 100%;
  }
}

/* 5. MODAL DIALOGS RESPONSIVENESS */
.modal-backdrop, .hire-modal-backdrop, .pin-modal-backdrop {
  padding: 1rem;
}

@media (max-width: 768px) {
  .modal-dialog, .hire-modal-dialog, .pin-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 1.5rem 1.25rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .modal-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .modal-metrics-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .modal-actions .btn {
    width: 100% !important;
  }
}

/* 6. CONTACT SECTION */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-card, .contact-form-wrapper {
    padding: 1.5rem;
  }
  .contact-item {
    padding: 0.85rem;
  }
  .form-input, .form-textarea, .form-select {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

/* 7. EILIK INTERACTIVE COMPANION ROBOT */
@media (max-width: 768px) {
  .eilik-companion {
    bottom: 12px;
    right: 8px;
    transform: scale(0.68);
    transform-origin: bottom right;
    z-index: 990;
  }
  .eilik-speech {
    max-width: 180px;
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .eilik-companion {
    bottom: 8px;
    right: 6px;
    transform: scale(0.58);
  }
}

/* 8. FOOTER BAR */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 2.5rem 1rem;
  }
  .footer-credits {
    font-size: 0.82rem;
    line-height: 1.6;
  }
  .back-to-top-btn {
    bottom: 1.2rem;
    left: 1.2rem;
    width: 44px;
    height: 44px;
  }
}

