html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* =========================
   THEME VARIABLES
========================= */

/* DARK MODE (DEFAULT) */
:root {
  --bg: #020617;
  --text: #e5e7eb;
  --muted-text: #9ca3af;

  --card-bg: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.95),
    rgba(2, 6, 23, 0.85)
  );
  --card-border: #1e293b;

  --chip-bg: rgba(56, 189, 248, 0.12);
  --chip-text: #38bdf8;

  --accent: #38bdf8;
}

/* LIGHT MODE */
.light-theme {
  --bg: #f8fafc;
  --text: #020617;
  --muted-text: #475569;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;

  --chip-bg: #e0f2fe;
  --chip-text: #0369a1;

  --accent: #2563eb;
}

/* =========================
   GLOBAL CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.light-theme .navbar {
  background: rgba(248, 250, 252, 0.9);
}

.logo {
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
}

nav a {
  margin: 0 16px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.theme-btn {
  margin-left: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  font-size: 18px;
}

/* =========================
   HERO
========================= */
.hero {
  height: 100vh;
  padding: 0 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 56px;
}

.hero span {
  color: var(--accent);
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  max-width: 520px;
  color: var(--muted-text);
}

.btn {
  margin-top: 30px;
  padding: 14px 30px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  color: #020617;
  text-decoration: none;
  border-radius: 30px;
  width: fit-content;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 120px 10%;
  scroll-margin-top: 90px;
}

.section h2 {
  font-size: 36px;
  color: var(--accent);
}

.section-subtext {
  font-size: 16px;
  color: var(--muted-text);
  margin-top: 8px;
}

/* =========================
   ABOUT
========================= */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-heading {
  font-size: 100px;
  margin-bottom: 30px;
}

.about-heading span {
  color: var(--accent);
}

.about-content {
  font-size: 17px;
  color: var(--muted-text);
}

.about-content p {
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
}

.stat h3 {
  font-size: 36px;
  color: var(--accent);
}

.stat p {
  font-size: 14px;
  color: var(--muted-text);
}

/* =========================
   SKILLS
========================= */
.skills-section {
  text-align: center;
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.skill-pill {
  padding: 10px 18px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--card-border);
  transition: 0.3s ease;
}

.skill-pill:hover {
  transform: translateY(-4px);
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.live-card {
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-link:hover .live-card {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 20px 50px rgba(56, 189, 248, 0.25);
}

.light-theme .live-card {
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.live-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.live-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.live-card p,
.live-card li {
  font-size: 15px;
  color: var(--muted-text);
}

.live-card ul {
  padding-left: 18px;
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--card-border);
}

/* =========================
   VIEW ALL PROJECTS
========================= */
.view-all-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.view-all-card {
  max-width: 620px;
  width: 100%;
  text-align: center;
  border: 2px dashed var(--accent);
}

.view-all-cta {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* =========================
   CONTACT
========================= */
.contact-center {
  text-align: center;
}

.contact-center p {
  margin: 16px 0;
  font-size: 16px;
  color: var(--muted-text);
}

.contact-link {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}
/* =========================
   SKILLS MARQUEE (SMOOTH)
========================= */

.skills-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}

.skills-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

/* Pause on hover */
.skills-marquee:hover .skills-track {
  animation-play-state: paused;
}

/* Smooth infinite scroll */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Skill pill – SINGLE SOURCE OF TRUTH */
.skill-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  font-size: 14px;
  color: var(--chip-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

/* Fade edges */
.skills-marquee::before,
.skills-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.skills-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.skills-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 120px;
  padding: 40px 10% 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.footer-text {
  font-size: 14px;
  color: var(--muted-text);
}

.footer-text strong {
  color: var(--text);
  font-weight: 600;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted-text);
  max-width: 520px;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted-text);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Light mode */
.light-theme .site-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.light-theme .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* =========================
   FOOTER – CENTER + FADE IN
========================= */

.site-footer {
  margin-top: 120px;
  padding: 48px 10% 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  /* Fade-in animation */
  opacity: 0;
  transform: translateY(20px);
  animation: footerFadeUp 0.9s ease forwards;
}

@keyframes footerFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-tagline {
  color: var(--muted-text);
  font-size: 15px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted-text);
}
/* =========================
   GLOWING INITIALS BADGE
========================= */

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 16px;
  color: #020617;

  background: radial-gradient(circle at 30% 30%, #7dd3fc, #38bdf8);
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.6),
    0 0 36px rgba(56, 189, 248, 0.35);

  animation: glowPulse 3s ease-in-out infinite;
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(56, 189, 248, 0.6),
      0 0 36px rgba(56, 189, 248, 0.35);
  }
  50% {
    box-shadow:
      0 0 26px rgba(56, 189, 248, 0.9),
      0 0 52px rgba(56, 189, 248, 0.6);
  }
}

.footer-name {
  font-size: 16px;
  font-weight: 500;
}

.footer-name span {
  color: var(--muted-text);
  font-weight: 400;
}
/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Project Card Micro Interaction ===== */
.live-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.live-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.35),
    0 25px 60px rgba(56,189,248,0.25);
}
/* ===== Page Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-dot {
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse 0.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 1; }
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}
/* ===== Cursor Glow ===== */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(56,189,248,0.15),
    transparent 60%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
}

.light-theme #cursor-glow {
  background: radial-gradient(
    circle,
    rgba(37,99,235,0.12),
    transparent 60%
  );
}
.bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

.orb-1 {
  top: -120px;
  left: -120px;
}

.orb-2 {
  bottom: -120px;
  right: -120px;
}
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  margin: 100px 0;
}
.floating-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-40px) translateX(20px); }
  100% { transform: translateY(0) translateX(0); }
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.orb-blue {
  background: radial-gradient(circle, rgba(56,189,248,0.35), transparent 70%);
}

.orb-indigo {
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
}

.orb-cyan {
  background: radial-gradient(circle, rgba(34,211,238,0.28), transparent 70%);
}

.orb-purple {
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
}
.glow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 0 12px rgba(56,189,248,0.8);
}
.blur-blob {
  position: absolute;
  width: 600px;
  height: 300px;
  background: rgba(56,189,248,0.15);
  filter: blur(140px);
  opacity: 0.5;
  border-radius: 50%;
  z-index: 0;
}
.data-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.25);
  box-shadow: 0 0 40px rgba(56,189,248,0.25);
  animation: spin 30s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

.data-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(56,189,248,0.25);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hex-node {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(56,189,248,0.6);
  clip-path: polygon(
    25% 0%, 75% 0%,
    100% 50%, 75% 100%,
    25% 100%, 0% 50%
  );
  animation: float 20s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes float {
  0%   { transform: translate(0,0); }
  50%  { transform: translate(18px,-30px); }
  100% { transform: translate(0,0); }
}
.micro-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
.wireframe-orb {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.wireframe-orb img {
  width: 100%;
  height: 100%;
  animation: spinOrb 60s linear infinite;
}

/* Floating motion */
@keyframes floatOrb {
  0%   { transform: translateY(-50%) translateX(0); }
  50%  { transform: translateY(-55%) translateX(-10px); }
  100% { transform: translateY(-50%) translateX(0); }
}

/* Slow rotation */
@keyframes spinOrb {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero {
  position: relative;
  overflow: hidden;
}
/* =========================
   ABOUT – SECOND ROW TUNING
========================= */

/* Target only the LAST 3 stats */
.about-stats .stat:nth-last-child(-n+3) h3 {
  font-size: 22px;      /* smaller heading */
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}

.about-stats .stat:nth-last-child(-n+3) p {
  font-size: 14px;      /* smaller description */
  line-height: 1.5;
  opacity: 0.85;
  max-width: 220px;
  margin: 0 auto;
}
/* =========================
   LOGO – BOLD + SOFT GLOW
========================= */

.logo {
  font-size: 22px;              /* slightly bigger */
  font-weight: 700;             /* bold */
  letter-spacing: 0.3px;
  color: var(--accent);
  position: relative;
  transition: all 0.3s ease;
}

/* Soft glow */
.logo {
  text-shadow:
    0 0 8px rgba(56, 189, 248, 0.35),
    0 0 18px rgba(56, 189, 248, 0.25);
}

/* Hover polish (optional but premium) */
.logo:hover {
  text-shadow:
    0 0 10px rgba(56, 189, 248, 0.6),
    0 0 30px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}
/* Light mode logo */
.light-theme .logo {
  text-shadow:
    0 0 6px rgba(37, 99, 235, 0.25);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}
.live-card:hover {
  box-shadow: 0 0 0 1px rgba(56,189,248,.35),
              0 18px 40px rgba(56,189,248,.25);
}
.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56,189,248,.25);
}
/* =========================
   PAGE LOADER (TEXT ONLY)
========================= */

#page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #020617, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  animation: fadeUp 0.9s ease forwards;
}

.loader-name {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e5e7eb;
  text-shadow:
    0 0 18px rgba(56, 189, 248, 0.35),
    0 0 40px rgba(56, 189, 248, 0.15);
}

/* Subtle entrance */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   MOBILE RESPONSIVE FIX
   (ADD AT VERY END)
========================= */
@media (max-width: 768px) {

  /* Prevent horizontal scroll from visuals */
  body {
    overflow-x: hidden;
  }

  /* NAVBAR */
  .navbar {
    padding: 14px 6%;
  }

  .logo {
    font-size: 18px;
  }

  nav a {
    margin: 0 10px;
    font-size: 14px;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 140px 6% 80px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
    max-width: 100%;
  }

  /* Hide heavy hero visuals */
  .wireframe-orb,
  .bg-orb,
  .blur-blob,
  .data-ring,
  .hex-node,
  .floating-node,
  .glow-dot {
    display: none;
  }

  /* SECTIONS */
  .section {
    padding: 90px 6%;
  }

  .section h2 {
    font-size: 28px;
  }

  /* ABOUT */
  .about-heading {
    font-size: 52px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat h3 {
    font-size: 26px;
  }

  .stat p {
    font-size: 14px;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .live-card {
    padding: 22px;
  }

  /* SKILLS MARQUEE */
  .skills-marquee {
    overflow: hidden;
  }

  .skills-track {
    animation-duration: 45s;
  }

  .skill-pill {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* BUTTONS */
  .btn,
  .contact-link {
    padding: 14px 22px;
    font-size: 15px;
  }

  /* FOOTER */
  .site-footer {
    padding: 60px 6% 28px;
  }

  .footer-tagline {
    font-size: 14px;
  }

  /* CURSOR GLOW OFF ON MOBILE */
  #cursor-glow {
    display: none;
  }

  /* PAGE LOADER TEXT */
  .loader-name {
    font-size: 28px;
    text-align: center;
  }
}
/* =========================
   FORCE FLOATING NODES ON MOBILE
========================= */
@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }

  /* Ensure content stays above */
  section,
  .section,
  .hero,
  .navbar {
    position: relative;
    z-index: 5;
  }

  /* =========================
     FLOATING NODES – MOBILE
  ========================= */
  .floating-node,
  .hex-node,
  .glow-dot,
  .micro-dot {
    display: block !important;
    opacity: 0.55;              /* 👈 visible but subtle */
    transform: scale(0.9);      /* 👈 readable size */
    z-index: 2;                 /* 👈 behind content, above bg */
    pointer-events: none;
  }

  /* Increase size slightly for phones */
  .floating-node {
    width: 10px;
    height: 10px;
  }

  .hex-node {
    width: 16px;
    height: 16px;
  }

  .glow-dot,
  .micro-dot {
    box-shadow: 0 0 12px rgba(56,189,248,0.9);
  }

  /* =========================
     DO NOT CLIP DECORATIONS
  ========================= */
  body,
  .hero,
  section {
    overflow-x: hidden;
    overflow-y: visible;
  }
}
/* =========================
   MOBILE NAVBAR
========================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}

.nav-left .logo {
  font-size: 22px;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
}

/* Hamburger bigger tap area */
.hamburger {
  font-size: 24px;
}

/* =========================
   MOBILE MENU PANEL
========================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 999;
}

.mobile-menu a {
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* =========================
   DESKTOP OVERRIDE
========================= */
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}
/* =========================
   NAV VISIBILITY RULES
========================= */

/* Desktop / Tablet default */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-actions {
  display: none;
}

/* =========================
   MOBILE ONLY
========================= */
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* =========================
   MOBILE MENU PANEL
========================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
/* =========================
   NAV RESPONSIVE
========================= */

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hide full nav */
  }

  .menu-toggle {
    display: block;
  }
}

/* =========================
   MOBILE MENU (CENTERED CARD)
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.mobile-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 85%;
  max-width: 320px;
  padding: 32px 24px;
  background: linear-gradient(
    180deg,
    rgba(2,6,23,0.95),
    rgba(2,6,23,0.9)
  );
  border-radius: 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 999;
}

.mobile-menu a {
  display: block;
  margin: 16px 0;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* Close button */
.close-menu {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
}

/* OPEN STATE */
.mobile-menu.open {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
/* =========================
   MOBILE FIXED NAVBAR
========================= */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  /* Push content below navbar */
  .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(2, 6, 23, 0.7); /* glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero {
  height: 100vh;
  padding: 0 10%;
}
.hero {
  padding-top: 120px; /* space so text doesn't hide under nav */
}
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .hero {
    padding-top: 100px;
  }
}
/* =========================
   HAMBURGER VISIBILITY FIX
========================= */

.menu-toggle {
  color: var(--text); /* default */
}

/* Light theme override */
.light-theme .menu-toggle {
  color: #020617; /* dark icon for light bg */
}
.menu-toggle {
  font-size: 22px;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.menu-toggle:active {
  background: rgba(0,0,0,0.06);
}

.light-theme .menu-toggle:active {
  background: rgba(0,0,0,0.08);
}

/* =========================
   MOBILE MENU LINK ANIMATION
========================= */

.mobile-menu a {
  position: relative;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* When menu opens */
.mobile-menu.open a {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger (very subtle) */
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
/* Underline grow */
.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.mobile-menu a:hover::after,
.mobile-menu a:focus::after {
  width: 100%;
}
.mobile-menu a:active {
  color: var(--accent);
  transform: translateX(2px);
}
.logo {
  text-decoration: none;
  cursor: pointer;
}
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.theme-btn:active {
  transform: scale(0.9);
}

.theme-btn.animate {
  transform: rotate(180deg) scale(1.05);
  box-shadow:
    0 0 0 6px rgba(56,189,248,0.15),
    0 0 24px rgba(56,189,248,0.35);
}
/* =========================
   THEME TRANSITION MASK
========================= */

#theme-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  clip-path: circle(0% at 50% 50%);
  z-index: 9998;
  pointer-events: none;
  transition: clip-path 0.8s ease-in-out;
}

/* Active animation */
#theme-transition.active {
  transition: clip-path 0.9s cubic-bezier(.22,1,.36,1);
}
}
/* =========================
   MUSIC ICON – GLASS (PREMIUM)
========================= */

.music-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;

  background: transparent; /* 👈 fully transparent */
  border: 1px solid rgba(255,255,255,0.18);

  font-size: 18px;
  cursor: pointer;
  color: var(--text);

  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.music-icon:hover {
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 0 16px rgba(56,189,248,0.35);
}

.music-icon:active {
  transform: scale(0.92);
}

/* Playing state glow */
.music-icon.playing {
  box-shadow:
    0 0 0 6px rgba(56,189,248,0.12),
    0 0 24px rgba(56,189,248,0.45);
}
.music-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;

  background: none;
  border: 1px solid rgba(255,255,255,0.25);

  font-size: 17px;
  cursor: pointer;
  color: var(--text);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.music-icon:hover {
  box-shadow: 0 0 14px rgba(56,189,248,0.3);
}

.music-icon.playing {
  border-color: rgba(56,189,248,0.9);
}
/* =========================
   MUSIC PLAYING ANIMATION
========================= */

@keyframes musicPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(56,189,248,0.4);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 0 10px rgba(56,189,248,0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(56,189,248,0);
  }
}

/* Active when music is playing */
.music-icon.playing {
  animation: musicPulse 1.6s ease-in-out infinite;
}
@keyframes microBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.music-icon.playing {
  animation: microBounce 1 s ease-in-out infinite;
}
/* ===== Music Icon – Theme Synced Glow ===== */

/* Default (dark theme) */
.music-playing {
  animation: musicPulse 1.6s ease-in-out infinite;
  box-shadow:
    0 0 10px rgba(56,189,248,0.6),
    0 0 24px rgba(56,189,248,0.35);
}

/* Light theme override */
.light-theme .music-playing {
  box-shadow:
    0 0 10px rgba(99,102,241,0.5),
    0 0 22px rgba(99,102,241,0.35);
}

/* Pulse animation */
@keyframes musicPulse {
  0%   { transform: scale(1); opacity: 0.85; }
  50%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}
/* =========================
   THEME BUTTON – RING STYLE
========================= */

.theme-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  color: var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Outer ring */
.theme-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.35);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover hint (subtle) */
.theme-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Active press */
.theme-btn:active {
  transform: scale(0.9);
}

/* THEME SWITCH ANIMATION */
.theme-btn.switching {
  animation: themePulse 0.8s ease;
}

@keyframes themePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0.6);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(56,189,248,0);
  }
}

/* Light theme color sync */
.light-theme .theme-btn {
  color: #2563eb;
}

.light-theme .theme-btn::after {
  border-color: rgba(37,99,235,0.35);
}
/* =========================
   NAV ICON BUTTONS – UNIFIED SIZE
========================= */

.theme-btn,
#musicToggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);

  font-size: 20px;
  line-height: 1;

  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Hover polish */
.theme-btn:hover,
#musicToggle:hover {
  box-shadow:
    0 0 0 6px rgba(56,189,248,0.12),
    0 0 20px rgba(56,189,248,0.35);
}

/* Active tap */
.theme-btn:active,
#musicToggle:active {
  transform: scale(0.92);
}
.light-theme .theme-btn:hover {
  box-shadow:
    0 0 0 6px rgba(37,99,235,0.12),
    0 0 20px rgba(37,99,235,0.35);
}
.wireframe-orb {
  position: absolute;
  right: -40px;
  top: 56%;            /* 👈 lower than center */
  transform: translateY(-50%);
}
.wireframe-orb {
  position: absolute;
  right: -40px;
  top: 56%;            /* 👈 lower than center */
  transform: translateY(-50%);
}
/* =========================
   CURSOR MICRO DOT
========================= */

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;

  background: var(--accent);
  opacity: 0.7;

  animation: cursorDotFloat 1.4s ease-out forwards;
}

@keyframes cursorDotFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}

/* Light theme tuning */
.light-theme .cursor-dot {
  opacity: 0.45;
}
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(56,189,248,0.7);
  pointer-events: none;
  z-index: 2;

  animation: cursorFloat 1.4s ease-out forwards;
}

@keyframes cursorFloat {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}
/* =========================
   MOBILE MENU TEXT FIX (LIGHT MODE)
========================= */

.mobile-menu a {
  color: #e5e7eb; /* force visible text */
  opacity: 1;
}

/* Close (X) button */
.mobile-menu .close-menu {
  color: #e5e7eb;
}

/* Light theme override */
.light-theme .mobile-menu {
  background: rgba(2, 6, 23, 0.96); /* keep dark card */
}

.light-theme .mobile-menu a {
  color: #f8fafc; /* bright white text */
}
/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  padding: 120px 6%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card {
  width: 100%;
  max-width: 520px;
  padding: 40px 32px;
  text-align: center;

  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.8)
  );

  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 0 0 1px rgba(56,189,248,0.15);

  backdrop-filter: blur(10px);
}

.contact-card h2 {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-subtext {
  font-size: 15px;
  color: var(--muted-text);
  margin-bottom: 28px;
}

/* Email row */
.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 30px;
}

.contact-icon {
  font-size: 18px;
}

/* LinkedIn Button */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 500;
  text-decoration: none;

  background: linear-gradient(90deg, #38bdf8, #6366f1);
  color: #020617;

  box-shadow:
    0 10px 30px rgba(56,189,248,0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.linkedin-btn i {
  font-size: 18px;
}

/* Hover */
.linkedin-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(56,189,248,0.45);
}

/* =========================
   LIGHT MODE
========================= */

.light-theme .contact-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.light-theme .contact-subtext {
  color: #475569;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .contact-section {
    padding: 90px 6%;
  }

  .contact-card {
    padding: 32px 22px;
  }

  .contact-card h2 {
    font-size: 28px;
  }

  .linkedin-btn {
    width: 100%;
    justify-content: center;
  }
}
/* CONTACT SECTION ALIGNMENT FIX */
.contact-section {
  display: flex;
  justify-content: center;   /* ⬅️ center horizontally */
  align-items: center;
}

/* Increase card size slightly */
.contact-card {
  max-width: 580px;          /* was ~520px */
  padding: 48px 40px;        /* more breathing space */
}
.contact-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card {
  width: 100%;
  max-width: 520px;          /* ⬅️ slightly bigger box */
  margin: 0 auto;            /* ⬅️ true center */
  padding: 40px 36px;
}
.premium-mail {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow:
    0 0 12px rgba(56,189,248,0.45),
    inset 0 0 6px rgba(255,255,255,0.4);
  position: relative;
}

.premium-mail::before {
  content: "✉";
  font-size: 18px;
  color: #020617;
}

/* Hover polish */
.email-icon-link:hover .premium-mail {
  transform: scale(1.08);
  box-shadow:
    0 0 18px rgba(56,189,248,0.7),
    inset 0 0 8px rgba(255,255,255,0.6);
}
/* Email icon button */
.email-icon-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Premium mail icon */
.premium-mail {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #7dd3fc, #38bdf8);
  box-shadow:
    0 0 18px rgba(56,189,248,0.45),
    inset 0 0 6px rgba(255,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
.email-icon-link:hover .premium-mail {
  transform: scale(1.08);
  box-shadow: 0 0 26px rgba(56,189,248,0.7);
}

/* Copied state */
.email-icon-link.copied .premium-mail {
  background: radial-gradient(circle at top, #86efac, #22c55e);
  box-shadow: 0 0 26px rgba(34,197,94,0.7);
}

/* Email text */
.email-text {
  margin-left: 14px;
  color: var(--text);
  text-decoration: none;
}

.email-text:hover {
  color: var(--accent);
}
/* Copy feedback only – no icon styling touched */
.email-copy {
  position: relative;
  cursor: pointer;
}

.copy-feedback {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  font-size: 12px;
  color: #38bdf8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.email-copy.copied .copy-feedback {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.section-divider {
  width: 100%;
  height: 1px;
  margin: 100px 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--divider),
    transparent
  );
}
:root {
  --divider: rgba(255,255,255,0.12);
}
.light-theme {
  --divider: rgba(0,0,0,0.12);
}
.light-theme {
  --divider: rgba(0,0,0,0.18);
}
.skills-section {
  position: relative;
  padding-bottom: 140px; /* 👈 creates breathing room for divider */
}
.skills-section {
  overflow: visible;
  z-index: 2;
}
.skills-section {
  overflow: visible;
  z-index: 2;
}
/* =========================
   NAV ICONS – SAFE ALIGNMENT FIX
========================= */

.nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* shared circle */
.nav-icons button {
  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);

  cursor: pointer;
  padding: 0;
  margin: 0;

  line-height: 1;   /* 🔑 fixes emoji vertical shift */
}

/* =========================
   THEME BUTTON (emoji fix)
========================= */
.theme-btn {
  font-size: 22px;
  transform: translateY(1px); /* 🔑 subtle emoji baseline correction */
}

/* =========================
   MUSIC BUTTON
========================= */
.music-icon {
  font-size: 20px;
}
/* =========================
   FORCE HAMBURGER VISIBILITY
========================= */

/* DESKTOP & LAPTOP */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }
}

/* TABLET + MOBILE */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none !important;
  }
}
.pow-section {
  text-align: center;
}

.pow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pow-card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.pow-card:hover {
  transform: translateY(-8px);
  border-color: #4fc3f7;
  box-shadow: 0 0 25px rgba(79,195,247,0.2);
}

.pow-cta {
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .pow-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   GLOBAL CTA BUTTON (FIXED)
========================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;

  background: linear-gradient(135deg, #4fc3f7, #7c4dff);
  box-shadow: 0 0 20px rgba(79,195,247,0.4);

  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* 🔥 HOVER EFFECT (THIS YOU WERE MISSING) */
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(79,195,247,0.7),
              0 0 60px rgba(124,77,255,0.4);
}

/* 🔥 PREMIUM GLOW RIPPLE */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
              rgba(255,255,255,0.3),
              transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover::before {
  opacity: 0.3  ;
}
