/* ==========================================================================
   Besufkad Tekalign — Modern High-Tech Portfolio Stylesheet
   Designed with Glassmorphism, Ambient Mesh Lighting, & 10 Aesthetic Themes
   ========================================================================== */

/* ==========================================================================
   Theme Palettes (10 Rich Dev & Aesthetic Styles)
   ========================================================================== */

/* Cyber Cyan (Default) */
:root,
:root[data-theme="cyber-cyan"] {
  --bg: #07090e;
  --bg-secondary: #0b0f19;
  --panel: rgba(14, 19, 31, 0.72);
  --panel-hover: rgba(20, 28, 46, 0.85);
  --section-bg: rgba(12, 17, 29, 0.55);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  
  --text: #f0f6fc;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  
  --border: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 242, 254, 0.35);
  
  --accent: #00f2fe;
  --accent-2: #4facfe;
  --accent-emerald: #00f5a0;
  --accent-violet: #8a2be2;
  
  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #00f5a0 100%);
  --gradient-accent: linear-gradient(90deg, #00f2fe, #4facfe);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #00f2fe 55%, #00f5a0 100%);
  --gradient-dark: linear-gradient(180deg, #07090e 0%, #0b0f19 100%);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.18);
  --neon-glow: 0 0 20px rgba(0, 242, 254, 0.25), inset 0 0 10px rgba(0, 242, 254, 0.05);
  
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;
  --max-width: 1140px;
  
  --input-bg: rgba(7, 11, 20, 0.65);
  --header-bg: rgba(7, 9, 14, 0.82);
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* GitHub Dark Theme */
:root[data-theme="github-dark"] {
  --bg: #0D1117;
  --bg-secondary: #161B22;
  --panel: rgba(22, 27, 34, 0.85);
  --panel-hover: rgba(33, 38, 45, 0.95);
  --section-bg: rgba(18, 22, 28, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #C9D1D9;
  --text-secondary: #8B949E;
  --muted: #6E7681;
  --border: #30363D;
  --border-glow: rgba(57, 211, 83, 0.35);
  --accent: #39D353;
  --accent-2: #26A641;
  --accent-emerald: #2EA44F;
  --gradient-primary: linear-gradient(135deg, #238636 0%, #2EA44F 50%, #39D353 100%);
  --gradient-accent: linear-gradient(90deg, #238636, #39D353);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #39D353 70%, #2EA44F 100%);
  --shadow-glow: 0 0 30px rgba(57, 211, 83, 0.2);
  --input-bg: #0D1117;
  --header-bg: rgba(13, 17, 23, 0.88);
}

/* GitHub Light Theme */
:root[data-theme="github-light"],
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-secondary: #F6F8FA;
  --panel: rgba(246, 248, 250, 0.9);
  --panel-hover: #FFFFFF;
  --section-bg: rgba(246, 248, 250, 0.75);
  --glass: rgba(0, 0, 0, 0.03);
  --glass-strong: rgba(0, 0, 0, 0.06);
  --text: #24292F;
  --text-secondary: #57606A;
  --muted: #8C959F;
  --border: #D0D7DE;
  --border-glow: rgba(45, 164, 78, 0.4);
  --accent: #2DA44E;
  --accent-2: #2C974B;
  --accent-emerald: #116329;
  --gradient-primary: linear-gradient(135deg, #2DA44E 0%, #2C974B 100%);
  --gradient-accent: linear-gradient(90deg, #2DA44E, #116329);
  --gradient-text: linear-gradient(135deg, #24292F 20%, #2DA44E 80%, #116329 100%);
  --shadow-glow: 0 0 25px rgba(45, 164, 78, 0.15);
  --input-bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.9);
}

/* Midnight Navy Theme */
:root[data-theme="navy-dark"] {
  --bg: #0A0E1A;
  --bg-secondary: #11182D;
  --panel: rgba(17, 24, 45, 0.85);
  --panel-hover: rgba(24, 34, 64, 0.95);
  --section-bg: rgba(14, 20, 38, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #E2E6EE;
  --text-secondary: #7A93C4;
  --muted: #556B99;
  --border: #1F2C52;
  --border-glow: rgba(96, 165, 250, 0.35);
  --accent: #60A5FA;
  --accent-2: #3D5A99;
  --accent-emerald: #38BDF8;
  --gradient-primary: linear-gradient(135deg, #3D5A99 0%, #60A5FA 100%);
  --gradient-accent: linear-gradient(90deg, #3D5A99, #60A5FA);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #60A5FA 70%, #93C5FD 100%);
  --shadow-glow: 0 0 30px rgba(96, 165, 250, 0.2);
  --input-bg: #0A0E1A;
  --header-bg: rgba(10, 14, 26, 0.88);
}

/* Emerald Forest Theme */
:root[data-theme="forest-dark"] {
  --bg: #0F1712;
  --bg-secondary: #17231B;
  --panel: rgba(23, 35, 27, 0.85);
  --panel-hover: rgba(32, 49, 38, 0.95);
  --section-bg: rgba(18, 28, 22, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #DCE8DC;
  --text-secondary: #7FA875;
  --muted: #5A7E52;
  --border: #22382A;
  --border-glow: rgba(16, 185, 129, 0.35);
  --accent: #10B981;
  --accent-2: #4A7A3D;
  --accent-emerald: #34D399;
  --gradient-primary: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --gradient-accent: linear-gradient(90deg, #059669, #34D399);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #10B981 70%, #34D399 100%);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
  --input-bg: #0F1712;
  --header-bg: rgba(15, 23, 18, 0.88);
}

/* Steel Slate Theme */
:root[data-theme="steel-dark"] {
  --bg: #14181C;
  --bg-secondary: #1E242A;
  --panel: rgba(30, 36, 42, 0.85);
  --panel-hover: rgba(43, 53, 63, 0.95);
  --section-bg: rgba(24, 29, 34, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #E4E7EA;
  --text-secondary: #8A99A8;
  --muted: #64748B;
  --border: #2E3740;
  --border-glow: rgba(148, 163, 184, 0.35);
  --accent: #94A3B8;
  --accent-2: #54687A;
  --accent-emerald: #CBD5E1;
  --gradient-primary: linear-gradient(135deg, #475569 0%, #94A3B8 100%);
  --gradient-accent: linear-gradient(90deg, #475569, #CBD5E1);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #CBD5E1 70%, #94A3B8 100%);
  --shadow-glow: 0 0 30px rgba(148, 163, 184, 0.2);
  --input-bg: #14181C;
  --header-bg: rgba(20, 24, 28, 0.88);
}

/* Cherry Velvet Theme */
:root[data-theme="cherry-dark"] {
  --bg: #1A0E0E;
  --bg-secondary: #2B1414;
  --panel: rgba(43, 20, 20, 0.85);
  --panel-hover: rgba(62, 28, 28, 0.95);
  --section-bg: rgba(32, 16, 16, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #FFD6D6;
  --text-secondary: #FF9999;
  --muted: #AA5A5A;
  --border: #421D1D;
  --border-glow: rgba(244, 63, 94, 0.35);
  --accent: #F43F5E;
  --accent-2: #E8484B;
  --accent-emerald: #FB7185;
  --gradient-primary: linear-gradient(135deg, #E11D48 0%, #FB7185 100%);
  --gradient-accent: linear-gradient(90deg, #E11D48, #FB7185);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #FB7185 70%, #FDA4AF 100%);
  --shadow-glow: 0 0 30px rgba(244, 63, 94, 0.2);
  --input-bg: #1A0E0E;
  --header-bg: rgba(26, 14, 14, 0.88);
}

/* Lavender Dark Theme */
:root[data-theme="lavender-dark"] {
  --bg: #17141F;
  --bg-secondary: #231E30;
  --panel: rgba(35, 30, 48, 0.85);
  --panel-hover: rgba(48, 41, 66, 0.95);
  --section-bg: rgba(27, 23, 38, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #E4DBF7;
  --text-secondary: #C4B0EA;
  --muted: #8E78B8;
  --border: #322B45;
  --border-glow: rgba(168, 85, 247, 0.35);
  --accent: #A855F7;
  --accent-2: #9B7ED9;
  --accent-emerald: #C084FC;
  --gradient-primary: linear-gradient(135deg, #9333EA 0%, #C084FC 100%);
  --gradient-accent: linear-gradient(90deg, #9333EA, #C084FC);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #C084FC 70%, #E879F9 100%);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.2);
  --input-bg: #17141F;
  --header-bg: rgba(23, 20, 31, 0.88);
}

/* Matcha Dark Theme */
:root[data-theme="matcha-dark"] {
  --bg: #1C1F1A;
  --bg-secondary: #262B22;
  --panel: rgba(38, 43, 34, 0.85);
  --panel-hover: rgba(51, 58, 45, 0.95);
  --section-bg: rgba(30, 34, 28, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --text: #E8E4D5;
  --text-secondary: #A8C686;
  --muted: #738A5A;
  --border: #363E30;
  --border-glow: rgba(132, 204, 22, 0.35);
  --accent: #84CC16;
  --accent-2: #7BA05B;
  --accent-emerald: #A3E635;
  --gradient-primary: linear-gradient(135deg, #65A30D 0%, #A3E635 100%);
  --gradient-accent: linear-gradient(90deg, #65A30D, #A3E635);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #BEF264 70%, #A3E635 100%);
  --shadow-glow: 0 0 30px rgba(132, 204, 22, 0.2);
  --input-bg: #1C1F1A;
  --header-bg: rgba(28, 31, 26, 0.88);
}

/* Lavender Light Theme */
:root[data-theme="lavender-light"] {
  --bg: #F8F6FC;
  --bg-secondary: #EBE6F6;
  --panel: rgba(235, 230, 246, 0.9);
  --panel-hover: #FFFFFF;
  --section-bg: rgba(235, 230, 246, 0.75);
  --glass: rgba(0, 0, 0, 0.03);
  --glass-strong: rgba(0, 0, 0, 0.06);
  --text: #201438;
  --text-secondary: #7E63B8;
  --muted: #9E88C8;
  --border: #DED5F0;
  --border-glow: rgba(147, 51, 234, 0.35);
  --accent: #9333EA;
  --accent-2: #9B7ED9;
  --accent-emerald: #7E22CE;
  --gradient-primary: linear-gradient(135deg, #9333EA 0%, #C084FC 100%);
  --gradient-accent: linear-gradient(90deg, #9333EA, #C084FC);
  --gradient-text: linear-gradient(135deg, #201438 20%, #9333EA 80%, #7E22CE 100%);
  --shadow-glow: 0 0 25px rgba(147, 51, 234, 0.15);
  --input-bg: #FFFFFF;
  --header-bg: rgba(248, 246, 252, 0.9);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 15% 15%, rgba(0, 242, 254, 0.08) 0px, transparent 45%),
    radial-gradient(at 85% 20%, rgba(138, 43, 226, 0.06) 0px, transparent 45%),
    radial-gradient(at 50% 85%, rgba(0, 245, 160, 0.06) 0px, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root[data-theme="github-light"] body,
:root[data-theme="lavender-light"] body,
:root[data-theme="light"] body {
  background-image: 
    radial-gradient(at 15% 15%, rgba(45, 164, 78, 0.06) 0px, transparent 45%),
    radial-gradient(at 85% 20%, rgba(37, 99, 235, 0.05) 0px, transparent 45%),
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 38px 38px, 38px 38px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-emerald);
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.25;
}

/* Three.js Background Canvas Layer */
#three-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#three-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Ambient glow orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.15;
}
.orb-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
  opacity: 0.12;
}

/* Developer Code Grid Watermarks */
.dev-watermarks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  opacity: 0.28;
  user-select: none;
}
.dev-tag {
  position: absolute;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--glass);
  border: 1px solid var(--border);
}
.tag-top-left { top: 90px; left: 24px; }
.tag-top-right { top: 90px; right: 24px; }
.tag-mid-left { top: 50%; left: 20px; transform: rotate(-90deg); transform-origin: left center; }
.tag-bottom-right { bottom: 30px; right: 24px; }

@media (max-width: 1024px) {
  .dev-watermarks {
    display: none;
  }
}

main {
  position: relative;
  z-index: 10;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Generic Glass Panel */
.glass-panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.nav {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.logo-accent {
  color: var(--accent);
}

/* Status Indicator */
.status-indicator-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 4px 2px;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-admin-link {
  padding: 5px 12px !important;
  border-radius: var(--radius-full);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  font-size: 0.84rem !important;
}
.nav-admin-link:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent);
}

/* Theme Palette Switcher & Menu */
.theme-menu-wrapper {
  position: relative;
}

.theme-palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.theme-palette-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.palette-icon {
  font-size: 0.95rem;
}
.navbar-palette-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}
.p-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.chevron-down {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.theme-palette-btn[aria-expanded="true"] .chevron-down {
  transform: rotate(180deg);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  background: var(--panel);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: dropdownFadeIn 0.2s ease-out;
}
.theme-dropdown[hidden] {
  display: none !important;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.theme-count-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--glass);
  color: var(--accent);
  border: 1px solid var(--border);
}

.theme-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.theme-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}
.theme-option-btn:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.theme-option-btn.active {
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.1);
  color: var(--text);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--gradient-primary);
  color: #040810;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.28);
}
.btn.primary:hover {
  box-shadow: 0 12px 32px rgba(0, 242, 254, 0.45);
  color: #040810;
}

.btn.outline {
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn.outline:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-arrow {
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: var(--text);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.download-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-emerald);
  box-shadow: 0 8px 24px rgba(0, 245, 160, 0.2);
  color: var(--accent-emerald);
  text-decoration: none;
}
.download-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 80px 20px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-copy {
  max-width: 680px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.name {
  font-size: clamp(32px, 5.2vw, 56px);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.headline {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.bio {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}

/* Hero Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.stat-box {
  text-align: left;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-logo-badge {
  width: 42px;
  height: 42px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.hero-logo-badge:hover {
  transform: translateY(-4px) scale(1.12);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 14px var(--accent-glow);
}
.hero-logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Aside (Avatar & Robot Card) */
.hero-aside {
  width: 100%;
}

.avatar-card {
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-aura-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-emerald), var(--border-glow), var(--accent));
  animation: auraRotate 6s linear infinite;
  filter: blur(8px);
  opacity: 0.75;
}
@keyframes auraRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-pic {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #0b0f19;
}
.profile-pic.missing {
  opacity: 0.8;
}

.avatar-meta {
  margin-bottom: 18px;
}
.avatar-name {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 4px;
}
.avatar-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.avatar-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
}
.pulse-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ==========================================================================
   Dual-Domain Engineering Bento Hub (Software & Mechanical)
   Activity Heatmap, CAD Specs, and Interactive Stack Pills
   ========================================================================== */
.pro-bento-widget {
  position: relative;
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pro-bento-widget:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Compact Segmented Icon Navigation Bar */
.bento-tab-header.icon-nav-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.48);
  border-bottom: 1px solid var(--border);
  padding: 3px;
  gap: 3px;
  align-items: center;
}
.bento-tab-btn {
  flex: 1;
  padding: 5px 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.tab-icon-svg {
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}
.bento-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.bento-tab-btn:hover .tab-icon-svg {
  transform: scale(1.15);
  stroke: var(--accent);
}
.bento-tab-btn.active {
  color: #040810;
  background: var(--gradient-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.25);
}
.bento-tab-btn.active .tab-icon-svg {
  stroke: #040810;
  transform: scale(1.05);
}
.tab-label {
  letter-spacing: 0.02em;
}

/* Tab Panes */
.bento-tab-pane {
  display: none;
  padding: 14px;
  animation: fadeInPane 0.25s ease forwards;
}
.bento-tab-pane.active {
  display: block;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Streak Banner */
.bento-streak-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  text-align: center;
}
.streak-stat {
  display: flex;
  flex-direction: column;
}
.streak-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.streak-sub {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Heatmap Grid */
.bento-heatmap-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.heatmap-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 3px;
}
.leg-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}
.l-0 { background: rgba(255, 255, 255, 0.06); }
.l-1 { background: rgba(0, 242, 254, 0.25); }
.l-2 { background: rgba(0, 242, 254, 0.5); }
.l-3 { background: rgba(0, 242, 254, 0.75); }
.l-4 { background: var(--accent); }

.bento-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.heat-cell {
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}
.heat-cell:hover {
  transform: scale(1.35);
  box-shadow: 0 0 6px var(--accent);
  z-index: 2;
}

.software-quick-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}
.soft-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Tab 2: Specs List */
.bento-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
}
.spec-icon {
  font-size: 1.05rem;
  margin-top: 1px;
}
.spec-info {
  display: flex;
  flex-direction: column;
}
.spec-name {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
}
.spec-detail {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}

/* Tab 2: Tech Stack Logo-Only Chips */
.logo-only-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.bento-logo-chip {
  height: 44px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.bento-logo-chip:hover {
  transform: translateY(-3px) scale(1.12);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 12px var(--accent-glow);
}
.bento-logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 245, 160, 0.06);
  border: 1px solid rgba(0, 245, 160, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  font-weight: 600;
  text-align: left;
}
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  flex-shrink: 0;
  animation: beaconPulse 2s infinite ease-in-out;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-header h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 10px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.about, .skills, .experience, .projects, .contact {
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--section-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   About Section & AI Assistant
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.about-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-left h3 {
  font-size: 1.4rem;
  color: var(--text);
}
.about-left p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}
.info-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* AI Widget */
.ai-widget {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.ai-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.ai-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}
.ai-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.messages {
  max-height: 250px;
  min-height: 180px;
  overflow-y: auto;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  max-width: 88%;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
}
.msg.user {
  align-self: flex-end;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--text);
  font-weight: 500;
}
.msg.bot {
  align-self: flex-start;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
}
.msg.bot strong {
  color: var(--accent);
  font-weight: 700;
}
.msg.bot em {
  color: var(--text-secondary);
}

/* Chat Code Blocks & Inline Code */
.chat-code-block {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #00F2FE;
}
.chat-inline-code {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* Typing Dots Animation */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.ai-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}
.quick-btn {
  border: 1px solid var(--border);
  background: var(--glass);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.quick-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.ai-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.ai-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}
.send-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  border: none;
  color: #040810;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   Logo-Only Skills Grid & Technologies (No Text Clutter)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 18px;
  margin-top: 24px;
  justify-items: center;
}

.skill-logo-tile {
  position: relative;
  width: 90px;
  height: 90px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skill-logo-tile:hover {
  transform: translateY(-8px) scale(1.1);
  border-color: var(--logo-color, var(--accent));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 22px var(--logo-color, var(--accent-glow));
  z-index: 5;
}
.skill-logo-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.skill-logo-tile:hover .skill-logo-icon-wrap {
  transform: scale(1.12);
}

/* Floating Glass Tooltip */
.skill-logo-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(4, 8, 16, 0.96);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.skill-logo-tile:hover .skill-logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Logo Marquee */
.skills-marquee {
  margin-top: 30px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 14px 0;
  border: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 32px;
  align-items: center;
  animation: marquee 20s linear infinite;
}
.marquee-logo-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.marquee-logo-item:hover {
  transform: scale(1.3);
  opacity: 1;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Timeline / Experience Section
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-emerald), var(--border));
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-item .time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.timeline-item .event {
  background: var(--panel);
  backdrop-filter: blur(14px);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.timeline-item .event:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}
.timeline-item .event h4 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 6px;
}
.timeline-item .event p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.project-card h4 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.project-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.contact-form-card {
  padding: 32px;
}
.contact-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}
.feedback-text {
  margin-top: 12px;
  font-size: 0.94rem;
  min-height: 22px;
}

.contact-links {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.contact-links h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.contact-links .muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.social-pills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-pills-list p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.social-pills-list p:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--border-glow);
  transform: translateX(4px);
}
.social-pills-list a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 36px 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.back-to-top {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.85rem;
}
.back-to-top:hover {
  color: var(--accent);
}

/* ==========================================================================
   Admin Page Specific Styles
   ========================================================================== */
.admin-page {
  min-height: 100vh;
  padding: 24px 18px;
}
.admin-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-section {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-section h2 {
  margin: 0 0 14px;
  color: var(--text);
}
.admin-form label {
  display: block;
  margin: 10px 0 6px;
  color: var(--text-secondary);
  font-weight: 600;
}
.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  resize: vertical;
}
.list-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.entry-card {
  position: relative;
  padding: 20px 20px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.remove-entry {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.entry-card .input-group {
  margin-bottom: 12px;
}
.upload-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.secondary-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    max-width: 100%;
  }
  .cta-row {
    justify-content: center;
  }
  .hero-stats-row {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .badges {
    justify-content: center;
  }
  .hero-aside {
    max-width: 420px;
    margin: 0 auto;
  }

  .status-indicator-badge {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    background: var(--panel);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .about-grid,
  .contact-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 50px 16px 40px;
  }
  .name {
    font-size: 2rem;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn,
  .download-btn {
    width: 100%;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions button {
    width: 100%;
  }
  .about, .skills, .experience, .projects, .contact {
    padding: 24px 16px;
    border-radius: var(--radius);
  }
  .social-pills-list p {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .avatar-glow-ring { animation: none; }
  * { transition: none !important; }
}