

 /* CSS VARIABLES  */
:root {
  --accent: #00d4ff;
  --accent-2: #a855f7;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-2-glow: rgba(168, 85, 247, 0.15);
  --bg: #050a10;
  --bg-2: #0a1020;
  --bg-card: rgba(13, 20, 35, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(0, 212, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.06);
  --text: #e8edf5;
  --text-muted: #6b7a99;
  --text-dim: #374151;
  --white: #ffffff;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.12);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f0f4f8;
  --bg-2: #e2eaf4;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --border: rgba(0, 150, 200, 0.15);
  --border-light: rgba(0, 0, 0, 0.07);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #cbd5e1;
}
 /* RESET & BASE  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  max-width: 100%;
}

body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%; 
}
.section { padding: 120px 0; }
.accent { color: var(--accent); }
.mono { font-family: 'JetBrains Mono', monospace; }

/*   CUSTOM CURSOR   */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition-property: opacity;
  transition-duration: 0.3s;
}

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.cursor-outline {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .cursor-dot { opacity: 1; }

/*   SCROLL PROGRESS   */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 10000;
}
#scroll-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent);
}

/*   PRELOADER   */
#preloader {
  position: fixed; inset: 0;
  background: #020608;
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner {
  text-align: center;
  animation: preloaderFadeIn 0.5s ease forwards;
}

@keyframes preloaderFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.preloader-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: 4px;
}

.preloader-logo .logo-slash {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  animation: logoPulse 1.2s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  from { text-shadow: 0 0 10px var(--accent); }
  to { text-shadow: 0 0 40px var(--accent), 0 0 80px var(--accent); }
}

.preloader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden; margin: 0 auto 16px;
}

.preloader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: preloaderFill 2.5s cubic-bezier(0.4,0,0.2,1) forwards;
  box-shadow: 0 0 12px var(--accent);
}

@keyframes preloaderFill { to { width: 100%; } }

.preloader-label {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 3px; text-transform: uppercase;
  animation: labelCycle 2.5s steps(1, end) forwards;
}

@keyframes labelCycle {
  0%   { content: 'Initializing...'; }
  50%  { content: 'Loading assets...'; }
  100% { content: 'Ready.'; }
}


#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 10, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(240, 244, 248, 0.85);
}

.nav-container {
  max-width: 1280px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text); letter-spacing: 1px;
}

.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}

.nav-link {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px;
  position: relative; transition: var(--transition);
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 28px); height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.nav-link:hover, .nav-link.active {
  color: var(--text); background: var(--bg-glass);
}

.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-right {
  display: flex; align-items: center; gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); cursor: none;
  position: relative; overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0; transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.btn-nav {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  padding: 8px 18px;
}

.btn-nav:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; padding: 14px; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%; cursor: none;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 6px; cursor: none;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.mobile-overlay.active { display: block; }

/*   SECTION HEADERS   */
.section-header {
  text-align: center; margin-bottom: 70px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text);
}

.section-subtitle {
  margin-top: 16px; color: var(--text-muted);
  max-width: 500px; margin-left: auto; margin-right: auto;
}

/*   HERO   */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: var(--nav-h) 0 0;
}

#particleCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.06), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168,85,247,0.05), transparent);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center;
  min-height: calc(100vh - var(--nav-h));
}

/* Hero Image */
.hero-img-wrapper {
  position: relative; width: fit-content; margin: 0 auto;
  margin-top: -40px;
}

.hero-img {
  width: 320px; height: 320px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(0, 212, 255, 0.2);
  position: relative; z-index: 3;
  box-shadow: 0 0 60px rgba(0,212,255,0.12), inset 0 0 60px rgba(0,0,0,0.5);
}

.hero-img-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;   
}

.ring-1 { width: 360px; height: 360px; border-color: rgba(0,212,255,0.15); animation-delay: 0s; }
.ring-2 { width: 410px; height: 410px; border-color: rgba(0,212,255,0.08); animation-delay: 0.5s; }
.ring-3 { width: 460px; height: 460px; border-color: rgba(168,85,247,0.06); animation-delay: 1s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.02); }
}

.hero-badge {
  position: absolute; bottom: 16px; right: -20px;
  background: rgba(13,20,35,0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  padding: 8px 16px; border-radius: 30px;
  font-size: 0.8rem; color: var(--text); z-index: 10;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}

.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #22c55e; }
  50% { opacity: 0.6; box-shadow: 0 0 20px #22c55e; }
}

/* Floating animation */
.floating {
  animation: floating 4s ease-in-out infinite;
}

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

/* Hero text */
.hero-greeting {
  padding-top: 40px;
  font-size: 0.9rem; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}

.hero-typed-wrapper {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted); margin-bottom: 20px;
  height: 36px; display: flex; align-items: center;
}

.typed-prefix { margin-right: 6px; }

.typed-accent {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.hero-bio {
  color: var(--text-muted); line-height: 1.8;
  max-width: 520px; margin-bottom: 32px;
  font-size: 1rem;
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex; gap: 12px;
}

.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-glass);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,212,255,0.15);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  z-index: 2;
  animation: fadeInUp 1s ease 3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-scroll-indicator span {
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 3px; text-transform: uppercase;
}

.scroll-line {
  width: 1.5px; height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}

.scroll-dot {
  width: 100%; height: 20px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes scrollDown {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(50px); opacity: 0; }
}

/*   STATS SECTION   */
.stats-section {
  padding: 60px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative; overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 200% at 50% 50%, rgba(0,212,255,0.03), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px; position: relative;
}

.stat-card {
  text-align: center; padding: 32px 20px;
  border-right: 1px solid var(--border-light);
  position: relative;
}

.stat-card:last-child { border-right: none; }

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 30px rgba(0,212,255,0.3);
  display: inline;
}

.stat-suffix {
  font-family: 'Syne', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: inline;
}

.stat-label {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 8px; letter-spacing: 0.5px;
}

/*   ABOUT SECTION   */
.about-section { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px; align-items: start;
}

.about-img-frame {
  position: relative; display: inline-block;
}

.about-img-frame img {
  width: 100%; max-width: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover; aspect-ratio: 4/5;
}

.about-img-decoration {
  position: absolute; bottom: -20px; right: -20px;
  width: 100%; max-width: 400px; aspect-ratio: 4/5;
  border: 2px solid rgba(0,212,255,0.15);
  border-radius: var(--radius);
  z-index: -1;
}

.about-subtitle {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
}

.about-bio {
  color: var(--text-muted); line-height: 1.9;
  margin-bottom: 16px;
}

.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 24px 0 32px;
}

.highlight-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
}

.highlight-item i { font-size: 0.85rem; width: 16px; }

/* Timelines */
.timelines-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 8px;
}

.timeline-heading {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}

.timeline-heading i { color: var(--accent); }

.timeline { position: relative; padding-left: 20px; }

.timeline::before {
  content: '';
  position: absolute; left: 5px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}

.timeline-item {
  position: relative; margin-bottom: 20px;
}

.timeline-dot {
  position: absolute; left: -19px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.timeline-year {
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 1px; display: block; margin-bottom: 4px;
}

.timeline-content h5 {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); margin-bottom: 2px;
}

.timeline-content p {
  font-size: 0.8rem; color: var(--text-muted);
}

/*   SKILLS SECTION   */
.skills-section {
  background: var(--bg-2);
  position: relative; overflow: hidden;
}

.skills-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(168,85,247,0.05), transparent),
              radial-gradient(ellipse 70% 60% at 0% 100%, rgba(0,212,255,0.04), transparent);
}

.skills-categories {
  display: flex; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-bottom: 50px;
}

.skill-cat-btn {
  padding: 8px 20px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: var(--bg-glass);
  transition: var(--transition); cursor: none;
}

.skill-cat-btn:hover, .skill-cat-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; position: relative; z-index: 1;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: none;
}

.skill-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(168,85,247,0.04));
  opacity: 0; transition: opacity 0.4s;
  border-radius: var(--radius);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.08);
}

.skill-card:hover::before { opacity: 1; }

.skill-icon-wrap {
  font-size: 2.5rem; margin-bottom: 12px;
  display: flex; justify-content: center;
  transition: transform 0.3s;
}

.skill-card:hover .skill-icon-wrap { transform: scale(1.15) rotate(-5deg); }

.devicon-express-original { color: var(--text-muted); }
[data-theme="light"] .devicon-express-original { color: #333; }

.skill-name {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); margin-bottom: 14px;
}

.skill-bar-wrap {
  height: 4px; background: var(--border-light);
  border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}

.skill-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
}

.skill-percent {
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 1px;
}

/*   PROJECTS SECTION   */
.projects-section { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.08);
}

.project-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}

.project-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.project-card:hover .project-img-wrap img { transform: scale(1.07); }

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 10, 16, 0.88);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-info { padding: 20px 24px 24px; }

.project-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.5px;
}

.project-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}

.project-desc {
  font-size: 0.87rem; color: var(--text-muted);
  line-height: 1.7;
}

/*   SERVICES SECTION   */
.services-section { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: none;
}

.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.06);
}

.service-card:hover::after { opacity: 1; }

.service-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(168,85,247,0.1));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent);
  margin-bottom: 22px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

.service-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}

.service-desc {
  font-size: 0.87rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 20px;
}

.service-list {
  list-style: none; padding: 0;
}

.service-list li {
  font-size: 0.83rem; color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}

.service-list li::before {
  content: '→';
  color: var(--accent); font-size: 0.8rem;
}

.service-number {
  position: absolute; top: 20px; right: 24px;
  font-size: 3rem; font-weight: 800;
  color: var(--border-light);
  line-height: 1; user-select: none;
  transition: color 0.4s;
}

.service-card:hover .service-number { color: rgba(0,212,255,0.06); }

/*   RESUME SECTION   */
.resume-section { background: var(--bg); }

.resume-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 60px;
  position: relative; overflow: hidden;
}

.resume-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,0.06), transparent 70%);
  pointer-events: none;
}

/* Resume mock document */
.resume-preview { display: flex; justify-content: center; }

.resume-mock {
  width: 260px; background: #0a1428;
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
}

.resume-mock-header {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: center;
}

.resume-mock-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
  animation: mockPulse 2s ease-in-out infinite;
}

@keyframes mockPulse {
  0%,100% { box-shadow: 0 0 10px rgba(0,212,255,0.3); }
  50% { box-shadow: 0 0 25px rgba(0,212,255,0.6); }
}

.resume-mock-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.resume-mock-line {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.resume-mock-line.long { width: 100%; }
.resume-mock-line.medium { width: 70%; }
.resume-mock-line.short { width: 50%; }
.resume-mock-line.section-head {
  background: linear-gradient(90deg, rgba(0,212,255,0.3), rgba(0,212,255,0.1));
  margin-bottom: 10px;
}

.resume-mock-section { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }

.resume-mock-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.resume-mock-tags span {
  width: 45px; height: 18px;
  background: rgba(0,212,255,0.12);
  border-radius: 10px;
}

/* Resume info */
.resume-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 4px;
}

.resume-desc {
  color: var(--text-muted); line-height: 1.8;
  margin: 16px 0 24px;
}

.resume-stats {
  display: flex; gap: 24px; margin-bottom: 32px;
}

.resume-stats div {
  font-size: 0.87rem; color: var(--text-muted);
}

.resume-stats strong { font-size: 1.1rem; font-family: 'Syne', sans-serif; }

.resume-download-btn {
  font-size: 1rem;
}

/*   CONTACT SECTION   */
.contact-section { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px; margin-bottom: 24px;
}

.contact-info-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 12px;
}

.contact-info-card > p {
  color: var(--text-muted); margin-bottom: 28px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }

.contact-item {
  display: flex; align-items: center; gap: 16px;
}

.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.72rem; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase;
  display: block; margin-bottom: 2px;
}

.contact-item a, .contact-item span {
  font-size: 0.9rem; color: var(--text);
}

.contact-item a:hover { color: var(--accent); }

.contact-socials {
  display: flex; gap: 10px;
}

/* Map placeholder */
.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(0,212,255,0.06) 0%,
    rgba(0,212,255,0.03) 40%,
    transparent 70%);
}

.map-inner {
  text-align: center; position: relative; z-index: 1;
}

.map-icon {
  font-size: 2rem; color: var(--accent); display: block;
  margin-bottom: 8px;
  animation: mapIconFloat 2s ease-in-out infinite;
}

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

.map-inner p { font-size: 0.9rem; font-weight: 500; }
.map-inner span { font-size: 0.75rem; color: var(--text-muted); }

.map-pulse {
  position: absolute; inset: 0; border-radius: var(--radius);
  border: 2px solid rgba(0,212,255,0.1);
  animation: mapPulse 3s ease-in-out infinite;
}

@keyframes mapPulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.02); opacity: 1; }
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block; font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 8px; letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute; left: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.85rem;
  pointer-events: none; z-index: 1;
  transition: color 0.3s;
}

.textarea-wrap .input-icon {
  top: 16px; transform: none;
}

.form-input {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; padding: 12px 14px 12px 42px;
  transition: var(--transition); outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.06);
}

.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--accent); }

.form-input::placeholder { color: var(--text-dim); }

.form-textarea { resize: vertical; min-height: 130px; padding-top: 14px; }

[data-theme="light"] .form-input {
  background: rgba(0,0,0,0.03);
  color: var(--text);
}

.form-success {
  display: none; margin-top: 16px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; gap: 10px;
  align-items: center;
}

.form-success.show { display: flex; animation: fadeInUp2 0.4s ease; }

@keyframes fadeInUp2 {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/*   FOOTER   */
#footer {
  background: #030608;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted); font-size: 0.9rem;
  margin: 16px 0 20px; max-width: 260px;
  line-height: 1.7;
}

.footer-socials { display: flex; gap: 10px; }

.footer-links-col h4, .footer-contact-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
  letter-spacing: 1px; text-transform: uppercase;
}

.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links-col li a {
  font-size: 0.88rem; color: var(--text-muted);
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}

.footer-links-col li a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-col p {
  font-size: 0.87rem; color: var(--text-muted);
  margin-bottom: 10px; display: flex; gap: 10px; align-items: center;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem; color: var(--text-muted);
}

/*   BACK TO TOP   */
#backToTop {
  position: fixed; bottom: 32px; right: 32px;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: none; z-index: 500;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

#backToTop.visible {
  opacity: 1; visibility: visible; pointer-events: auto;
}

#backToTop:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

/*   PAGE TRANSITION   */
.page-transition {
  position: fixed; inset: 0; z-index: 99998;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(100%);
  pointer-events: none;
}

/*   RESPONSIVE   */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr 1.2fr; gap: 50px; }
  .hero-img { width: 280px; height: 280px; }
  .ring-1 { width: 310px; height: 310px; }
  .ring-2 { width: 360px; height: 360px; }
  .ring-3 { width: 400px; height: 400px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    height: 100vh; width: 280px;
    background: rgba(5, 10, 16, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column; justify-content: center;
    align-items: flex-start; padding: 80px 40px;
    gap: 6px; z-index: 999;
    border-left: 1px solid var(--border);
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    font-size: 1.1rem; padding: 12px 0;
    width: 100%; display: block;
  }

  .hamburger { display: flex; }
  .btn-nav { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center; gap: 40px;
    padding-top: 40px;
  }

  .hero-image-col { order: -1; }
  .hero-bio { margin: 0 auto 32px; }
  .hero-cta, .hero-socials { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .timelines-wrapper { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }

  .resume-card { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .resume-preview { order: -1; }
  .resume-stats { justify-content: center; }
  .resume-download-btn { width: auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }

  /* ── HERO IMAGE & RINGS FIX ── */
  .hero-img { width: 200px; height: 200px; }

  /* Rings chhoti screen ke andar rahein */
  .ring-1 { width: 230px; height: 230px; }
  .ring-2 { width: 260px; height: 260px; }
  .ring-3 { width: 290px; height: 290px; }

  /* Badge screen ke bahar na jaye */
  .hero-badge {
    right: 0;
    bottom: -12px;
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  /* ── GRIDS ── */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ── CARDS PADDING ── */
  .resume-card { padding: 32px 20px; }
  .contact-form { padding: 24px 16px; }
  .contact-info-card { padding: 20px 16px; }

  /* ── ABOUT ── */
  .about-highlights { grid-template-columns: 1fr; }
  .about-img-decoration { display: none; } /* decoration overflow hoti thi */

  /* ── CURSOR HIDE ── */
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }

  /* ── SKILL BUTTONS ── */
  .skill-cat-btn { cursor: pointer; }
  .skill-card { cursor: pointer; }
  .service-card { cursor: pointer; }
  .project-card { cursor: pointer; }
}

@media (max-width: 400px) {
  /* Extra chhoti screens (320px–400px) ke liye */
  .container { padding: 0 16px; }
  .hero-img { width: 170px; height: 170px; }
  .ring-1 { width: 196px; height: 196px; }
  .ring-2 { width: 222px; height: 222px; }
  .ring-3 { width: 248px; height: 248px; }
  .stat-number, .stat-suffix { font-size: 2.2rem; }
  .resume-card { padding: 24px 16px; }
  .hero-name { font-size: 2.2rem; }
}

/*   UTILITY ANIMATIONS   */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.skill-card[data-cat] {
  transition: opacity 0.4s, transform 0.4s;
}

.skill-card.hidden {
  display: none;
}

/*   SERVICES  */
.service-card {
  opacity: 1 !important;
  transform: none;
  visibility: visible !important;
}