/* ============================
   NEON FUTURISTIC NEUMORPHIC PORTFOLIO (UPGRADED)
   ============================ */

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background: linear-gradient(-45deg,#e6ebf3,#f3f6fa,#dce1e9,#edf1f7);
  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
  color: #2a2a2a;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* Particles Container */
.particles-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  opacity: 0.6;
  pointer-events: none;
  animation: floatParticle linear infinite;
  box-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 16px rgba(255,255,255,0.4);
  will-change: transform, opacity;
}
.particle::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  top: 50%;
  left: -10%;
  transform: rotate(15deg);
  opacity: 0.5;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0) scale(1); opacity:0.0; }
  30% { opacity:0.7; }
  100% { transform: translateY(-10vh) translateX(50px) scale(0.5); opacity:0; }
}
@keyframes gradientBG { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }

/* Performance safeguard */
@media (max-width: 768px) {
  .particle { box-shadow: none; opacity: 0.5; animation-duration: 16s !important; }
}

/* ===== Cyberpunk Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 50% 50%, #0ff2, transparent 60%), #0b0f14;
  display: grid;
  place-items: center;
  z-index: 2000;
  transition: opacity .45s ease, visibility .45s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .loader-inner {
  position: relative;
  width: min(680px, 92vw);
  padding: 36px 24px;
  border-radius: 18px;
  background: rgba(12,16,22,0.7);
  box-shadow: inset 0 0 0 1px #0ff3, 0 0 60px #0ff3, 0 0 120px #f0f2;
  overflow: hidden;
}
#loader .scanline {
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 140%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  animation: scan 3s linear infinite;
  pointer-events: none;
}
@keyframes scan { 0% { transform: translateY(-100%);} 100% { transform: translateY(100%);} }
#loader .loader-text {
  text-align: center;
  color: #e6ffff;
}
.glitch {
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px #0ff;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  clip-path: inset(0 0 0 0);
  opacity: 0.8;
}
.glitch::before { transform: translate(2px, -2px); color: #0ff; mix-blend-mode: screen; }
.glitch::after { transform: translate(-2px, 2px); color: #f0f; mix-blend-mode: screen; }
.glitch.small { font-size: 0.9rem; opacity: 0.8; display: block; margin-top: 10px; }
.boot-bars { margin-top: 18px; display: grid; gap: 6px; }
.boot-bar { height: 6px; background: linear-gradient(90deg, #0ff, #f0f); border-radius: 6px; animation: barload 1.6s ease-in-out infinite; opacity: 0.8;}
.boot-bar:nth-child(2){ animation-delay: .2s; } .boot-bar:nth-child(3){ animation-delay: .4s; }
@keyframes barload { 0%{transform: scaleX(.1);} 50%{transform: scaleX(1);} 100%{transform: scaleX(.1);} transform-origin: left; }

/* Navbar (HUD style) */
header {
  background: rgba(230,235,243,0.85);
  backdrop-filter: blur(14px);
  padding: 1rem 2rem;
  border-radius: 20px;
  margin: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 8px 8px 18px #c2c7cf, -8px -8px 18px #fff;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NAVBAR CSS-ONLY FIXES */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #2a2a2a;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}
.navbar.hud {
  border: 1px solid #cfe7ff80;
  box-shadow: 0 0 0 1px #ffffff80 inset, 0 0 12px #0ff6, 0 0 24px #f0f6;
  border-radius: 16px;
  padding: 10px 14px;
  position: relative;
  overflow: hidden;
}
.navbar.hud::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 70%, rgba(0,255,255,0.08));
  pointer-events: none;
}
.logo {
  font-weight: 800;
  font-size: 1.7rem;
  background: linear-gradient(135deg,#222,#666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links a, .nav-links .btn.micro {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 14px;
  background: #e6ebf3;
  box-shadow: inset 2px 2px 6px #c2c7cf, inset -2px -2px 6px #fff;
  color: #2a2a2a;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links .btn.micro:hover {
  background: linear-gradient(145deg,#dde3ec,#fff);
  transform: translateY(-3px) scale(1.03);
  color: #111;
  box-shadow: 6px 6px 18px #c2c7cf, -6px -6px 18px #fff, 0 0 10px #00fff7;
}

/* Hero Section */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  animation: fadeUp 1s ease;
  position: relative;
  z-index: 1;
}
.holo-wrap { height: 180px; display: grid; place-items: center; margin-bottom: 10px; }
.holo-avatar {
  position: relative;
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px #0ff, 0 0 40px #0ff8, 0 0 80px #f0f6;
  transform-style: preserve-3d;
  transition: transform .2s ease;
  will-change: transform;
}
.holo-avatar img { width: 100%; height: 100%; object-fit: cover; filter: contrast(110%) saturate(120%); }
.holo-avatar .holo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,255,255,0.25) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 4px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem,5.5vw,3.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg,#222,#666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  word-break: break-word;
}
.hero h2 {
  font-size: clamp(1rem,2.5vw,1.4rem);
  font-weight: 400;
  color: #444;
  max-width: 880px;
}
.hero .highlight {
  color: #111;
  font-weight: 600;
  text-shadow: 0 0 6px #00fff7, 0 0 12px #00fff7;
  animation: glowPulse 2s ease-in-out infinite alternate;
}
.hero .hero-actions { display:flex; gap:12px; flex-wrap: wrap; justify-content:center; }
.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 10px #0ff7;
  font-size: 12px;
  animation: floaty 2s ease-in-out infinite;
}
@media (max-width:420px) {
  .scroll-indicator { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 120; }
}
@keyframes floaty { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,-6px)} }

/* Buttons */
.btn {
  margin-top: 14px;
  padding: 14px 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(145deg,#fff,#d6dce6);
  box-shadow: 6px 6px 14px #c8ccd2, -6px -6px 14px #fff;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: #222;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.btn.outline {
  background: transparent;
  box-shadow: inset 0 0 0 2px #0ff9, 0 0 16px #0ff5;
}
.btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(60deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 60%);
  transform: rotate(25deg) translateX(-100%);
  transition: all 0.7s ease;
  pointer-events: none;
}
.btn:hover::before { transform: rotate(25deg) translateX(100%); }
.btn:hover {
  background: linear-gradient(145deg,#dce2eb,#fff);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 8px 8px 20px #b8bcc2, -8px -8px 20px #fff, 0 0 12px #00fff7;
}

/* Sections */
section {
  padding: 100px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease;
  position: relative;
  z-index: 1;
}
section h2 {
  margin-bottom: 30px;
  font-size: 2.3rem;
  font-weight: 700;
  color: #1e1e1e;
  position: relative;
}
section h2::after {
  content: '';
  width: 80px; height: 4px;
  background: linear-gradient(145deg,#888,#ccc);
  display: block;
  margin: 12px auto 0;
  border-radius: 3px;
}

/* About Section */
.about p {
  max-width: 720px;
  margin: auto;
  line-height: 1.8;
  font-size: 1.12rem;
  color: #444;
  opacity: 0.95;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}
.project-card {
  position: relative;
  background: #e6ebf3;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 10px 10px 22px #c0c4ca, -10px -10px 22px #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}
.project-card h3 {
  margin-bottom: 14px;
  font-size: 1.38rem;
  font-weight: 600;
  color: #333;
}
.project-card .streak {
  position: absolute;
  top: 0; left: -150%;
  width: 300%; height: 2px;
  background: linear-gradient(90deg, rgba(0,255,247,0.7), rgba(0,255,247,0));
  opacity: 0;
  transform: rotate(var(--streak-rotate, 15deg)) translateZ(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}
.project-card .streak:nth-child(1) { top: 20%; --streak-rotate: 10deg; }
.project-card .streak:nth-child(2) { top: 50%; --streak-rotate: -12deg; }
.project-card .streak:nth-child(3) { top: 80%; --streak-rotate: 18deg; }
.project-card:hover .streak { opacity: 0.85; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.stat-card {
  background: #e6ebf3;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 8px 8px 18px #c2c7cf, -8px -8px 18px #fff;
}
.stat-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #111;
  text-shadow: 0 0 10px #0ff8;
}
.stat-label { color: #444; font-weight: 600; }
.stats-note { margin-top: 14px; color: #666; font-size: 0.9rem;}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: auto;
}
input, textarea {
  margin: 14px 0;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: #e6ebf3;
  box-shadow: inset 3px 3px 6px #c0c4ca, inset -3px -3px 6px #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  color: #222;
}
input:focus, textarea:focus {
  outline: none;
  box-shadow: inset 5px 5px 12px #bec3c9, inset -5px -5px 12px #fff, 0 0 8px #00fff7;
}
textarea { resize: none; min-height: 130px; }
.form-status { margin-top: 8px; min-height: 20px; display: block; }

/* Social Icons (footer/contact) */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px; height: 50px;
  background: #e6ebf3;
  border-radius: 50%;
  box-shadow: 6px 6px 12px #c2c7cf, -6px -6px 12px #fff;
  font-size: 20px;
  color: #222;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Footer */
footer {
  background: #e6ebf3;
  padding: 28px;
  text-align: center;
  box-shadow: inset 3px 3px 6px #c0c4ca, inset -3px -3px 6px #fff;
  border-radius: 22px;
  margin: 22px;
  font-size: 14px;
  color: #555;
  opacity: 0.95;
}
footer a { color: inherit; }

/* Timeline (left) */
.timeline {
  position: fixed;
  left: 12px;
  top: 120px;
  bottom: 80px;
  width: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0ff, #f0f);
  box-shadow: 0 0 12px #0ff8, 0 0 20px #f0f8;
  opacity: 0.7;
}
.timeline .dot {
  pointer-events: auto;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #e6ebf3;
  box-shadow: 0 0 0 2px #0ff9, 0 0 10px #0ff8;
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline .dot.active {
  transform: scale(1.3);
  box-shadow: 0 0 0 2px #0ff, 0 0 20px #0ff, 0 0 30px #f0f;
}

/* Command Palette */
#command-palette {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  z-index: 1500;
}
#command-palette.show { display: grid; place-items: start center; padding-top: 12vh; }
#command-palette::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1490;
  pointer-events: none;
}
.cmdk-modal {
  width: min(720px, 92vw);
  background: rgba(230,235,243,0.98);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 0 2px #0ff6, 0 10px 40px rgba(0,0,0,0.15);
  z-index: 1505;
}
#cmdk-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  background: #eef2f8;
  box-shadow: inset 2px 2px 6px #c2c7cf, inset -2px -2px 6px #fff;
  font-size: 16px;
}
#cmdk-results { list-style: none; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
#cmdk-results li { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
#cmdk-results li:hover { background: #e8edf7; box-shadow: inset 0 0 0 2px #0ff7; }

/* Magnetic hover helper */
.magnetic { will-change: transform; }

/* Animations */
@keyframes fadeIn { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }
@keyframes fadeUp { from {opacity:0; transform:translateY(50px);} to {opacity:1; transform:translateY(0);} }
@keyframes glowPulse {
  0% { text-shadow: 0 0 6px #00fff7, 0 0 12px #00fff7; }
  100% { text-shadow: 0 0 12px #00fff7, 0 0 24px #00fff7; }
}

/* Responsive */
@media (max-width: 992px) { .timeline { display: none; } }
@media (max-width:768px) {
  .nav-links {
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 6px 6px 15px #c5c9ce,-6px -6px 15px #fff;
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 1100;
  }
  .nav-links.show {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  }
  .nav-links.show::before {
    content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1090; pointer-events: auto;
  }
  .nav-links li { width: 100%; display: flex; justify-content: center; }
  .menu-toggle { display: block; cursor: pointer; font-size: 1.5rem; color: #2a2a2a; }
  .hero h1 { font-size: 2.4rem; }
  .hero h2 { font-size: 1rem; }
}
@media (hover: none) { .holo-avatar { transform: none !important; } }

/* =========================
   SKILLS
   ========================= */
.skills-section { max-width: 980px; margin: 0 auto; }
.skill-category { margin: 28px auto 36px; text-align: left; }
.skill-category h3 {
  font-size: 1.25rem; margin-bottom: 14px; color: #00aab3; font-weight: 800;
  display: inline-block; padding-bottom: 4px; border-bottom: 2px solid rgba(0,255,255,0.35);
}
.skill { margin: 14px 0; }
.skill-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: #222; margin-bottom: 8px;
}
.skill-name i { font-size: 1.1rem; }
.skill-bar {
  width: 100%;
  background: #e6ebf3;
  box-shadow: inset 3px 3px 6px #c0c4ca, inset -3px -3px 6px #fff;
  border-radius: 10px;
  height: 14px;
  overflow: hidden;
  position: relative;
}
.skill-progress {
  position: relative;
  height: 100%;
  width: 0; /* animated to --level in JS */
  border-radius: 8px;
  transition: width 1.3s ease-in-out;
}
.skill-percent {
  position: absolute;
  top: -22px;
  right: 0;
  font-size: 0.8rem;
  font-weight: 700;
  background: #111;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.skill-percent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 8px;
  border-width: 5px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

/* Per-skill gradients */
.skill-progress.html     { background: linear-gradient(90deg,#ff7e5f,#feb47b); }
.skill-progress.css      { background: linear-gradient(90deg,#36d1dc,#5b86e5); }
.skill-progress.js       { background: linear-gradient(90deg,#f7df1e,#ff9800); }
.skill-progress.react    { background: linear-gradient(90deg,#61dafb,#007acc); }
.skill-progress.node     { background: linear-gradient(90deg,#3cba54,#0ba360); }
.skill-progress.express  { background: linear-gradient(90deg,#606c88,#3f4c6b); }
.skill-progress.mongodb  { background: linear-gradient(90deg,#2ecc71,#27ae60); }
.skill-progress.python   { background: linear-gradient(90deg,#3776ab,#4b8bbe); }
.skill-progress.cpp      { background: linear-gradient(90deg,#00599c,#2a73b7); }
.skill-progress.java     { background: linear-gradient(90deg,#ea4335,#ff6b6b); }
.skill-progress.c        { background: linear-gradient(90deg,#0f9b0f,#36d1dc); }
.skill-progress.git      { background: linear-gradient(90deg,#f4511e,#ff7043); }
.skill-progress.linux    { background: linear-gradient(90deg,#2c3e50,#4ca1af); }
.skill-progress.docker   { background: linear-gradient(90deg,#0db7ed,#1d8bd1); }
.skill-progress.vscode   { background: linear-gradient(90deg,#0078d7,#00a4ef); }
.skill-progress.netlify  { background: linear-gradient(90deg,#00ad9f,#00e6c3); }
.skill-progress.discord  { background: linear-gradient(90deg,#5865f2,#8ea1e1); }

/* Knowledge badges */
.knowledge-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
}
.knowledge-badges a { text-decoration: none; color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 700;
  background: #444; box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform .3s ease, opacity .3s ease;
}
.badge:hover { transform: translateY(-3px) scale(1.05); opacity: .95; }
.badge i { margin-right: 2px; }
.badge.intermediate { background: #ff9800; }
.badge.advanced { background: #4caf50; }

/* =========================
   CONNECT WITH ME
   ========================= */
#connect { }
.connect-group { max-width: 1000px; margin: 0 auto 28px; text-align: left; }
.connect-group h3 {
  font-size: 1.1rem; letter-spacing: .5px; color: #006a70;
  margin-bottom: 10px; font-weight: 800; text-transform: uppercase;
}
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.connect-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #111;
  background: #e6ebf3;
  box-shadow: 6px 6px 14px #c8ccd2, -6px -6px 14px #fff;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.connect-card i { font-size: 1.2rem; }
.connect-card:hover {
  transform: translateY(-4px);
  color: #000;
  box-shadow: 8px 8px 20px #b8bcc2, -8px -8px 20px #fff, 0 0 12px #00fff7;
}
.connect-note { margin-top: 18px; color: #666; font-size: 0.9rem; }

/* Mobile tweaks */
@media (max-width: 560px) {
  .skill-percent { top: -26px; font-size: .78rem; }
}
