:root {
  --bg: #060b13;
  --bg-2: #091426;
  --bg-3: #0c1e34;
  --text: #cfe9ff;
  --muted: #9ec3ee;
  --neon: #36b2ff;
  --neon-2: #00e0ff;
  --accent: #6ac8ff;
  --card: #0b1425cc;

  --glass: rgba(15, 27, 49, 0.4);
  --ring: 0 0 0 0.08rem rgba(106, 200, 255, 0.25),
    0 0 0.8rem 0.05rem rgba(0, 224, 255, 0.25);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 224, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background-color: #000;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  padding-top: 12px;
  padding-left: 50px;
  padding-bottom: 12px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100vh;
  background: rgba(9, 20, 38, 0.96);
  border-right: 1px solid rgba(106, 200, 255, 0.25);
  box-shadow: 3px 0 15px rgba(0, 224, 255, 0.25);
  display: flex;
  flex-direction: column;
  padding: 80px 12px;
  transition: left 0.4s ease;
  z-index: 1001;
}

.sidebar.open {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.sidebar ul li {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.sidebar a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 18px;
  border-radius: 8px;
  position: relative;
  transition: background 0.18s ease, color 0.12s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.sidebar a .icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--neon-2);
  background: transparent;
}

.sidebar a .label {
  flex: 1 1 auto;
  text-align: left;
  color: inherit;
}

.sidebar a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  transform-origin: center;
}

/* !hover & active styles (cover full row) */
.sidebar a:hover,
.sidebar a.active {
  color: var(--text);
  background: linear-gradient(
    90deg,
    rgba(54, 178, 255, 0.08),
    rgba(0, 224, 255, 0.04)
  );
  box-shadow: 0 8px 28px rgba(0, 224, 255, 0.06);
}

/* make the left indicator glow on hover/active */
.sidebar a:hover::before,
.sidebar a.active::before {
  background: linear-gradient(180deg, var(--neon-2), var(--neon));
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.55);
}

/* keep icon/color consistent when hovered/active */
.sidebar a:hover .icon,
.sidebar a.active .icon {
  color: var(--neon-2);
}

/* overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 11, 19, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* hamburger Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  margin-left: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--neon-2);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- hero --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 60px;
}

.title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 14px 0 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.title .neon {
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 224, 255, 0.5), 0 0 10px var(--neon-2);
}

.subtitle {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 60ch;
}

.btn {
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(106, 200, 255, 0.35);
  background: linear-gradient(
    180deg,
    rgba(8, 22, 40, 0.9),
    rgba(7, 14, 26, 0.9)
  );
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  background: linear-gradient(180deg, var(--neon-2), var(--neon));
  box-shadow: 0 0 18px rgba(106, 200, 255, 0.45),
    inset 0 0 22px rgba(0, 224, 255, 0.12);
  filter: saturate(1.2);
}

.btn.primary {
  background: linear-gradient(
    180deg,
    rgba(54, 178, 255, 0.35),
    rgba(0, 224, 255, 0.15)
  );
}

.screen {
  aspect-ratio: 16/10;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b172b, #0c1e34);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 400px at 30% -10%,
      rgba(0, 224, 255, 0.1),
      transparent
    ),
    radial-gradient(
      900px 400px at 100% 110%,
      rgba(54, 178, 255, 0.08),
      transparent
    );
}

.screen h3 {
  font: 700 clamp(20px, 3vw, 30px) / 1 Poppins;
  letter-spacing: 0.6px;
  z-index: 1;
}

/* --- Section wrapper / headings --- */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 18px;
  text-align: center;
  width: 50%;
  justify-self: center;
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.6), var(--neon-2));
}

.section-sub {
  color: var(--muted);
  margin: 0 0 26px;
  text-align: center;
  font-size: 18px;
  padding-top: 20px;
}

/* --- Cards / glass --- */
.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--glass);
  border: 1px solid rgba(106, 200, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0, 224, 255, 0.12);
  border-color: rgba(0, 224, 255, 0.45);
  background: rgba(15, 27, 49, 0.52);
}

.card .shine {
  position: absolute;
  inset: auto -40% -60% auto;
  width: 110%;
  height: 160%;
  background: radial-gradient(
    closest-side,
    rgba(0, 224, 255, 0.14),
    transparent 60%
  );
  transform: rotate(-18deg);
}

.card h3 {
  text-align: center;
}

/* --- about --- */
.about {
  padding-top: 150px;
}

.about p {
  text-align: center;
  color: var(--muted);
}

/* --- skills --- */
#skills .grid {
  display: flex;
  justify-content: center;
}

#skills .card {
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 22, 0.66),
    rgba(8, 16, 30, 0.6)
  );
  border-radius: 14px;
  border: 1px solid rgba(0, 224, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 224, 255, 0.02);
}

/* skill row */
.skill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(6, 14, 28, 0.28),
    rgba(8, 18, 32, 0.18)
  );
  border: 1px solid rgba(0, 224, 255, 0.03);
}

.skill .bar {
  position: relative;
  flex: 1 1 auto;
  height: 12px;
  border-radius: 999px;
  background: rgba(106, 200, 255, 0.08);
  overflow: visible;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.45);
}

.skill .bar .fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  box-shadow: 0 6px 30px rgba(0, 224, 255, 0.08),
    0 0 16px rgba(0, 224, 255, 0.12);
  transition: width 1.5s ease-in-out;
}

/* percentage circle */
.skill .bar .circle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 12px;
  color: #000;
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: left 1.5s ease-in-out;
}

.skill i {
  font-size: 36px;
  line-height: 1;
  color: var(--neon-2);
  display: block;
}

/* --- projects --- */
#projects h2 {
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.6), var(--neon-2));
}

.project {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumb {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(106, 200, 255, 0.25);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 200px at 20% -10%,
    rgba(0, 224, 255, 0.18),
    transparent 60%
  );
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05) saturate(1.1);
}

.project a.btn {
  align-self: flex-start;
}

/* --- Contact --- */
#contact h2 {
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.6), var(--neon-2));
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(106, 200, 255, 0.25);
  background: rgba(10, 21, 38, 0.7);
  color: var(--text);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: rgba(0, 224, 255, 0.55);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Footer --- */
footer {
  padding: 30px 0 60px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(106, 200, 255, 0.15);
  background: linear-gradient(
    180deg,
    rgba(7, 14, 26, 0.35),
    rgba(7, 14, 26, 0.15)
  );
}

/* --- responsive --- */
@media (max-width: 900px) {
  header {
    padding-left: 5px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }

  nav ul.open {
    display: flex;
    position: absolute;
    top: 64px;
    right: 16px;
    left: 160px;
    flex-direction: column;
    background: rgba(9, 20, 38, 0.9);
    border: 1px solid rgba(106, 200, 255, 0.25);
    border-radius: 16px;
    padding: 12px;
  }

  .hamburger {
    display: flex;
  }
}

.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 8px;
  border: 2px solid rgba(106, 200, 255, 0.3);
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.6), var(--neon-2));
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
  max-width: 300px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img img:hover {
  transform: scale(1.05);
  background: linear-gradient(180deg, var(--neon-2), var(--neon));
}

/* socials */
.home-icons {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.home-icons a {
  text-decoration: none;
}

.home-icons .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.6), var(--neon-2));
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.25);
  color: var(--text);
  font-size: 22px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.home-icons .social:hover {
  /* transform: translateY(-3px) scale(1.08); */
  box-shadow: 0 0 25px var(--neon-2), inset 0 0 18px rgba(0, 224, 255, 0.25);
  /* color: var(--neon-2); */
}

.hire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.6), var(--neon-2));
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.25);
  color: var(--text);
  font-size: 22px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.home-icons .hire-btn:hover {
  /* transform: translateY(-3px) scale(1.08); */
  box-shadow: 0 0 25px var(--neon-2), inset 0 0 18px rgba(0, 224, 255, 0.25);
  /* color: var(--neon-2); */
}
