:root {
  --bg: #050505;
  --fg: #e3e0f2;
  --glass: rgba(26, 26, 39, 0.7);
  --border: rgba(255, 255, 255, 0.05);
  --dim: rgba(255, 255, 255, 0.4);
  --font-h: 'Space Grotesk', sans-serif;
  --font-p: 'Inter', sans-serif;
  --font-m: monospace;
  --max-width: 1400px;

  /* Theme Variable System */
  --accent-dark: #A3FF12;
  --accent-light: #1f7a00;
  --accent: var(--accent-dark);
  --neon: var(--accent); /* Deprecated/mapped to accent to preserve dark mode compatibility */

  --bg-dark: #0a0a0a;
  --text-dark: #eaeaea;
  --bg-light: #f5f5f5;
  --text-light: #111;
  --text-strong: #222;
  --text-secondary: #333;
  --card-light: #ffffff;
}

body.light-mode {
  --accent: var(--accent-light);
  --neon: var(--accent);
  --bg: var(--bg-light);
  --fg: var(--text-light);
  --glass: var(--card-light);
  --border: rgba(0, 0, 0, 0.1);
  --dim: var(--text-secondary);
  background: var(--bg-light);
  color: var(--text-light);
}

/* Remove all glow effects globally in light mode ONLY */
body.light-mode * {
  text-shadow: none !important;
}

body.light-mode .img-glow,
body.light-mode .blob {
  display: none !important;
}


/* Global Light Mode Text Fixes */
body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4, 
body.light-mode h5, 
body.light-mode h6,
body.light-mode .card-title,
body.light-mode .t-head h3,
body.light-mode .front-content h3,
body.light-mode .title,
body.light-mode .name,
body.light-mode .white-icon {
  color: #111 !important;
}

body.light-mode p,
body.light-mode .desc,
body.light-mode .t-desc,
body.light-mode .c-info small,
body.light-mode .dim,
body.light-mode .text-sm,
body.light-mode .text-xs,
body.light-mode .status,
body.light-mode .filename {
  color: var(--text-secondary) !important;
  opacity: 1 !important;
}

body.light-mode .c-link,
body.light-mode .c-info span,
body.light-mode .btn-link,
body.light-mode .btn-private,
body.light-mode .exp-date,
body.light-mode .nav-link,
body.light-mode .ftr-link,
body.light-mode .pill,
body.light-mode .badge {
  color: var(--text-strong) !important;
  opacity: 1 !important;
}

/* Fix Status Text specially */
body.light-mode .topbar .status {
  color: #111 !important;
}
body.light-mode .topbar .status .text-neon {
  color: var(--accent) !important;
  font-weight: 600;
}
body.light-mode .status-line .text-neon {
  color: var(--accent) !important;
  font-weight: 600;
}
body.light-mode .text-neon,
body.light-mode .accent,
body.light-mode .status span {
  color: var(--accent);
  font-weight: 600;
}

/* Only keep neon for the cursor or explicitly allowed items, otherwise neon variables handle it */
body.light-mode .cursor {
  color: var(--neon) !important;
}

/* Cards Normal State in Light Mode */
body.light-mode .term-window,
body.light-mode .flip-card-front,
body.light-mode .flip-card-back {
  background: var(--card-light) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--border) !important;
}

body.light-mode .term-header {
  background: rgba(0, 0, 0, 0.03) !important;
  border-bottom: 1px solid var(--border) !important;
}

body.light-mode .sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid var(--border);
}

body.light-mode .c-link {
  background: var(--card-light) !important;
  border: 1px solid var(--border) !important;
}

body.light-mode .blob {
  opacity: 0.1;
  filter: blur(150px);
}

/* ----------------------------------------------------
   3. HOVER STATE IMPROVEMENT (CRITICAL UX) 
   ---------------------------------------------------- */

/* Interactive Text / Links Hover */
body.light-mode .c-link:hover,
body.light-mode .c-link:hover .c-info span,
body.light-mode .c-link:hover .c-info small,
body.light-mode .btn-link:hover,
body.light-mode .nav-link:hover,
body.light-mode .ftr-link:hover,
body.light-mode .pill:hover,
body.light-mode .badge:hover {
  color: #000 !important;
  border-color: var(--accent) !important;
}

/* Fix icons + small green elements */
body.light-mode .indicator,
body.light-mode .timeline-dot,
body.light-mode .t-dot,
body.light-mode .dot.green,
body.light-mode .t-item.active .t-dot {
  background: var(--accent) !important;
  box-shadow: none !important;
  border-color: #fff !important;
}

/* Fix buttons */
body.light-mode .btn,
body.light-mode .download-btn,
body.light-mode .fab,
body.light-mode #submit-btn {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.light-mode .btn:hover,
body.light-mode .download-btn:hover,
body.light-mode .fab:hover,
body.light-mode #submit-btn:hover {
  background: #166400 !important;
  color: #fff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Card Hover Enhancements */
body.light-mode .term-window:hover,
body.light-mode .focus-card:hover,
body.light-mode .contact-card:hover,
body.light-mode .c-link:hover {
  background: #eaeaea !important;
  transform: scale(1.01) !important;
  transition: all 0.2s ease !important;
  border-color: var(--accent) !important;
}

/* FLIP CARD BUG FIXES (LIGHT MODE ONLY) */
body.light-mode .flip-card {
  will-change: transform;
}

body.light-mode .flip-card:not(:hover) .flip-card-inner {
  transform: rotateY(0deg) !important;
}

body.light-mode .flip-card:hover .flip-card-front,
body.light-mode .flip-card:hover .flip-card-back {
  background: #eaeaea !important;
}

body.light-mode .flip-card-front,
body.light-mode .flip-card-back {
  background: #ffffff !important;
  color: #111 !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

body.light-mode .flip-card-back {
  transform: rotateY(180deg) !important;
}

body.light-mode .btn-link:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Recruiter HUD Mode */
.hud-active .download-btn {
  animation: hud-target 1.5s infinite alternate !important;
  border-width: 3px !important;
  box-shadow: 0 0 25px var(--neon) !important;
}

.hud-active .status-line,
.hud-active .mode-label {
  animation: hud-highlight 2s infinite !important;
}

@keyframes hud-target {
  from {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--neon);
  }

  to {
    transform: scale(1.15);
    box-shadow: 0 0 45px var(--neon);
    border-color: #fff;
  }
}

@keyframes hud-highlight {

  0%,
  100% {
    text-shadow: 0 0 10px var(--neon);
  }

  50% {
    text-shadow: 0 0 25px var(--neon), 0 0 40px var(--neon);
    transform: translateY(-2px);
  }
}

/* Background HUD Overlay */
body.hud-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(rgba(190, 245, 18, 0.01) 0px, transparent 1px, transparent 2px);
  pointer-events: none;
  z-index: 1000;
  animation: hud-scan 10s linear infinite;
}

@keyframes hud-scan {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 100%;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-p);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Blobs */
.blob {
  position: fixed;
  width: 600px;
  height: 600px;
  filter: blur(120px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
  animation: floatBlob 15s infinite alternate;
  pointer-events: none;
}
@media (max-width: 768px) {
  .blob {
    display: none;
  }
}

.blob-purple {
  background: #dcb8ff;
  top: -10%;
  right: -10%;
}

.blob-blue {
  background: #343441;
  bottom: 10%;
  right: 20%;
  animation-delay: -5s;
}

.blob-pink {
  background: #ffaced;
  top: 40%;
  left: 10%;
  animation-delay: -10s;
}

@keyframes floatBlob {
  to {
    transform: translate(30px, -50px) scale(1.1);
  }
}

/* Utils */
.text-neon {
  color: var(--neon);
}

.dim {
  color: var(--dim);
}

.text-sm {
  font-size: 0.8rem;
  font-family: var(--font-m);
}

.text-xs {
  font-size: 0.65rem;
  font-family: var(--font-m);
  text-transform: uppercase;
}

.text-2xl {
  font-size: 1.8rem;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

.pt-4 {
  padding-top: 1rem;
}

.border-t {
  border-top: 1px solid var(--border);
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.5rem;
}

.icon-lg {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 250px;
  background: rgba(18, 18, 30, 0.95);
  backdrop-filter: blur(30px);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  padding: 0 2rem 2rem;
}

.brand h1 {
  font-family: var(--font-h);
  font-weight: 700;
}

.brand p.version {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--neon);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav-links {
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  color: var(--dim);
  text-decoration: none;
  font-family: var(--font-h);
  text-transform: uppercase;
  font-size: 0.8rem;
  border-left: 3px solid transparent;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--neon);
}

.nav-link span {
  font-size: 1.2rem;
}

.mobile-btn {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  background: var(--glass);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-btn {
    display: flex !important;
    left: 1rem !important;
    right: auto !important;
    top: 0.75rem !important;
  }
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2rem;
  backdrop-filter: blur(10px);
  z-index: 900;
  font-family: var(--font-m);
  font-size: 0.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - 250px);
}

@media (max-width: 768px) {
  .topbar {
    left: 0 !important;
    width: 100% !important;
    justify-content: flex-end;
    padding: 0 1.25rem 0 4rem;
  }
}

.topbar .status {
  font-size: 1.1rem;
  font-weight: bold;
  font-style: normal;
  color: var(--dim);
  letter-spacing: 1px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}
@media (max-width: 768px) {
  .actions {
    margin-left: 0;
    gap: 0.8rem;
  }
}

.separator {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* Main */
.content {
  margin-left: 250px;
  padding: 4rem;
}

section {
  min-height: 100vh;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--dim), transparent);
}

/* Terminal Windows */
.term-window {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(26, 26, 39, 0.7), rgba(13, 13, 25, 0.5));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.term-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(52, 52, 65, 0.4);
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

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

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

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.filename {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--dim);
  margin-left: 0.5rem;
}

.term-body {
  padding: 2rem;
}

/* Hero */
.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.greeting {
  font-family: var(--font-m);
  color: var(--neon);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.name {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.title {
  font-family: var(--font-h);
  font-style: italic;
  color: var(--dim);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  min-height: 30px;
}

.cursor {
  display: inline-block;
  width: 6px;
  height: 1.2rem;
  background: var(--neon);
  margin-left: 5px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.desc {
  color: var(--dim);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  transition: 0.4s;
}

.desc:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 1rem 2rem;
  background: transparent;
  border: 2.5px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-h);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 4px;
  letter-spacing: 1px;
}

.download-btn:hover {
  transform: scale(1.08);
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 30px var(--neon);
  animation: soft-pulse 2s infinite;
}

@keyframes soft-pulse {
  0% {
    box-shadow: 0 0 10px var(--neon);
  }

  50% {
    box-shadow: 0 0 30px var(--neon);
  }

  100% {
    box-shadow: 0 0 10px var(--neon);
  }
}

.view-works {
  display: flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  gap: 0.6rem;
  transition: 0.3s;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.view-works::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: 0.3s;
}

.view-works:hover {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(190, 245, 18, 0.4);
}

.view-works:hover::after {
  width: 100%;
}

.view-works:hover .icon-arrow {
  transform: translateX(8px);
}

.hero-img-box {
  position: relative;
  width: clamp(160px, 40vw, 240px);
  height: clamp(160px, 40vw, 240px);
  animation: float 6s infinite ease-in-out;
  transition: 0.5s;
  cursor: crosshair;
}

.hero-img-box:hover {
  transform: scale(1.05);
}

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

.img-glow {
  position: absolute;
  inset: -5px;
  filter: blur(30px);
  background: var(--neon);
  opacity: 0.2;
  border-radius: 20px;
  transition: 0.5s;
}

.hero-img-box:hover .img-glow {
  opacity: 0.35;
  filter: blur(40px);
}

.img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 2px solid rgba(190, 245, 18, 0.25);
  overflow: hidden;
  padding: 6px;
  background: var(--glass);
  transition: 0.5s;
  position: relative;
  z-index: 2;
}

.hero-img-box:hover .img-wrap {
  border-color: var(--neon);
  box-shadow: 0 0 25px rgba(190, 245, 18, 0.2);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(0.8);
  transition: 0.5s;
}

.hero-img-box:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Topbar Enhancements */
.actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.action-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-icon {
  cursor: pointer;
  color: var(--dim);
  transition: 0.3s;
  font-size: 1.4rem;
}

.nav-icon:hover {
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon);
}

.mode-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(190, 245, 18, 0.3);
}

/* Window Panes (Dropdowns) */
.window-pane {
  position: absolute;
  top: 150%;
  right: 0;
  width: 220px;
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(15px);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: paneIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-title {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--neon);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  letter-spacing: 1px;
}

.pane-content {
  font-size: 0.85rem;
  font-family: var(--font-p);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.toggle {
  width: 32px;
  height: 16px;
  background: #333;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.toggle::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: #666;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle.active {
  background: var(--neon);
}

.toggle.active::after {
  left: 18px;
  background: var(--bg);
}

.hidden {
  display: none !important;
}

/* Skills Dashboard */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.grid.col-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.full {
  grid-column: 1 / -1;
}

.term-window {
  background: linear-gradient(135deg, rgba(26, 26, 39, 0.7), rgba(13, 13, 25, 0.5));
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s, box-shadow 0.4s;
}

.term-window:hover {
  transform: translateY(-8px);
  border-color: rgba(190, 245, 18, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.term-body {
  padding: 2.5rem;
}

.term-body.compact {
  padding: 1.2rem;
}

.card-title {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  letter-spacing: 1px;
  color: #fff;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: var(--font-m);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pill:hover {
  transform: scale(1.1) translateY(-3px);
  background: rgba(190, 245, 18, 0.05);
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(190, 245, 18, 0.2);
  color: #fff;
}

.pill i {
  font-size: 1.1rem;
  filter: grayscale(0.2);
  transition: 0.3s;
}

.pill:hover i {
  filter: grayscale(0);
  transform: rotate(5deg);
}

.pill.dim {
  color: var(--fg);
}

.pill.accent {
  border-color: rgba(190, 245, 18, 0.2);
  color: var(--neon);
}

.pill.accent:hover {
  background: var(--neon);
  color: var(--bg);
}

/* Experience Split Layout */
.exp-container {
  position: relative;
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.v-line {
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
  z-index: 1;
}

/* Focus Card Premium Scroll Effect (Shared across Experience, Skills, Education) */
.focus-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  opacity: 0.5;
  transform: scale(0.96) !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.focus-card.active {
  opacity: 1 !important;
  transform: scale(1.03) !important;
  box-shadow: 0 0 40px rgba(190, 245, 18, 0.15) !important;
  border-color: rgba(190, 245, 18, 0.2) !important;
  z-index: 10 !important;
}

.focus-card:hover {
  transform: translateY(-5px) scale(1.035) !important;
  opacity: 1 !important;
  box-shadow: 0 0 50px rgba(190, 245, 18, 0.2) !important;
  border-color: rgba(190, 245, 18, 0.3) !important;
  z-index: 20 !important;
}

/* Dedicated Education Card Pop-Up Hover Effect & Layout Fix */
.edu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.edu-card .term-body {
  flex: 1;
  height: auto;
  justify-content: flex-start;
}

/* overrides flex-col 100% height bug */
.edu-card.active {
  border-color: rgba(190, 245, 18, 0.3) !important;
  box-shadow: 0 0 15px rgba(190, 245, 18, 0.1) !important;
}

.edu-card:hover {
  transform: translateY(-8px) scale(1.07) !important;
  border-color: rgba(190, 245, 18, 0.6) !important;
  box-shadow: 0 15px 50px rgba(190, 245, 18, 0.3) !important;
  z-index: 30 !important;
}

/* FLIP CARD MECHANICS (Vault) */
.flip-card {
  perspective: 1500px;
  cursor: pointer;
  height: 343px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
}

@media (max-width: 768px) {
  .flip-card {
    height: 220px;
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 39, 0.8), rgba(13, 13, 25, 0.7));
  border: 1px solid rgba(180, 255, 0, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(180, 255, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card:hover .flip-card-front, .flip-card:hover .flip-card-back {
  border-color: rgba(180, 255, 0, 0.5);
  box-shadow: 0 10px 40px rgba(180, 255, 0, 0.15);
}

.flip-card:hover .flip-card-inner {
  transform: scale(1.03) rotateX(2deg) rotateY(2deg);
}

.flip-card.flipped:hover .flip-card-inner {
  transform: scale(1.03) rotateX(2deg) rotateY(182deg);
}

.project-preview {
  width: 100%;
  height: 140px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .project-preview {
    height: 110px;
  }
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s;
  filter: brightness(0.85);
}

.flip-card:hover .project-preview img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.front-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  overflow: hidden;
}

.front-content h3 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.3;
}

.back-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.scroll-text {
  max-height: 140px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Ensure Custom scrollbar for scroll-text */
.scroll-text::-webkit-scrollbar {
  width: 4px;
}
.scroll-text::-webkit-scrollbar-thumb {
  background: rgba(180, 255, 0, 0.3);
  border-radius: 4px;
}

.card-ftr {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PROJECT BUTTONS (VIEW CODE / PRIVATE) */
.btn-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #00f0ff;
  border-radius: 6px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  text-decoration: none;
}

.btn-link:hover {
  background: #00f0ff;
  color: black;
  box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
  transform: scale(1.05);
}

.btn-private {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #ff4d6d;
  border-radius: 6px;
  color: #ff4d6d;
  letter-spacing: 1px;
  box-shadow: 0 0 6px rgba(255, 77, 109, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  cursor: not-allowed;
}

.btn-private:hover {
  background: #ff4d6d;
  color: black;
  box-shadow: 0 0 15px #ff4d6d, 0 0 30px #ff4d6d;
}

.projects .grid {
  gap: 1.5rem;
}

.t-item {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
  transform: scale(0.96);
  cursor: pointer;
  z-index: 2;
}

.t-item.active {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(190, 245, 18, 0.15);
  border-color: rgba(190, 245, 18, 0.2);
}

.t-item:hover {
  transform: translateY(-5px) scale(1.035);
  opacity: 1;
}

.t-dot {
  position: absolute;
  left: -2.7rem;
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  border: 3px solid var(--bg);
  transition: all 0.4s ease;
  z-index: 3;
}

.t-item.active .t-dot {
  background: var(--neon);
  box-shadow: 0 0 15px var(--neon);
  transform: scale(1.2);
}

.t-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.t-head h3 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  color: #fff;
}

.badge {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(190, 245, 18, 0.3);
  color: var(--neon);
  font-family: var(--font-m);
  font-size: 0.75rem;
  border-radius: 20px;
  background: rgba(190, 245, 18, 0.05);
  backdrop-filter: blur(5px);
  text-shadow: 0 0 8px rgba(190, 245, 18, 0.6);
  box-shadow: 0 0 10px rgba(190, 245, 18, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  cursor: default;
}

.badge:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: rgba(190, 245, 18, 1);
  background: rgba(190, 245, 18, 0.15);
  color: #fff;
  text-shadow: 0 0 15px var(--neon);
  box-shadow: 0 0 20px rgba(190, 245, 18, 0.5);
}

.t-item.active .badge.bright {
  border-color: rgba(190, 245, 18, 0.6);
}

.t-loc {
  font-family: var(--font-m);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.t-desc {
  font-size: 0.95rem;
  color: var(--dim);
  line-height: 1.7;
  font-weight: 300;
  transition: all 0.3s ease;
}

.t-desc:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.exp-date {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(190, 245, 18, 0.4);
  border-radius: 8px;
  background: rgba(190, 245, 18, 0.1);
  text-shadow: 0 0 10px rgba(190, 245, 18, 0.5);
  box-shadow: 0 0 10px rgba(190, 245, 18, 0.1);
  transition: all 0.3s ease;
  cursor: default;
}

.exp-date:hover {
  transform: scale(1.05);
  border-color: rgba(190, 245, 18, 0.8);
  text-shadow: 0 0 15px var(--neon);
  box-shadow: 0 0 15px rgba(190, 245, 18, 0.3);
}

/* Projects */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.3s;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tech {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-ftr {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  font-family: var(--font-m);
  font-style: italic;
  color: var(--dim);
  font-size: 0.7rem;
}

.links {
  display: flex;
  gap: 1rem;
}

.btn-link {
  font-family: var(--font-h);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--dim);
  transition: 0.3s;
}

.btn-private {
  font-family: var(--font-m);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--dim);
  opacity: 0.6;
  cursor: not-allowed;
  user-select: none;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.hover-neon:hover {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
  transform: translateX(3px);
  display: inline-block;
}

/* Sidebar Footer */
.sidebar-ftr {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.ftr-link {
  color: var(--dim);
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
}

.ftr-link:hover {
  color: var(--neon);
  transform: translateY(-3px);
}

.ftr-link i {
  font-size: 1.2rem;
}

.ftr-link span {
  font-size: 1.4rem;
}

/* Contact Section Premium */
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding-bottom: 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.7;
  transform: scale(0.95);
  position: relative;
}

.contact-card.focused {
  opacity: 1;
  transform: scale(1.05);
  z-index: 10;
  border-color: rgba(190, 245, 18, 0.4);
  box-shadow: 0 0 30px rgba(190, 245, 18, 0.1);
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.04) !important;
  border-color: rgba(190, 245, 18, 0.8) !important;
  box-shadow: 0 10px 40px rgba(190, 245, 18, 0.25) !important;
  opacity: 1 !important;
  z-index: 20 !important;
}

/* Status Line */
.status-line {
  font-family: var(--font-m);
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--neon);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Icons & Links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s;
  color: #fff;
}

.c-link:hover {
  background: rgba(190, 245, 18, 0.08);
  border-color: rgba(190, 245, 18, 0.3);
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.c-link i {
  font-size: 1.8rem;
  transition: 0.3s;
  width: 30px;
  text-align: center;
}

.c-link .material-symbols-outlined {
  font-size: 2rem;
  color: var(--neon);
}

/* Brand Colors */
.white-icon {
  color: #fff !important;
}

.youtube-red {
  color: #FF0000 !important;
}

.linkedin-blue {
  color: #0077B5 !important;
}

.c-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.c-info span {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-h);
  color: #fff;
}

.c-info small {
  color: var(--dim);
  font-family: var(--font-m);
  font-size: 0.85rem;
}

.c-link:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.c-link:hover .youtube-red {
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

/* Form UI */
.hire-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hire-form input,
.hire-form textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-m);
  font-size: 1rem;
  transition: 0.4s;
  outline: none;
  backdrop-filter: blur(5px);
}

.hire-form input:hover,
.hire-form textarea:hover,
.hire-form input:focus,
.hire-form textarea:focus {
  border-color: var(--neon);
  background: rgba(190, 245, 18, 0.05);
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(190, 245, 18, 0.15);
}

/* Premium Button */
#submit-btn {
  position: relative;
  overflow: hidden;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 2px;
  background: transparent;
  border: 2px solid var(--neon);
  color: var(--neon);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

#submit-btn:hover {
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 40px var(--neon), inset 0 0 10px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
  animation: pulse 1.5s infinite;
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  animation: none;
}

.terminal-arrow {
  margin-left: 8px;
  font-size: 0.9rem;
  vertical-align: middle;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px var(--neon);
  }

  50% {
    box-shadow: 0 0 40px var(--neon);
  }

  100% {
    box-shadow: 0 0 20px var(--neon);
  }
}

.form-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem 0;
  animation: contactFadeIn 0.6s ease-out;
}

@keyframes contactFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sidebar Footer Refined */
.sidebar-ftr {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Animation Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .topbar {
    left: 200px;
  }
  .content {
    margin-left: 200px;
    padding: 2rem;
  }
  .hero-content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%) !important;
    width: 250px;
  }

  .sidebar.show {
    transform: translateX(0) !important;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
  }

  .topbar {
    left: 0;
    justify-content: center;
    padding: 0 1rem;
    height: 70px;
  }

  .topbar .status {
    display: none;
  }

  .content {
    margin-left: 0 !important;
    padding: 1rem !important;
    padding-top: 5rem !important;
    width: 100% !important;
    display: block !important;
    overflow-x: hidden;
  }

  .term-body {
    padding: 1.25rem !important;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
    text-align: center !important;
  }

  .hero-btns {
    justify-content: center !important;
    width: 100% !important;
  }

  .desc {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .vault-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sec-title {
    justify-content: center;
    text-align: center;
    font-size: 1.6rem !important;
  }

  .line {
    display: none;
  }

  /* Experience Mobile */
  .exp-container {
    padding-left: 1.5rem;
  }

  .v-line {
    left: 0;
  }

  .t-dot {
    left: -1.9rem;
  }

  .t-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .exp-date {
    font-size: 0.8rem;
  }

  /* Education Mobile */
  .grid.col-3 {
    grid-template-columns: 1fr !important;
  }

  /* Contact Mobile */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .c-link {
    padding: 1rem;
  }

  .term-window {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Prevent any potential overflow */
  * {
    max-width: 100vw !important;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100% !important;
    gap: 1rem !important;
  }

  .btn {
    width: 100% !important;
    display: block !important;
  }

  .term-body {
    padding: 1.5rem;
  }

  .flip-card {
    min-height: 520px !important;
    width: 100% !important;
  }

  .card-title {
    font-size: 1.1rem;
  }
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--neon);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 20px rgba(190, 245, 18, 0.4);
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px var(--neon);
}

.fab span {
  font-size: 2rem;
  font-weight: bold;
}