/* ==========================================================================
   NUR HIKMAH JAYA, S.P. - ADMIN STAFF & MASTER'S GENDER & DEVELOPMENT PORTFOLIO
   Luxury Cream & Maroon Design System with Glassmorphism & High Contrast
   ========================================================================== */

:root {
  /* Default Luxury Velvet Maroon & Silk Cream Theme (High-Contrast & Agricultural Theme) */
  --bg-primary: #180408;       /* Deep Velvet Maroon Background */
  --bg-secondary: #24070e;     /* Royal Dark Burgundy */
  --bg-card: rgba(46, 11, 19, 0.88); /* Frosted Velvet Maroon Glass */
  --bg-card-hover: rgba(68, 17, 29, 0.96);
  --glass-bg: rgba(255, 248, 238, 0.06);
  --glass-border: rgba(246, 206, 172, 0.32); /* Silk Cream Gold Border */
  --glass-border-hover: rgba(255, 240, 225, 0.8);
  
  --text-main: #FFFFFF;        /* Pure Crisp White Silk */
  --text-muted: #F7EBE1;       /* Warm Silk Ivory Cream (Maximum Readability) */
  --text-dim: #E2D1C1;         /* Bright Linen Cream */
  
  --accent-cyan: #F6CEAC;      /* Silk Cream Peach / Rosy Cream Highlight */
  --accent-blue: #FFD6A8;      /* Cream Gold Wheat Highlight */
  --accent-purple: #D44D6C;    /* Rose Maroon */
  --accent-pink: #E27B94;      /* Blossom Crimson */
  --accent-gold: #FFC870;      /* Radiant Harvest Wheat Gold */
  --accent-maroon: #800020;    /* Imperial Maroon */
  --accent-maroon-bright: #B52648; /* Vibrant Crimson Maroon */
  --accent-cream: #FAF5EE;     /* Silk Cream */
  
  --accent-glow: rgba(181, 38, 72, 0.35);
  --card-shadow: 0 16px 36px -12px rgba(12, 1, 3, 0.85);
  --navbar-bg: rgba(24, 4, 8, 0.94);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Silk Cream & Maroon Light Theme (Krem Sutra Terang & Marun Mewah) */
[data-theme="light"] {
  --bg-primary: #FAF5EE;        /* Pristine Warm Cream Canvas */
  --bg-secondary: #F4EBE0;      /* Soft Linen Cream */
  --bg-card: #FFFFFF;           /* Pure White Ivory Porcelain */
  --bg-card-hover: #FFFDF9;
  --glass-bg: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(128, 0, 32, 0.28); /* Crisp Maroon Line */
  --glass-border-hover: rgba(128, 0, 32, 0.7);
  --text-main: #26030B;         /* Deep Royal Velvet Maroon (14:1 Contrast) */
  --text-muted: #420A16;        /* Velvet Maroon Subtext (10:1 Contrast) */
  --text-dim: #661828;          /* Clear Rose Maroon (7:1 Contrast) */
  --accent-cyan: #800020;       /* Imperial Maroon Accent */
  --accent-blue: #9E1B32;       /* Crimson Wine */
  --accent-purple: #5A0819;     /* Deep Burgundy */
  --accent-pink: #A62B44;       /* Rose Maroon */
  --accent-gold: #A85A18;       /* Warm Harvest Amber Bronze */
  --accent-maroon: #800020;
  --accent-cream: #FAF5EE;
  --accent-glow: rgba(128, 0, 32, 0.22);
  --card-shadow: 0 16px 36px -12px rgba(80, 10, 22, 0.12);
  --navbar-bg: rgba(250, 245, 238, 0.96);
}

/* Warm Rose Wine & Golden Cream Theme */
[data-theme="sunset"] {
  --bg-primary: #21070e;
  --bg-secondary: #2f0b15;
  --bg-card: rgba(56, 14, 26, 0.88);
  --bg-card-hover: rgba(79, 21, 38, 0.96);
  --glass-bg: rgba(255, 248, 238, 0.06);
  --glass-border: rgba(246, 206, 172, 0.35);
  --glass-border-hover: rgba(255, 240, 225, 0.8);
  --text-main: #FFFFFF;
  --text-muted: #F7EBE1;
  --text-dim: #E2D1C1;
  --accent-cyan: #f2a679;
  --accent-blue: #f7c59f;
  --accent-purple: #c43d5b;
  --accent-gold: #FFC870;
  --accent-glow: rgba(242, 166, 121, 0.35);
  --navbar-bg: rgba(33, 7, 14, 0.94);
}

/* Midnight Obsidian & Maroon Theme */
[data-theme="oled"] {
  --bg-primary: #0a0103;
  --bg-secondary: #140307;
  --bg-card: rgba(26, 4, 10, 0.92);
  --bg-card-hover: rgba(40, 8, 17, 0.98);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(246, 206, 172, 0.32);
  --glass-border-hover: rgba(255, 240, 225, 0.8);
  --text-main: #FFFFFF;
  --text-muted: #F7EBE1;
  --text-dim: #E2D1C1;
  --accent-cyan: #F6CEAC;
  --accent-blue: #c43d5b;
  --accent-purple: #FFC870;
  --accent-glow: rgba(214, 77, 107, 0.35);
  --navbar-bg: rgba(10, 1, 3, 0.96);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  vertical-align: middle;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(240, 222, 198, 0.25);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   BACKGROUND CANVAS & MESH
   ========================================================================== */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
  background: 
    radial-gradient(circle 500px at 15% 20%, rgba(128, 0, 32, 0.22), transparent 70%),
    radial-gradient(circle 600px at 85% 65%, rgba(240, 222, 198, 0.09), transparent 70%),
    radial-gradient(circle 450px at 50% 85%, rgba(196, 61, 91, 0.15), transparent 70%);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

#cursor-dot, #cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-100px, -100px);
  will-change: transform;
}

#cursor-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  margin-top: -3.5px;
  margin-left: -3.5px;
  transition: opacity 0.2s;
}

#cursor-outline {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(240, 222, 198, 0.5);
  margin-top: -17px;
  margin-left: -17px;
  opacity: 0.45;
  transition: width 0.25s, height 0.25s, background-color 0.25s, opacity 0.25s, border-color 0.25s;
}

#cursor-outline.cursor-hover {
  width: 54px;
  height: 54px;
  margin-top: -27px;
  margin-left: -27px;
  background-color: rgba(128, 0, 32, 0.25);
  border-color: var(--accent-cyan);
  opacity: 0.85;
}

/* ==========================================================================
   GLASSMORPHISM & UTILITY CLASSES
   ========================================================================== */

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 280px at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(240, 222, 198, 0.08), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 45px -12px var(--accent-glow);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 15%, #FFF5EA 45%, #F6CEAC 75%, #FFD6A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD6A8 50%, #F6CEAC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }
.text-purple { color: var(--accent-purple); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(128, 0, 32, 0.35);
  border: 1px solid rgba(246, 206, 172, 0.45);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFFDF9;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

section {
  padding: 95px 0;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal), box-shadow var(--transition-normal);
}

#main-nav.nav-scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  color: #26030B;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 0 18px var(--accent-glow);
  flex-shrink: 0;
}

.logo-text {
  white-space: nowrap;
  font-weight: 800;
  color: #FFFFFF;
}

.logo-unhas-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(46, 11, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.nav-link {
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: rgba(181, 38, 72, 0.45);
}

.nav-link.active {
  color: var(--accent-cyan);
  border: 1px solid rgba(246, 206, 172, 0.35);
}

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

/* Audio SFX Toggle Button */
.audio-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.audio-btn .wave-bar {
  display: inline-block;
  width: 2.5px;
  height: 10px;
  background: var(--text-dim);
  border-radius: 2px;
}

.audio-btn.is-active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.audio-btn.is-active .wave-bar {
  background: var(--accent-cyan);
  animation: soundBars 0.8s ease-in-out infinite alternate;
}

.audio-btn.is-active .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.audio-btn.is-active .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.audio-btn.is-active .wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes soundBars {
  0% { height: 4px; }
  100% { height: 16px; }
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: linear-gradient(135deg, #800020, #a8203e);
  color: #fffdf9;
}

.theme-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.theme-dot:hover, .theme-dot.active {
  transform: scale(1.2);
  border-color: #ffffff;
}

.theme-dot[data-theme-choice="dark"] { background: #800020; border: 1.5px solid #f4ebd9; }
.theme-dot[data-theme-choice="light"] { background: #FAF5EE; border: 1.5px solid #800020; }
.theme-dot[data-theme-choice="sunset"] { background: #c43d5b; border: 1.5px solid #f4ebd9; }
.theme-dot[data-theme-choice="oled"] { background: #3b0713; border: 1.5px solid #c43d5b; }

.btn-hire-nav {
  padding: 7px 15px;
  background: linear-gradient(135deg, #800020, #a8203e);
  color: #fffdf9;
  border: 1px solid rgba(246, 206, 172, 0.45);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(128, 0, 32, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hire-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(168, 32, 62, 0.55);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-menu-drawer.open { display: flex; }

/* ==========================================================================
   HERO SECTION (WITH DEDICATED PROFILE PHOTO CARD)
   ========================================================================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 70px;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 48px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(128, 0, 32, 0.2);
  border: 1px solid rgba(240, 222, 198, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.pulse-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-maroon-bright);
}

.pulse-indicator::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-maroon-bright);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.typewriter-wrapper {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 20px;
}

#typewriter-text {
  color: var(--accent-cyan);
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 300;
  animation: blink 0.8s infinite;
}

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

.hero-description {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
}

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

.btn-primary-hero {
  padding: 14px 30px;
  background: linear-gradient(135deg, #9e1b32 0%, #800020 50%, #5c0b1b 100%);
  color: #fffdf9;
  border: 1px solid rgba(240, 222, 198, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(128, 0, 32, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(158, 27, 50, 0.55);
  border-color: rgba(240, 222, 198, 0.8);
}

.btn-secondary-hero {
  padding: 14px 26px;
  background: rgba(128, 0, 32, 0.18);
  border: 1px solid var(--glass-border);
  color: #fffdf9;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.btn-secondary-hero:hover {
  background: rgba(128, 0, 32, 0.35);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.tech-pills-marquee {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  padding: 6px 14px;
  background: rgba(128, 0, 32, 0.35);
  border: 1px solid rgba(246, 206, 172, 0.38);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFDF9;
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  color: #FFFFFF;
  background: rgba(181, 38, 72, 0.55);
  border-color: #F6CEAC;
  transform: translateY(-2px);
}

/* ==========================================================================
   PROFILE PHOTO CARD COMPONENT (CLEAN & DIGNIFIED PORTRAIT)
   ========================================================================== */

.hero-photo-col {
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-card-showcase {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 24px;
}

.profile-image-container {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #2b0811, #521122);
  border: 2px solid rgba(246, 206, 172, 0.5);
  box-shadow: 0 16px 36px rgba(15, 2, 4, 0.75);
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.profile-image-container:hover img {
  transform: scale(1.04);
}

.profile-card-details {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.profile-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.profile-card-sub {
  font-size: 0.9rem;
  color: #FFD6A8;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-card-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(128, 0, 32, 0.4);
  border: 1px solid rgba(246, 206, 172, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFDF9;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

#stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number-wrap {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-suffix {
  color: var(--accent-cyan);
  font-weight: 700;
  margin-left: 2px;
}

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

/* ==========================================================================
   BENTO ABOUT SECTION
   ========================================================================== */

.bento-about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-col-7 { grid-column: span 7; }
.bento-col-5 { grid-column: span 5; }
.bento-col-12 { grid-column: span 12; }

.bento-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-bio-p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.clock-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 8px 16px;
  background: rgba(128, 0, 32, 0.2);
  border: 1px solid rgba(240, 222, 198, 0.35);
  border-radius: 999px;
}

.clock-dot {
  width: 8px;
  height: 8px;
  background: #c43d5b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.value-item {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.value-item strong {
  color: #ffffff;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(128, 0, 32, 0.22);
  border: 1px solid rgba(240, 222, 198, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 22px;
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(6deg);
  background: rgba(128, 0, 32, 0.38);
}

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

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: rgba(128, 0, 32, 0.35);
  border: 1px solid rgba(246, 206, 172, 0.38);
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   PROJECTS SECTION & CARDS
   ========================================================================== */

.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #F7EBE1;
  background: rgba(128, 0, 32, 0.28);
  border: 1px solid rgba(246, 206, 172, 0.35);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  color: #26030B;
  background: #F6CEAC;
  border-color: #F6CEAC;
  box-shadow: 0 4px 18px rgba(246, 206, 172, 0.4);
  font-weight: 800;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-preview-wrap {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.project-pill-cat {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(181, 38, 72, 0.45), rgba(128, 0, 32, 0.45));
  border-radius: 999px;
  color: #FFFFFF;
  border: 1px solid rgba(246, 206, 172, 0.5);
}

.project-pill-year {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #FFFFFF;
  background: rgba(128, 0, 32, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 206, 172, 0.38);
  font-weight: 600;
}

.project-metric-banner {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(128, 0, 32, 0.3);
  border: 1px solid rgba(246, 206, 172, 0.38);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.project-metric-banner .metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFD6A8;
}

.project-metric-banner .metric-lbl {
  font-size: 0.82rem;
  color: #FFFFFF;
  font-weight: 600;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-card-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.proj-tag {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: rgba(128, 0, 32, 0.38);
  border: 1px solid rgba(246, 206, 172, 0.4);
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
}

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

.btn-detail-proj {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.btn-detail-proj:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   SKILLS MATRIX SECTION
   ========================================================================== */

.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category-card {
  padding: 30px;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-years {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.skill-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.skill-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-highlight {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */

.timeline-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 38px;
}

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

.timeline-content {
  padding: 28px;
}

.timeline-period-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 4px 12px;
  background: rgba(128, 0, 32, 0.2);
  border: 1px solid rgba(240, 222, 198, 0.35);
  border-radius: 999px;
  margin-bottom: 12px;
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-company {
  margin-bottom: 14px;
}

.timeline-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tag {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: rgba(128, 0, 32, 0.35);
  border: 1px solid rgba(246, 206, 172, 0.38);
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   TERMINAL CLI SECTION
   ========================================================================== */

.terminal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(24, 4, 8, 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(240, 222, 198, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(128, 0, 32, 0.25);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid var(--glass-border);
}

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

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #FFFDF9;
  line-height: 1.65;
}

.terminal-output {
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terminal-banner {
  color: var(--accent-cyan);
  font-size: 0.65rem;
  line-height: 1.1;
  white-space: pre;
}

.terminal-line { line-height: 1.6; }
.cmd-highlight { color: #FFD6A8; font-weight: 700; }
.prompt-user { color: #F6CEAC; font-weight: 700; margin-right: 8px; }
.entered-cmd { color: #ffffff; font-weight: 700; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(246, 206, 172, 0.2);
  padding-top: 12px;
}

.terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #FFFFFF;
}

/* ==========================================================================
   TESTIMONIALS & FAQ
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #800020, #A8203E);
  color: #FFFDF9;
  border: 1.5px solid rgba(246, 206, 172, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-trigger {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.02rem;
  color: #ffffff;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-content {
  max-height: 250px;
  padding: 0 26px 24px 26px;
}

.faq-item.open {
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 36px;
}

.contact-info-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
  margin-bottom: 28px;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.contact-tile:hover {
  background: rgba(128, 0, 32, 0.22);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(128, 0, 32, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.contact-form-panel {
  padding: 34px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(128, 0, 32, 0.15);
}

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

.btn-submit-form {
  padding: 16px 28px;
  background: linear-gradient(135deg, #B52648, #800020);
  border: 1px solid rgba(246, 206, 172, 0.45);
  box-shadow: 0 10px 30px rgba(128, 0, 32, 0.45);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(181, 38, 72, 0.6);
  border-color: #F6CEAC;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#main-footer {
  border-top: 1px solid var(--glass-border);
  padding: 55px 0 30px 0;
  background: rgba(20, 3, 7, 0.95);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.footer-brand h4 {
  font-size: 1.3rem;
  font-weight: 800;
}

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

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

.social-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(128, 0, 32, 0.3);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFDF9;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: var(--accent-cyan);
  color: #26030B;
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-window {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

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

.modal-close-btn:hover {
  background: var(--accent-cyan);
  color: #000000;
}

.modal-header-hero {
  padding: 38px 32px 28px 32px;
  position: relative;
}

.modal-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proj-metric-box {
  padding: 16px;
  text-align: center;
  border-radius: 12px;
}

.modal-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-footer-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  padding: 12px 20px;
  background: rgba(36, 7, 14, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(246, 206, 172, 0.4);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--accent-cyan); }
.toast-success .toast-icon { color: var(--accent-cyan); }
.toast-error { border-color: #ef4444; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info { border-color: var(--accent-gold); }
.toast-info .toast-icon { color: var(--accent-gold); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* ==========================================================================
   MOBILE & RESPONSIVE MASTER DESIGN (ULTRA-POLISHED)
   ========================================================================== */

/* Tablet & Medium Screen Devices (Laptops, Tablets, Split-screen Windows) */
@media (max-width: 1180px) {
  #main-nav {
    height: 68px;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .nav-links-wrap, .btn-hire-nav, .theme-selector {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-drawer {
    top: 68px;
    background: rgba(24, 4, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(246, 206, 172, 0.35);
    padding: 20px 16px;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }

  .mobile-menu-drawer .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(128, 0, 32, 0.25);
    border: 1px solid rgba(246, 206, 172, 0.25);
    color: #FFFFFF;
  }

  .mobile-menu-drawer .nav-link:hover, .mobile-menu-drawer .nav-link.active {
    background: rgba(181, 38, 72, 0.45);
    border-color: #F6CEAC;
    color: #FFFDF9;
  }

  .mobile-drawer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 4px 6px;
    border-top: 1px solid var(--glass-border);
    margin-top: 6px;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-text-col {
    align-items: center;
    order: 2;
  }

  .hero-photo-col {
    order: 1;
    margin-bottom: 10px;
  }

  .services-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-col-7, .bento-col-5 {
    grid-column: span 12;
  }

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

/* Smartphone & Mobile Devices */
@media (max-width: 768px) {
  /* Layout & Container */
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 65px 0;
  }

  /* Disable Custom Cursor on Mobile */
  #cursor-dot, #cursor-outline {
    display: none !important;
  }

  /* Typography Adjustments */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    line-height: 1.22;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Navbar on Small Mobile */
  #main-nav {
    height: 64px;
  }

  .nav-logo {
    font-size: 0.95rem;
    gap: 8px;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .logo-unhas-sub {
    font-size: 0.6rem;
  }

  .mobile-menu-drawer {
    top: 64px;
  }

  .nav-controls {
    gap: 8px;
  }

  .audio-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
    margin-top: 6px;
  }

  /* Hero Section on Mobile */
  #hero {
    padding-top: 86px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .status-pill {
    font-size: 0.74rem;
    padding: 6px 14px;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.35;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .typewriter-wrapper {
    font-size: 1rem;
    min-height: 38px;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }

  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.92rem;
    text-align: center;
  }

  .tech-pills-marquee {
    gap: 6px;
    justify-content: center;
  }

  .tech-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  /* Profile Photo Card on Mobile */
  .profile-card-showcase {
    max-width: 320px;
    padding: 18px;
    margin: 0 auto;
  }

  .profile-image-container {
    max-width: 260px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .profile-card-name {
    font-size: 1.25rem;
  }

  .profile-card-sub {
    font-size: 0.82rem;
  }

  .profile-card-tags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .profile-status-bar {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  /* Stats Grid on Mobile */
  #stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .stat-number-wrap {
    font-size: 2rem;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  /* Bento About on Mobile */
  .bento-about-grid {
    gap: 14px;
  }

  .bento-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .bento-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .bento-bio-p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  .clock-display {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .values-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .value-item {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Services Grid on Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 22px 18px;
    min-height: auto;
    border-radius: 16px;
  }

  .service-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .service-icon-box svg {
    width: 24px;
    height: 24px;
  }

  .service-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .service-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  /* Projects Filter on Mobile (Horizontal Smooth Swipe) */
  .projects-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 24px;
    justify-content: flex-start;
    gap: 8px;
    scrollbar-width: none;
  }

  .projects-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 7px 14px;
    flex-shrink: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    border-radius: 16px;
  }

  .project-preview-wrap {
    height: 185px;
  }

  .project-card-body {
    padding: 18px 16px;
  }

  .project-card-title {
    font-size: 1.12rem;
  }

  .project-card-tagline {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .project-tags-wrap {
    margin-bottom: 16px;
  }

  /* Skills Matrix on Mobile */
  .skills-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-category-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .skill-cat-header {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  .skill-item {
    gap: 4px;
  }

  .skill-name {
    font-size: 0.86rem;
  }

  .skill-years, .skill-pct {
    font-size: 0.74rem;
  }

  .skill-highlight {
    font-size: 0.75rem;
  }

  /* Experience Timeline on Mobile */
  .timeline-container {
    padding-left: 20px;
  }

  .timeline-container::before {
    left: 5px;
  }

  .timeline-dot {
    left: -20px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-width: 2.5px;
  }

  .timeline-content {
    padding: 20px 16px;
    border-radius: 16px;
  }

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

  .timeline-company {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }

  .timeline-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  /* Terminal CLI on Mobile */
  .terminal-wrapper {
    border-radius: 14px;
  }

  .terminal-banner {
    font-size: 0.52rem;
    line-height: 1.15;
    overflow-x: auto;
  }

  .terminal-body {
    padding: 16px 14px;
    font-size: 0.82rem;
  }

  .terminal-output {
    max-height: 280px;
  }

  .terminal-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .t-chip {
    font-size: 0.72rem;
    padding: 4px 8px;
    background: rgba(128, 0, 32, 0.22);
    border: 1px solid rgba(240, 222, 198, 0.35);
    border-radius: 6px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
  }

  /* Testimonials & FAQ on Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .faq-trigger {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-content {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .faq-item.open .faq-content {
    padding: 0 18px 18px 18px;
  }

  /* Contact Section on Mobile */
  .contact-layout {
    gap: 20px;
  }

  .contact-info-panel, .contact-form-panel {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .contact-methods {
    margin-top: 16px;
    margin-bottom: 20px;
    gap: 12px;
  }

  .contact-tile {
    padding: 12px 14px;
    border-radius: 10px;
  }

  /* Crucial iOS Safari fix: font-size 16px prevents viewport auto-zoom */
  .form-input, .form-textarea {
    font-size: 16px !important;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .form-textarea {
    min-height: 110px;
  }

  .btn-submit-form {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* Footer on Mobile */
  #main-footer {
    padding: 40px 0 24px 0;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .footer-socials {
    justify-content: center;
  }

  /* Modals on Mobile */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-window {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .modal-header-hero {
    padding: 28px 18px 18px 18px;
  }

  .modal-body {
    padding: 18px 16px;
    gap: 16px;
  }

  .modal-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-footer-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .modal-footer-actions button, .modal-footer-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Very Small Mobile Screens (< 380px) */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 1.85rem;
  }
  .stat-number-wrap {
    font-size: 1.7rem;
  }
  .profile-card-showcase {
    max-width: 260px;
  }
}

/* ==========================================================================
   HIGH-CONTRAST LIGHT THEME REFINEMENT (SILK CREAM & LUXURY MAROON)
   Guarantees 100% Text Legibility Across All UI Components
   ========================================================================== */

[data-theme="light"] {
  color: #26030B;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #26030B 10%, #661828 50%, #800020 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text-alt {
  background: linear-gradient(135deg, #3D0713 0%, #800020 50%, #A8203E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .status-pill,
[data-theme="light"] .section-badge {
  background: rgba(128, 0, 32, 0.08);
  border-color: rgba(128, 0, 32, 0.35);
  color: #800020;
}

[data-theme="light"] .hero-headline,
[data-theme="light"] .section-title,
[data-theme="light"] .bento-card-title,
[data-theme="light"] .service-title,
[data-theme="light"] .project-card-title,
[data-theme="light"] .timeline-role,
[data-theme="light"] .profile-card-name {
  color: #26030B;
}

[data-theme="light"] .hero-description,
[data-theme="light"] .bento-bio-p,
[data-theme="light"] .service-desc,
[data-theme="light"] .project-card-tagline,
[data-theme="light"] .timeline-desc,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .value-item,
[data-theme="light"] .text-muted {
  color: #420A16;
}

[data-theme="light"] .text-dim {
  color: #661828;
}

[data-theme="light"] .tech-pill,
[data-theme="light"] .proj-tag,
[data-theme="light"] .service-tag,
[data-theme="light"] .timeline-tag {
  background: rgba(128, 0, 32, 0.07);
  border-color: rgba(128, 0, 32, 0.28);
  color: #3D0713;
  font-weight: 700;
}

[data-theme="light"] .tech-pill:hover,
[data-theme="light"] .proj-tag:hover {
  background: #800020;
  color: #FAF5EE;
  border-color: #800020;
}

[data-theme="light"] .filter-btn {
  color: #420A16;
  background: rgba(128, 0, 32, 0.06);
  border-color: rgba(128, 0, 32, 0.25);
  font-weight: 700;
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
  color: #FAF5EE;
  background: #800020;
  border-color: #800020;
  box-shadow: 0 4px 18px rgba(128, 0, 32, 0.3);
}

[data-theme="light"] .project-pill-cat {
  background: #800020;
  color: #FAF5EE;
  border-color: #800020;
}

[data-theme="light"] .project-pill-year {
  background: rgba(128, 0, 32, 0.08);
  color: #3D0713;
  border-color: rgba(128, 0, 32, 0.25);
}

[data-theme="light"] .project-metric-banner {
  background: rgba(128, 0, 32, 0.06);
  border-color: rgba(128, 0, 32, 0.22);
}

[data-theme="light"] .project-metric-banner .metric-val {
  color: #800020;
}

[data-theme="light"] .project-metric-banner .metric-lbl {
  color: #420A16;
}

[data-theme="light"] .stat-number-wrap {
  color: #26030B;
}

[data-theme="light"] .stat-label {
  color: #420A16;
}

[data-theme="light"] .terminal-wrapper {
  background: #FAF5EE;
  border-color: rgba(128, 0, 32, 0.35);
  box-shadow: 0 16px 36px rgba(128, 0, 32, 0.15);
}

[data-theme="light"] .terminal-header {
  background: #F2E6D8;
  border-bottom: 1px solid rgba(128, 0, 32, 0.2);
}

[data-theme="light"] .terminal-body {
  color: #26030B;
}

[data-theme="light"] .terminal-title {
  color: #661828;
}

[data-theme="light"] .prompt-user {
  color: #800020;
}

[data-theme="light"] .entered-cmd {
  color: #26030B;
}

[data-theme="light"] .t-chip {
  background: rgba(128, 0, 32, 0.08);
  border-color: rgba(128, 0, 32, 0.25);
  color: #800020;
  font-weight: 600;
}

[data-theme="light"] .modal-window {
  background: #FAF5EE;
  color: #26030B;
  border-color: rgba(128, 0, 32, 0.35);
}

[data-theme="light"] .modal-close-btn {
  background: #F0E2D2;
  color: #26030B;
  border-color: rgba(128, 0, 32, 0.25);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #FFFFFF;
  color: #26030B;
  border-color: rgba(128, 0, 32, 0.28);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: #800020;
  background: #FFFDF9;
}

[data-theme="light"] .contact-tile {
  background: #FFFFFF;
  border-color: rgba(128, 0, 32, 0.2);
}

[data-theme="light"] .contact-tile:hover {
  background: rgba(128, 0, 32, 0.08);
  border-color: #800020;
}

[data-theme="light"] #main-footer {
  background: #F4EBE0;
  border-top-color: rgba(128, 0, 32, 0.2);
}

[data-theme="light"] .social-pill {
  background: #FFFFFF;
  border-color: rgba(128, 0, 32, 0.25);
  color: #800020;
}

[data-theme="light"] .social-pill:hover {
  background: #800020;
  color: #FAF5EE;
  border-color: #800020;
}
