/* ==========================================================================
   PORTFOLIO REDESIGN STYLESHEET — DESIGN SYSTEM & LAYOUTS
   ========================================================================== */

:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* Default theme values (Dark Mode) */
  --bg-dark: #050508;
  --bg-card: rgba(18, 20, 29, 0.45);
  --bg-sidebar: rgba(10, 11, 16, 0.75);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #6366f1;       /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.45);
  --secondary: #06b6d4;     /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.45);
  --accent: #ec4899;        /* Pink */
  --accent-glow: rgba(236, 72, 153, 0.45);
  --glass-bg: rgba(10, 11, 16, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
}

/* ── Dark Mode ── */
body[data-theme="dark"] {
  --bg-dark: #050508;
  --bg-card: rgba(18, 20, 29, 0.45);
  --bg-sidebar: rgba(10, 11, 16, 0.75);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.45);
  --accent: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.45);
  --glass-bg: rgba(10, 11, 16, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
}

/* ── Light Mode ── */
body[data-theme="light"] {
  --bg-dark: #f8fafc;        /* Soft Slate */
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --text-main: #0f172a;      /* Dark Slate */
  --text-muted: #475569;     /* Slate Gray */
  --primary: #4f46e5;       /* Softer Indigo */
  --primary-glow: rgba(79, 70, 229, 0.18);
  --secondary: #0891b2;     /* Softer Cyan */
  --secondary-glow: rgba(8, 145, 178, 0.18);
  --accent: #db2777;        /* Softer Pink */
  --accent-glow: rgba(219, 39, 119, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}
button, input, textarea, select {
  font-family: inherit;
  cursor: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  margin: -20px 0 0 -20px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.custom-cursor.hovered {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  background-color: rgba(6, 182, 212, 0.08);
  border-color: var(--accent);
}
.custom-cursor-dot.hovered {
  background-color: var(--secondary);
  transform: scale(1.4);
}

/* ==========================================================================
   STARS BACKGROUND
   ========================================================================== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.star-layer-1 {
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 110px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 180px 200px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 240px 80px, #ffffff, rgba(0,0,0,0));
  background-size: 300px 300px;
  opacity: 0.25;
}
.star-layer-2 {
  background-image: 
    radial-gradient(1px 1px at 25px 25px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 80px 130px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 190px 250px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 230px 40px, #ffffff, rgba(0,0,0,0));
  background-size: 250px 250px;
  opacity: 0.18;
}
body[data-theme="light"] .star-layer {
  opacity: 0.12;
  filter: invert(1) brightness(0.2);
}

/* ==========================================================================
   NAVIGATION DRAWERS & MOBILE SIDEPANEL
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s, border-color 0.4s;
  overflow-y: auto;
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar-profile {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.profile-img-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border-hover);
  margin-bottom: 0.8rem;
  transition: var(--transition-smooth);
}
.sidebar:hover .profile-img-container {
  border-color: var(--secondary);
  box-shadow: 0 0 20px var(--secondary-glow);
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}
.profile-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  flex: 1;
  margin-top: 1rem;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}
.menu-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.menu-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}
.menu-item:hover .menu-icon {
  transform: scale(1.1);
  color: var(--secondary);
}
.menu-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 15px var(--primary-glow);
}
.menu-item.active .menu-icon {
  color: #ffffff;
}
.sidebar-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-socials a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.sidebar-socials a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1001;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.active {
  display: block;
}

/* ==========================================================================
   MOBILE TOP HEADER
   ========================================================================== */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}
.mobile-header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.mobile-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo-orb {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 1;
}
.brand-logo-orb::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  animation: nav-logo-hue 6s linear infinite;
  z-index: -2;
}
.brand-logo-orb::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: var(--bg-dark);
  z-index: -1;
  transition: background-color 0.4s;
}
.brand-logo-img {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  object-fit: cover;
}
.brand-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}
.mobile-nav-toggle {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}
.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
  border-radius: 1px;
}
.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   CONTENT WRAPPER
   ========================================================================== */
.content-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  width: 100%;
  padding-top: 56px;
  background-color: var(--bg-dark);
  transition: background-color 0.4s ease;
}
.section-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px clamp(1rem, 2.5vw, 1.8rem);
}
.section-header {
  margin-bottom: 2.8rem;
}
.section-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--secondary);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 800;
  margin-top: 0.3rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  max-width: 480px;
}

/* Scroll reveals */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  contain: layout style;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 140% 120% at 50% 35%,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(6, 182, 212, 0.08) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  animation: hero-bg-shift 22s ease-in-out infinite;
}
@keyframes hero-bg-shift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1.5%, 1%) scale(1.02); }
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}
.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 3.5vw, 2.2rem);
}

/* LEFT: texts */
.hero-left {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 30px;
  padding: 0.3rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.intro-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.intro-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--secondary);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 0.65rem;
}
.title-iam {
  color: var(--text-main);
  opacity: 0.9;
}
.name-manoj {
  background: linear-gradient(120deg, #06b6d4, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.name-karki {
  background: linear-gradient(120deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.name-manoj, .name-karki {
  transition: transform 0.2s ease;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
}
.typing-text {
  color: var(--secondary);
  font-weight: 600;
}
.typing-cursor {
  animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
  from, to { color: transparent; }
  50% { color: var(--secondary); }
}

.hero-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 1.3rem;
  text-align: center;
  line-height: 1.55;
}
.hero-socials-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.8rem;
}
.hero-social-link {
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.hero-social-link:hover {
  color: var(--secondary);
}
.hero-social-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(5, 5, 10, 0.92);
  border: 1px solid var(--secondary);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  color: var(--secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}
.hero-social-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}
.hero-section .btn {
  padding: 0.62rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--secondary-glow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--glass-border-hover);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* RIGHT: profile image 3D scene */
.hero-right {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  z-index: 6;
}
@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}
.hero-tilt-scene {
  perspective: 1000px;
  width: clamp(190px, 43vw, 300px);
  height: clamp(190px, 43vw, 300px);
}
.hero-tilt-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-rot-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 3px solid var(--glass-border-hover);
  box-shadow: 0 15px 45px rgba(0,0,0,0.5), 0 0 30px var(--primary-glow);
  transform: translateZ(25px);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.hero-rot-wrap::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  filter: blur(15px);
  animation: hero-rot-breathe 4s infinite ease-in-out;
}
@keyframes hero-rot-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
.hero-rot-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-tilt-card:hover .hero-rot-wrap {
  border-color: var(--secondary);
  box-shadow: 0 15px 45px rgba(0,0,0,0.4), 0 0 35px var(--secondary-glow);
}

/* Orbiting icons */
.orbit-ring {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
  animation: orbitSpin 25s linear infinite;
  transform: translateZ(50px);
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.orbit-icon {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: orbitIconCounter 25s linear infinite;
}
@keyframes orbitIconCounter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.orbit-icon img {
  width: 60%;
  height: 60%;
}
.orbit-icon-1 { top: -19px; left: 50%; margin-left: -19px; }
.orbit-icon-2 { top: 50%; right: -19px; margin-top: -19px; }
.orbit-icon-3 { bottom: -19px; left: 50%; margin-left: -19px; }
.orbit-icon-4 { top: 50%; left: -19px; margin-top: -19px; }

/* Scroll indicators */
.scroll-indicator {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}
.wheel {
  width: 4px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scroll-wheel 1.6s infinite ease-in-out;
}
@keyframes scroll-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-fullscreen {
  position: relative;
  overflow: hidden;
}
.about-bg-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 90% 40%, rgba(99,102,241,0.05), transparent 70%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2.8rem;
  align-items: start;
}
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.about-img-frame {
  position: relative;
  width: 210px;
  height: 210px;
}
.about-img-rings {
  position: absolute;
  inset: -15px;
}
.about-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about-ring-outer {
  animation: spin 25s linear infinite;
}
.about-ring-inner {
  animation: spin-reverse 15s linear infinite;
  inset: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

.about-img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--secondary), var(--primary)) border-box;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-img-frame:hover .about-img-wrap img {
  transform: scale(1.05);
}
.about-img-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
}
.about-badge {
  position: absolute;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.about-badge-tl {
  top: 10px;
  left: -10px;
  color: var(--secondary);
}
.about-badge-br {
  bottom: 10px;
  right: -10px;
  color: var(--accent);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

.about-stat-row {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
  width: 100%;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}
.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.about-stat-num {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-stat-num::after {
  content: '+';
}
.about-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 0.2rem;
}
.about-stat-divider {
  width: 1px;
  background: var(--glass-border);
  align-self: stretch;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.role-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.role-badge-cyan { background: rgba(6, 182, 212, 0.08); color: var(--secondary); border-color: rgba(6, 182, 212, 0.2); }
.role-badge-violet { background: rgba(99, 102, 241, 0.08); color: var(--primary); border-color: rgba(99, 102, 241, 0.2); }
.role-badge-pink { background: rgba(236, 72, 153, 0.08); color: var(--accent); border-color: rgba(236, 72, 153, 0.2); }

.about-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}
.about-name .highlight {
  color: var(--secondary);
}
.about-bio {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.58;
}
.about-bio strong {
  color: var(--text-main);
}

.about-edu {
  margin-top: 0.5rem;
}
.about-skills-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}
.about-edu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-edu-item {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  transition: var(--transition-fast);
}
.about-edu-item:hover {
  transform: translateX(4px);
  border-color: var(--glass-border-hover);
}
.about-edu-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  margin-top: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--secondary-glow);
}
.about-edu-dot-sm {
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}
.about-edu-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.about-edu-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.about-edu-org {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.about-fact {
  display: flex;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  align-items: center;
  transition: var(--transition-fast);
}
.about-fact:hover {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}
.about-fact svg {
  color: var(--secondary);
  flex-shrink: 0;
}
.fact-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}
.fact-value {
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   RESUME TIMELINE SECTION
   ========================================================================== */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}
.resume-col-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--glass-border);
}
.resume-col-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.resume-col-icon-edu {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
}
.resume-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.timeline-item {
  display: flex;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-dark);
  margin-top: 6px;
  z-index: 1;
}
.timeline-dot-sm {
  background: var(--secondary);
}
.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--glass-border);
  margin: 4px 0;
}
.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem;
  margin-left: 0.85rem;
  transition: var(--transition-smooth);
}
.timeline-card:hover {
  transform: translateX(4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.timeline-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}
.timeline-org {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.timeline-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  text-transform: uppercase;
}
.timeline-badge-cyan { background: rgba(6, 182, 212, 0.1); color: var(--secondary); border: 1px solid rgba(6, 182, 212, 0.2); }
.timeline-badge-violet { background: rgba(99, 102, 241, 0.1); color: var(--primary); border: 1px solid rgba(99, 102, 241, 0.2); }
.timeline-badge-pink { background: rgba(236, 72, 153, 0.1); color: var(--accent); border: 1px solid rgba(236, 72, 153, 0.2); }

.timeline-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}
.timeline-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.timeline-tech-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.resume-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 2.8rem;
}
.resume-download-btn {
  font-size: 0.86rem;
  padding: 0.7rem 1.5rem;
}

/* ==========================================================================
   SKILLS ECOSYSTEM SECTION
   ========================================================================== */
.ecosystem-section {
  position: relative;
  overflow: hidden;
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 2;
}
.tech-column {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.2rem 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.tech-column:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
}
.column-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}
.column-icon {
  font-size: 1.5rem;
}
.column-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.tech-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}
.tech-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.tech-info-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tech-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tech-name {
  font-size: 0.76rem;
  font-weight: 600;
}
.tech-progress-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}
.tech-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  width: 0%;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal-skill.revealed .tech-progress-fill {
  width: var(--progress-width);
}
.tech-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(5, 5, 8, 0.95);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.68rem;
  color: var(--secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: normal;
  width: 160px;
  text-align: center;
  z-index: 100;
}
.tech-card:hover .tech-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.connections-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.conn-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 6;
}
.packet-flow {
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 8 90;
  animation: flowPacket 3.5s linear infinite;
}
@keyframes flowPacket {
  to { stroke-dashoffset: -100; }
}

.experience-stats {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 140px;
  transition: var(--transition-fast);
}
.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.project-filters {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.45rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.35rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.projects-grid.is-filtering .project-card {
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.projects-grid.is-filtering .project-card.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(-4px) scale(1.01);
  border-color: var(--secondary);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28), 0 0 28px var(--secondary-glow);
}
.projects-grid.is-filtering .project-card.is-dimmed {
  opacity: 0.34;
  filter: blur(2px) saturate(0.55);
  transform: scale(0.975);
}
.projects-grid.is-filtering .project-card.is-dimmed:hover {
  opacity: 0.58;
  filter: blur(1px) saturate(0.7);
  transform: scale(0.985);
  border-color: var(--glass-border);
  box-shadow: none;
}
.project-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img {
  transform: scale(1.04);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.5) 70%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.project-overlay-actions {
  display: flex;
  gap: 0.6rem;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-icon-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-icon-primary:hover {
  background: #5254cc;
}
.project-featured-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  z-index: 2;
}
.project-info {
  padding: 0.9rem;
}
.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.project-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.12rem 0 0.35rem 0;
}
.project-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--glass-border);
}
.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.project-tags span {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  color: var(--text-muted);
}
.project-links-inline a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.project-links-inline a:hover {
  color: var(--primary);
}

/* ==========================================================================
   ACHIEVEMENTS SECTION
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}
.ach-card-new {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ach-card-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.3;
}
.ach-card-new:hover .ach-card-glow {
  opacity: 0.55;
}
.ach-glow-cyan { background: var(--secondary); }
.ach-glow-violet { background: var(--primary); }
.ach-glow-pink { background: var(--accent); }

.ach-card-new:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.ach-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ach-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ach-icon-cyan { background: rgba(6,182,212,0.1); color: var(--secondary); border: 1px solid rgba(6,182,212,0.2); }
.ach-icon-violet { background: rgba(99,102,241,0.1); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.ach-icon-pink { background: rgba(236,72,153,0.1); color: var(--accent); border: 1px solid rgba(236,72,153,0.2); }

.ach-year-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}
.ach-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.ach-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  width: fit-content;
}
.ach-type-cyan { background: rgba(6,182,212,0.1); color: var(--secondary); border: 1px solid rgba(6,182,212,0.2); }
.ach-type-violet { background: rgba(99,102,241,0.1); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.ach-type-pink { background: rgba(236,72,153,0.1); color: var(--accent); border: 1px solid rgba(236,72,153,0.2); }

.ach-title-new {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.ach-org-new {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ach-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.ach-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}
.ach-cert-thumb {
  width: 50px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.ach-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ach-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.ach-view-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.ach-view-cert-btn:hover {
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-1.5px);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-fullscreen {
  position: relative;
  overflow: hidden;
}
.contact-bg-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 10% 60%, rgba(6,182,212,0.04), transparent 60%);
  pointer-events: none;
}
.contact-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}
.contact-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.contact-headline {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.6rem;
}
.contact-subtext {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  transition: var(--transition-fast);
}
.contact-detail-item:hover {
  border-color: var(--glass-border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.contact-detail-static {
  pointer-events: none;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon-cyan { background: rgba(6,182,212,0.1); color: var(--secondary); border: 1px solid rgba(6,182,212,0.2); }
.contact-detail-icon-violet { background: rgba(99,102,241,0.1); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.contact-detail-icon-pink { background: rgba(236,72,153,0.1); color: var(--accent); border: 1px solid rgba(236,72,153,0.2); }

.contact-detail-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.contact-detail-value {
  font-size: 0.78rem;
  font-weight: 500;
}
.contact-detail-arrow {
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}
.contact-detail-item:hover .contact-detail-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

.contact-social-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.contact-social-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.contact-socials {
  display: flex;
  gap: 0.5rem;
}
.contact-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.contact-social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}
.contact-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* RIGHT: Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.4rem;
}
.contact-form-header {
  margin-bottom: 1.8rem;
}
.contact-form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.contact-form-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.input-group {
  position: relative;
  width: 100%;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.4rem 0;
  background: transparent;
  border: none;
  border-bottom: 1.2px solid var(--glass-border-hover);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.input-group textarea {
  resize: none;
}
.input-group label {
  position: absolute;
  top: 0.4rem;
  left: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -1.1rem;
  font-size: 0.78rem;
  color: var(--secondary);
}
.input-group .bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.3s;
}
.input-group input:focus ~ .bar,
.input-group textarea:focus ~ .bar {
  width: 100%;
}
.btn-submit {
  width: 100%;
  justify-content: center;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--secondary-glow);
}
.btn-submit:hover .arrow-icon {
  transform: translateX(4px);
}
.arrow-icon {
  transition: transform 0.3s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.2rem 0;
  background: rgba(10, 11, 16, 0.2);
}
.footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  justify-content: center;
  align-items: center;
}
.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WHATSAPP FLOATING BADGE
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: clamp(20px, 4vw, 30px);
  right: clamp(20px, 4vw, 30px);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1005;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  animation: whatsapp-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   CV PREVIEW MODAL
   ========================================================================== */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.cv-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(14px);
}
.cv-modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  height: min(92vh, 940px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--glass-border-hover);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.11), rgba(6, 182, 212, 0.05), rgba(236, 72, 153, 0.07)), var(--bg-dark);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 34px var(--primary-glow);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-modal.is-open .cv-modal-dialog {
  transform: translateY(0) scale(1);
}
.cv-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.035);
}
.cv-modal-heading {
  min-width: 0;
}
.cv-modal-heading span {
  display: block;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cv-modal-heading h3 {
  margin-top: 0.15rem;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
  color: var(--text-main);
}
.cv-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cv-tool-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--glass-border-hover);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cv-tool-btn:hover {
  transform: translateY(-1px);
  border-color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.14);
}
.cv-download-btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}
.cv-close-btn:hover {
  border-color: var(--accent);
  background: rgba(236, 72, 153, 0.1);
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.14);
}
.cv-modal-stage {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.09), transparent 26rem),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.08), transparent 26rem),
    rgba(0, 0, 0, 0.18);
}
.cv-preview-shell {
  --cv-zoom: 1;
  width: min(100%, 680px);
  aspect-ratio: 210 / 297;
  flex: 0 0 auto;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  transform: scale(var(--cv-zoom));
  transform-origin: top center;
  transition: transform 0.2s ease;
}
.cv-preview-media {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #fff;
}
.cv-preview-pdf {
  display: none;
}
.cv-preview-shell.is-pdf .cv-preview-image {
  display: none;
}
.cv-preview-shell.is-pdf .cv-preview-pdf {
  display: block;
}

@media (max-width: 780px) {
  .cv-modal-dialog {
    height: 94vh;
    border-radius: 14px;
  }

  .cv-modal-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-modal-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cv-tool-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 0.45rem;
  }

  .cv-tool-btn span {
    display: none;
  }

  .cv-modal-stage {
    padding: 0.8rem;
  }
}

@media (max-width: 420px) {
  .cv-modal {
    padding: 0.45rem;
  }

  .cv-modal-toolbar {
    padding: 0.8rem;
  }
}

/* ==========================================================================
   CERTIFICATE MODAL
   ========================================================================== */
.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.certificate-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.certificate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.75);
  backdrop-filter: blur(12px);
}
.certificate-modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 800px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--glass-border-hover);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04), rgba(236, 72, 153, 0.06)), var(--bg-dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px var(--primary-glow);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.certificate-modal.is-open .certificate-modal-dialog {
  transform: translateY(0) scale(1);
}
.certificate-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border-hover);
  border-radius: 50%;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}
.certificate-modal-close:hover {
  transform: rotate(90deg);
  box-shadow: 0 0 15px var(--accent-glow);
  border-color: var(--accent);
}
.certificate-modal-close span {
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--text-main);
}
.certificate-modal-close span:first-child { transform: rotate(45deg); }
.certificate-modal-close span:last-child { transform: rotate(-45deg); }

.certificate-modal-image-wrap {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.15);
}
.certificate-modal-image {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.certificate-modal-placeholder {
  position: absolute;
  inset: 1.2rem;
  border: 2px dashed rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: radial-gradient(circle at center, rgba(18, 20, 29, 0.95), rgba(10, 11, 16, 0.98));
  color: var(--text-main);
  text-align: center;
}
.certificate-modal-placeholder::before {
  content: '🏆';
  font-size: 2.8rem;
  filter: drop-shadow(0 0 8px var(--secondary-glow));
}
.certificate-modal-info {
  padding: 1.1rem 1.3rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}
.certificate-modal-info span {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.certificate-modal-info h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}
.certificate-modal-info p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   DESKTOP RESPONSIVE LAYOUTS (>= 1024px)
   ========================================================================== */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar { display: none !important; }
  .sidebar-overlay { display: none !important; }
  .mobile-header { display: none !important; }

  /* Desktop Header */
  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(120deg, rgba(99,102,241,0.06), rgba(6,182,212,0.04), rgba(236,72,153,0.05)), var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1003;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  }
  body.nav-scrolled .desktop-nav {
    background: linear-gradient(120deg, rgba(99,102,241,0.1), rgba(6,182,212,0.06), rgba(236,72,153,0.08)), rgba(10, 11, 16, 0.8);
    border-bottom-color: var(--glass-border-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  .desktop-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
  }
  .desktop-logo .brand-logo-orb {
    width: 40px;
    height: 40px;
  }
  .desktop-logo:hover .brand-logo-orb {
    transform: translateY(-2px) rotate(-3deg);
  }
  .desktop-logo:hover .brand-logo-orb::before {
    animation-duration: 3s;
  }

  .desktop-nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.4rem;
    max-width: 680px;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
  }
  .desktop-nav-indicator {
    position: absolute;
    top: 0.25rem;
    left: var(--nav-indicator-left, 0.4rem);
    width: var(--nav-indicator-width, 0px);
    height: calc(100% - 0.5rem);
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(99,102,241,0.25), rgba(6,182,212,0.18), rgba(236,72,153,0.2));
    box-shadow: 0 0 12px var(--primary-glow);
    opacity: var(--nav-indicator-opacity, 0);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    pointer-events: none;
    will-change: left, width;
  }
  .desktop-nav-link {
    position: relative;
    z-index: 1;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.25s, transform 0.25s;
  }
  .desktop-nav-link:hover {
    color: var(--text-main);
    transform: translateY(-0.5px);
  }
  .desktop-nav-link.active {
    color: var(--text-main);
    font-weight: 600;
  }

  .content-wrapper {
    padding-top: 70px;
  }
  .section-container {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* Hero split */
  .hero-section {
    min-height: calc(100vh - 70px);
  }
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  }
  .hero-left {
    text-align: left;
    align-items: flex-start;
    flex: 1 1 50%;
  }
  .hero-desc {
    text-align: left;
  }
  .hero-cta {
    justify-content: flex-start;
  }
  .hero-right {
    flex: 1 1 45%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   COMPACT DESKTOP LAYOUT (100% zoom friendly)
   ========================================================================== */
@media (min-width: 1024px) {
  .section-container {
    max-width: 1180px;
    padding: 70px clamp(1rem, 2.2vw, 1.7rem);
  }
  .section-header {
    margin-bottom: 2.8rem;
  }
  .section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  }
  .section-subtitle {
    font-size: 0.92rem;
    max-width: 500px;
  }

  .hero-section {
    min-height: 92vh;
  }
  .hero-inner {
    gap: 1.6rem;
    padding: 0 clamp(1rem, 2.4vw, 2rem);
  }
  .hero-title {
    font-size: clamp(1.85rem, 5.7vw, 3.15rem);
  }
  .hero-desc {
    font-size: 0.95rem;
    max-width: 600px;
  }

  .about-grid {
    gap: 2.6rem;
    align-items: center;
  }
  .about-img-frame {
    width: 200px;
    height: 200px;
  }
  .about-img-rings {
    inset: -12px;
  }
  .about-visual {
    gap: 1.5rem;
  }
  .about-stat-row {
    padding: 0.95rem 1.1rem;
  }
  .about-content {
    gap: 1.15rem;
  }
  .about-name {
    font-size: 1.45rem;
  }
  .about-bio {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .about-edu-item {
    padding: 0.9rem 1.1rem;
  }
  .about-fact {
    padding: 0.7rem 0.9rem;
  }

  .resume-grid {
    gap: 2.4rem;
  }
  .resume-col-header {
    margin-bottom: 1.6rem;
    padding-bottom: 0.65rem;
  }
  .resume-col-title {
    font-size: 1.1rem;
  }
  .timeline {
    gap: 1.35rem;
  }
  .timeline-card {
    padding: 1.1rem;
    margin-left: 0.95rem;
  }
  .timeline-card-header {
    margin-bottom: 0.55rem;
  }
  .timeline-title {
    font-size: 0.9rem;
  }
  .timeline-org {
    font-size: 0.76rem;
  }
  .timeline-desc {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0.7rem;
  }
  .timeline-tech-tags span {
    font-size: 0.64rem;
    padding: 0.14rem 0.46rem;
  }
  .resume-cta-row {
    margin-top: 2.8rem;
  }

  .ecosystem-grid {
    gap: 1.35rem;
    margin-bottom: 2.8rem;
  }
  .tech-column {
    padding: 1.2rem 1rem;
  }
  .column-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.55rem;
  }
  .column-header h3 {
    font-size: 1.1rem;
  }
  .tech-grid {
    gap: 0.7rem;
  }
  .tech-card {
    padding: 0.7rem;
  }
  .tech-name {
    font-size: 0.8rem;
  }
  .experience-stats {
    gap: 1.6rem;
  }
  .stat-card {
    padding: 1rem 1.4rem;
    min-width: 140px;
  }
  .stat-number {
    font-size: 1.95rem;
  }

  .project-filters {
    gap: 0.5rem;
    margin-bottom: 1.8rem;
  }
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
  }
  .projects-grid {
    gap: 1.35rem;
  }
  .project-info {
    padding: 1rem;
  }
  .project-title {
    font-size: 1rem;
  }
  .project-desc {
    font-size: 0.8rem;
  }
  .project-footer {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
  }

  .achievements-grid {
    gap: 1.35rem;
  }
  .ach-card-new {
    padding: 1.25rem;
    gap: 0.8rem;
  }
  .ach-title-new {
    font-size: 0.95rem;
  }
  .ach-org-new {
    font-size: 0.76rem;
  }
  .ach-desc {
    font-size: 0.8rem;
    line-height: 1.55;
  }
  .ach-card-footer {
    padding-top: 0.8rem;
  }

  .contact-grid-new {
    gap: 2.4rem;
  }
  .contact-headline {
    font-size: 1.45rem;
  }
  .contact-subtext {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
  }
  .contact-detail-item {
    padding: 0.8rem 1rem;
    gap: 0.85rem;
  }
  .contact-detail-label {
    font-size: 0.62rem;
  }
  .contact-detail-value {
    font-size: 0.82rem;
  }
  .contact-social-row {
    gap: 0.7rem;
    margin-bottom: 1.4rem;
  }
  .contact-form-card {
    padding: 1.6rem;
  }
  .contact-form {
    gap: 1.2rem;
  }
  .input-row {
    gap: 1rem;
  }
  .btn-submit {
    padding: 0.75rem;
  }

  .footer {
    padding: 1.8rem 0;
  }
}

/* ==========================================================================
   CONSOLIDATED MEDIA BREAKPOINTS
   ========================================================================== */

/* ── Tablet & Laptop (< 1024px) ── */
@media (max-width: 1023px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
  body, a, button, input, textarea {
    cursor: auto !important;
  }
  .about-grid,
  .resume-grid,
  .contact-grid-new {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: -1;
  }
  .about-stat-row {
    max-width: 450px;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-grid .tech-column:last-child {
    grid-column: span 2;
  }
  .connections-svg {
    display: none !important;
  }
}

/* ── Small Tablet & Large Mobile (< 768px) ── */
@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid .tech-column:last-child {
    grid-column: span 1;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .about-stat-row {
    max-width: 100%;
  }
  .about-facts-grid {
    grid-template-columns: 1fr;
  }
  .experience-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .stat-card {
    width: 100%;
    max-width: 320px;
  }
}

/* ── Small Mobile (< 480px) ── */
@media (max-width: 479px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
  .about-edu-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .about-edu-dot {
    display: none;
  }
}

/* conic animation keyframes */
@keyframes nav-logo-hue {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   HERO & NAVBAR — AUTHORITATIVE SINGLE BLOCK (v3)
   ========================================================================== */
.mobile-header,
.desktop-nav {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(3, 16, 24, 0.62)),
    rgba(5, 10, 20, 0.58);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .mobile-header,
body[data-theme="light"] .desktop-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(236, 253, 245, 0.58)),
    rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

body.nav-scrolled .desktop-nav {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(3, 16, 24, 0.78)),
    rgba(5, 10, 20, 0.82);
  border-bottom-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

body[data-theme="light"].nav-scrolled .desktop-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 253, 250, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.10);
}

.brand-logo-orb {
  width: 42px;
  height: 42px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.brand-logo-orb::after {
  background: rgba(4, 12, 22, 0.88);
}

body[data-theme="light"] .brand-logo-orb::after {
  background: rgba(255, 255, 255, 0.92);
}

.brand-logo-img {
  width: 82%;
  height: 82%;
}

.brand-logo-link:hover .brand-logo-orb {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.35));
}

.theme-toggle-btn {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-track {
  position: relative;
  width: 56px;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.10)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.toggle-thumb {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.25);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.theme-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

body[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-70deg) scale(0.5);
}

body[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .toggle-track {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(6, 182, 212, 0.10)),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .toggle-thumb {
  transform: translateX(24px);
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #06b6d4);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.26);
}

body[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(70deg) scale(0.5);
}

.theme-toggle-btn:hover .toggle-track {
  border-color: rgba(6, 182, 212, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(6, 182, 212, 0.18);
}

.theme-toggle-btn:active .toggle-thumb {
  transform: scale(0.92);
}

body[data-theme="light"] .theme-toggle-btn:active .toggle-thumb {
  transform: translateX(24px) scale(0.92);
}

.hero-section {
  min-height: calc(100vh - 60px);
  padding: 0;
  background:
    radial-gradient(circle at 42% 42%, rgba(6, 182, 212, 0.12), transparent 24%),
    radial-gradient(circle at 76% 45%, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.10), transparent 24%),
    linear-gradient(120deg, #031013 0%, #070b1c 48%, #04181b 100%);
}

body[data-theme="light"] .hero-section {
  background:
    radial-gradient(circle at 42% 42%, rgba(8, 145, 178, 0.12), transparent 24%),
    radial-gradient(circle at 76% 45%, rgba(79, 70, 229, 0.12), transparent 28%),
    radial-gradient(circle at 18% 20%, rgba(219, 39, 119, 0.08), transparent 24%),
    linear-gradient(120deg, #f8fafc 0%, #eefaf9 48%, #f7f7ff 100%);
}

.hero-section::before {
  background:
    linear-gradient(90deg, rgba(3, 16, 19, 0.86) 0%, rgba(7, 11, 28, 0.54) 48%, rgba(4, 24, 27, 0.78) 100%),
    radial-gradient(ellipse at 43% 48%, rgba(99, 102, 241, 0.18), transparent 36%);
  animation: premium-hero-breathe 18s ease-in-out infinite;
}

body[data-theme="light"] .hero-section::before {
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.84) 0%, rgba(238, 250, 249, 0.54) 48%, rgba(247, 247, 255, 0.78) 100%),
    radial-gradient(ellipse at 43% 48%, rgba(8, 145, 178, 0.12), transparent 36%);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 33% 18%, rgba(6, 182, 212, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 47% 28%, rgba(236, 72, 153, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 72%, rgba(99, 102, 241, 0.28) 0 3px, transparent 4px);
  animation: premium-float-specks 9s ease-in-out infinite;
}

@keyframes premium-hero-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.88; }
}

@keyframes premium-float-specks {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.9; }
  50% { transform: translate3d(0, -14px, 0); opacity: 0.62; }
}

.hero-aurora {
  display: block;
  opacity: 0.24;
  filter: saturate(1.08);
}

.hero-particle-canvas {
  z-index: 3;
  opacity: 0.84;
  mask-image: radial-gradient(ellipse 42% 56% at 43% 50%, #000 0%, #000 42%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 42% 56% at 43% 50%, #000 0%, #000 42%, transparent 75%);
}

.shape-1 {
  top: 14%;
  left: 35%;
  right: auto;
  width: 98px;
  height: 98px;
  opacity: 0.42;
}

.shape-2 {
  right: 16%;
  bottom: 14%;
  width: 134px;
  height: 134px;
  opacity: 0.35;
}

.hero-inner {
  min-height: inherit;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding: 4.5rem clamp(1rem, 3vw, 3rem) 5rem;
}

.hero-left {
  width: min(100%, 610px);
  max-width: 610px;
  text-align: left;
  align-items: flex-start;
  animation: premium-hero-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes premium-hero-left {
  from { opacity: 0; transform: translate3d(-26px, 26px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-status-badge {
  margin-bottom: 1rem;
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.10);
}

.intro-tag {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 5px;
}

.intro-tag::before {
  width: 46px;
  background: linear-gradient(90deg, var(--secondary), transparent);
}

.hero-title {
  margin-bottom: 0.8rem;
  font-size: clamp(3rem, 5.8vw, 5.65rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  filter: drop-shadow(0 20px 34px rgba(99, 102, 241, 0.18));
}

.title-iam {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--text-main);
  opacity: 0.96;
}

.name-manoj {
  background: linear-gradient(120deg, #0fbce7 0%, #6475ff 82%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.name-karki {
  background: linear-gradient(120deg, #8b5cf6 0%, #ec4899 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-bottom: 1.35rem;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
}

.subtitle-prefix {
  color: var(--text-main);
}

.typing-text,
.typing-cursor {
  color: var(--secondary);
  font-weight: 800;
}

.hero-desc {
  max-width: 510px;
  margin-bottom: 1.65rem;
  text-align: left;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.hero-socials-row {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  justify-content: flex-start;
}

.hero-social-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body[data-theme="light"] .hero-social-link {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.10);
}

.hero-social-link svg {
  width: 19px;
  height: 19px;
}

.hero-social-link:hover {
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.52);
  background: rgba(6, 182, 212, 0.10);
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.18);
}

.hero-social-link::after {
  bottom: calc(100% + 10px);
  border-color: rgba(6, 182, 212, 0.42);
  background: rgba(4, 12, 22, 0.92);
  border-radius: 8px;
}

.hero-cta {
  gap: 0.95rem;
  justify-content: flex-start;
}

.btn {
  min-height: 52px;
  border-radius: 999px;
  padding: 0.82rem 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-section .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-section .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-section .btn-primary::before {
  background: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
}

.hero-section .btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(99, 102, 241, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .hero-section .btn-secondary {
  background: rgba(255, 255, 255, 0.74);
}

.hero-section .btn:hover {
  transform: translateY(-4px);
}

.hero-section .btn:hover::before {
  opacity: 1;
}

.hero-section .btn-primary:hover {
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.20), 0 0 30px rgba(6, 182, 212, 0.16);
}

.hero-section .btn-secondary:hover {
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.62);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.16);
}

.hero-right {
  animation: premium-hero-right 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

@keyframes premium-hero-right {
  from { opacity: 0; transform: translate3d(34px, 24px, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.hero-tilt-scene {
  width: clamp(300px, 35vw, 540px);
  height: clamp(300px, 35vw, 540px);
}

.hero-tilt-card {
  display: grid;
  place-items: center;
}

.hero-rot-wrap {
  --profile-border-angle: 0deg;
  position: relative;
  inset: auto;
  width: 82%;
  height: 82%;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
    conic-gradient(from var(--profile-border-angle), #06b6d4, #6366f1, #ec4899, #06b6d4) border-box;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    0 0 54px rgba(99, 102, 241, 0.38),
    0 0 96px rgba(6, 182, 212, 0.14);
  transform: translateZ(28px);
  animation: profile-border-spin 8s linear infinite, profile-glow-pulse 4.2s ease-in-out infinite;
}

body[data-theme="light"] .hero-rot-wrap {
  background:
    linear-gradient(#f8fafc, #f8fafc) padding-box,
    conic-gradient(from var(--profile-border-angle), #0891b2, #4f46e5, #db2777, #0891b2) border-box;
  box-shadow:
    0 22px 70px rgba(15, 23, 42, 0.18),
    0 0 44px rgba(79, 70, 229, 0.20),
    0 0 82px rgba(8, 145, 178, 0.12);
}

@property --profile-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes profile-border-spin {
  to { --profile-border-angle: 360deg; }
}

@keyframes profile-glow-pulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.08) brightness(1.04); }
}

.hero-rot-wrap::before {
  inset: -28px;
  z-index: -1;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 66%);
  filter: blur(16px);
}

.hero-rot-img {
  object-position: center 20%;
}

.hero-tilt-card:hover .hero-rot-wrap {
  border-color: transparent;
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.38),
    0 0 62px rgba(6, 182, 212, 0.34),
    0 0 104px rgba(236, 72, 153, 0.16);
}

.orbit-ring {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  animation: orbitSpin 18s linear infinite;
}

.orbit-icon {
  width: 48px;
  height: 48px;
  background: rgba(8, 16, 28, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 18px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(14px);
  animation: orbitIconCounter 18s linear infinite;
}

body[data-theme="light"] .orbit-icon {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 0 18px rgba(79, 70, 229, 0.10);
}

.orbit-icon-1 { top: -24px; left: 50%; margin-left: -24px; }
.orbit-icon-2 { top: 50%; right: -24px; margin-top: -24px; }
.orbit-icon-3 { bottom: -24px; left: 50%; margin-left: -24px; }
.orbit-icon-4 { top: 50%; left: -24px; margin-top: -24px; }

@media (min-width: 1024px) {
  .desktop-nav {
    height: 76px;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  }

  .desktop-logo {
    min-width: 190px;
  }

  .desktop-logo .brand-logo-orb {
    width: 48px;
    height: 48px;
  }

  .desktop-nav-links {
    max-width: 720px;
    min-height: 50px;
    gap: 0.12rem;
    margin: 0 clamp(1.2rem, 3vw, 2.6rem);
    padding: 0.3rem 0.45rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body[data-theme="light"] .desktop-nav-links {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(15, 23, 42, 0.10);
  }

  .desktop-nav-indicator {
    top: 0.3rem;
    height: calc(100% - 0.6rem);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(99, 102, 241, 0.38), rgba(6, 182, 212, 0.22)),
      rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  .desktop-nav-link {
    padding: 0.58rem 1rem;
    font-weight: 700;
    font-size: 0.84rem;
  }

  .content-wrapper {
    padding-top: 76px;
  }

  .hero-section {
    min-height: calc(100vh - 76px);
  }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem) 2rem;
  }

  .hero-left {
    flex: 0 1 610px;
    margin-left: 0;
    text-align: left;
    align-items: flex-start;
  }

  .hero-right {
    flex: 0 0 clamp(390px, 35vw, 540px);
    justify-content: flex-end;
  }

  .hero-title {
    white-space: nowrap;
  }
}

@media (min-width: 1280px) {
  .hero-inner {
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .desktop-nav {
    padding-inline: 1.25rem;
  }

  .desktop-logo {
    min-width: 150px;
  }

  .desktop-nav-links {
    margin-inline: 0.75rem;
  }

  .desktop-nav-link {
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }

  .hero-inner {
    gap: 2rem;
    padding-inline: 1.25rem;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-left {
    flex-basis: 520px;
  }

  .hero-right {
    flex-basis: 380px;
  }
}

@media (max-width: 1023px) {
  .mobile-header {
    height: 64px;
  }

  .content-wrapper {
    padding-top: 64px;
  }

  .hero-section {
    min-height: calc(100vh - 64px);
  }

  .hero-inner {
    align-items: flex-start;
    padding: 3.25rem clamp(1.1rem, 4vw, 2rem) 5rem;
  }

  .hero-left {
    text-align: left;
    align-items: flex-start;
    max-width: 680px;
  }

  .hero-desc {
    text-align: left;
  }

  .hero-socials-row,
  .hero-cta {
    justify-content: flex-start;
  }

  .hero-subtitle {
    justify-content: flex-start;
  }

  .hero-right {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .mobile-header {
    padding-inline: 1rem;
  }

  .brand-logo-text {
    font-size: 1rem;
  }

  .toggle-track {
    width: 50px;
    height: 30px;
  }

  .toggle-thumb {
    width: 22px;
    height: 22px;
  }

  body[data-theme="light"] .toggle-thumb {
    transform: translateX(20px);
  }

  body[data-theme="light"] .theme-toggle-btn:active .toggle-thumb {
    transform: translateX(20px) scale(0.92);
  }

  .hero-inner {
    gap: 2rem;
    padding: 2.6rem 1rem 5rem;
  }

  .hero-status-badge {
    display: none;
  }

  .intro-tag {
    font-size: 0.68rem;
    letter-spacing: 3px;
  }

  .intro-tag::before {
    width: 30px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 13vw, 3.65rem);
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1.18rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-socials-row {
    gap: 0.75rem;
  }

  .hero-social-link {
    width: 40px;
    height: 40px;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-tilt-scene {
    width: min(78vw, 310px);
    height: min(78vw, 310px);
  }

  .orbit-icon {
    width: 40px;
    height: 40px;
  }

  .orbit-icon-1 { top: -20px; margin-left: -20px; }
  .orbit-icon-2 { right: -20px; margin-top: -20px; }
  .orbit-icon-3 { bottom: -20px; margin-left: -20px; }
  .orbit-icon-4 { left: -20px; margin-top: -20px; }
}

/* Final hero alignment pass: strict left content + balanced right portrait */
.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-left,
.hero-left *,
.hero-subtitle,
.hero-desc {
  text-align: left;
}

.hero-left {
  justify-content: flex-start;
}

.title-iam {
  color: #111827;
  letter-spacing: -2px;
}

body[data-theme="dark"] .title-iam {
  color: #f8fafc;
}

.name-manoj,
.name-karki {
  background: linear-gradient(115deg, #00B4FF 0%, #4F7CFF 34%, #8B5CF6 66%, #EC4899 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-gradient-flow 7s ease-in-out infinite;
}

@keyframes hero-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-title {
  letter-spacing: -2px;
}

body[data-theme="light"] .hero-desc {
  color: #5B6473;
}

.hero-desc {
  max-width: 550px;
  line-height: 1.9;
}

body[data-theme="dark"] .brand-logo-img {
  filter: invert(1) hue-rotate(180deg) contrast(1.08) saturate(0.95);
}

body[data-theme="light"] .brand-logo-img {
  filter: none;
}

.desktop-nav {
  background: transparent;
  box-shadow: none;
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00B4FF, #8B5CF6, #EC4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (min-width: 1024px) {
  .hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    max-width: 1280px;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem) 2rem;
  }

  .hero-left {
    width: 50%;
    max-width: none;
    flex: 0 0 50%;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
  }

  .hero-right {
    width: 50%;
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
  }

  .hero-tilt-scene {
    width: clamp(360px, 38vw, 594px);
    height: clamp(360px, 38vw, 594px);
  }

  .hero-rot-wrap {
    width: 88%;
    height: 88%;
  }

  .hero-title {
    font-size: clamp(3.8rem, 6vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.96;
    white-space: normal;
  }

  .hero-subtitle,
  .hero-socials-row,
  .hero-cta {
    align-items: center;
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .hero-inner {
    padding-inline: 1.25rem;
    gap: 2rem;
  }

  .hero-left,
  .hero-right {
    width: 50%;
    flex-basis: 50%;
  }
}

@media (max-width: 1023px) and (min-width: 641px) {
  .hero-inner {
    align-items: center;
    padding-inline: clamp(2rem, 7vw, 4rem);
  }

  .hero-left {
    width: min(100%, 680px);
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    align-items: flex-start;
  }

  .hero-right {
    order: -1;
    width: 100%;
    align-self: center;
    margin-bottom: 0.75rem;
  }

  .hero-left {
    order: 1;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-title {
    letter-spacing: -1px;
  }
}

/* Accessible prefers-reduced-motion block */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .stars-container, .star-layer {
    display: none !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   INTERACTIVE UI ENHANCEMENTS
   ========================================================================== */

/* ── Page Load Progress Bar ── */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--secondary-glow);
}

/* ── Scroll To Top Button ── */
.scroll-top-btn {
  position: fixed;
  bottom: clamp(85px, 12vw, 100px);
  right: clamp(20px, 4vw, 30px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1004;
  box-shadow: 0 6px 20px var(--primary-glow);
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px var(--secondary-glow);
}

/* ── Ripple Effect ── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Enhanced Project Card Hover Glow ── */
.project-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--primary), 0 0 30px var(--primary-glow);
}

/* ── Achievement Card Hover Glow ── */
.ach-card-new:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 24px rgba(6, 182, 212, 0.12);
}

/* ── Timeline Card Hover Glow ── */
.timeline-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.28), 0 0 18px var(--primary-glow);
}

/* ── Skill Tech Card Glow on Hover ── */
.tech-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 0 16px var(--secondary-glow);
}

/* ── Contact Detail Item Glow ── */
.contact-detail-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 14px var(--primary-glow);
}

/* ── Stat Card Glow ── */
.stat-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.2), 0 0 18px var(--primary-glow);
}

/* ── About Fact Glow ── */
.about-fact:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 0 12px var(--secondary-glow);
}

/* ── Filter Button Active Glow ── */
.filter-btn.active {
  box-shadow: 0 4px 16px var(--primary-glow), 0 0 20px var(--primary-glow);
}

/* ── Section Header Animated Underline ── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* ── Smooth Image Reveal on Load ── */
img {
  transition: opacity 0.4s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ── About Edu Item Hover Glow ── */
.about-edu-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 0 12px var(--secondary-glow);
}

/* ── Sidebar Menu Item Hover Glow ── */
.menu-item.active {
  box-shadow: 0 4px 18px var(--primary-glow);
}

/* ── WhatsApp Tooltip ── */
.whatsapp-float::before {
  content: 'Chat on WhatsApp';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(5, 5, 8, 0.92);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ── Scroll Indicator Glow ── */
.scroll-indicator:hover .mouse {
  border-color: var(--secondary);
  box-shadow: 0 0 12px var(--secondary-glow);
}

/* ── Hero Particle Canvas ── */
.hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Light mode adjustments for new elements ── */
body[data-theme="light"] .scroll-top-btn {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}
body[data-theme="light"] .page-progress {
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.4);
}
body[data-theme="light"] .whatsapp-float::before {
  background: rgba(255, 255, 255, 0.95);
  color: #128C7E;
  border-color: rgba(37, 211, 102, 0.3);
}
/* ==========================================================================
   HERO & NAVBAR REDESIGN — PREMIUM 50/50 LAYOUT
   ========================================================================== */

/* ── Floating Glassmorphism Navbar ── */
@media (min-width: 1024px) {
  .desktop-nav {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1280px;
    height: 64px;
    border-radius: 20px;
    padding: 0 clamp(1.25rem, 2.5vw, 2rem);
    background: rgba(8, 10, 20, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }

  body[data-theme="light"] .desktop-nav {
    background: rgba(255,255,255,0.72);
    border-color: rgba(15,23,42,0.10);
    box-shadow: 0 8px 32px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
  }

  body.nav-scrolled .desktop-nav {
    background: rgba(6, 8, 18, 0.82);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 16px 48px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.07);
  }

  body[data-theme="light"].nav-scrolled .desktop-nav {
    background: rgba(255,255,255,0.90);
    box-shadow: 0 16px 48px rgba(15,23,42,0.12);
  }

  .content-wrapper {
    padding-top: 96px;
  }

  .desktop-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 190px;
    justify-content: flex-end;
  }

  .nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(99,102,241,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
  }

  .nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6,182,212,0.32);
  }

  /* Nav links pill container */
  .desktop-nav-links {
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.07);
  }

  body[data-theme="light"] .desktop-nav-links {
    background: rgba(15,23,42,0.04);
    border-color: rgba(15,23,42,0.08);
  }

  /* Active indicator */
  .desktop-nav-indicator {
    background: linear-gradient(135deg, rgba(99,102,241,0.32), rgba(6,182,212,0.20));
    box-shadow: 0 0 18px rgba(99,102,241,0.22);
    border-radius: 10px;
  }

  .desktop-nav-link {
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    transition: color 0.22s ease, transform 0.22s ease;
  }

  .desktop-nav-link:hover {
    color: var(--text-main);
    transform: translateY(-1px);
  }

  .desktop-nav-link.active {
    color: #fff;
  }

  body[data-theme="light"] .desktop-nav-link.active {
    color: var(--primary);
  }

  /* Remove old underline pseudo */
  .desktop-nav-link::after {
    display: none;
  }
}

/* Mobile header pill style */
.mobile-header {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  height: 56px;
  border-radius: 16px;
  background: rgba(8,10,20,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

body[data-theme="light"] .mobile-header {
  background: rgba(255,255,255,0.78);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 6px 24px rgba(15,23,42,0.10);
}

.content-wrapper {
  padding-top: 80px;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(99,102,241,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(6,182,212,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(236,72,153,0.08) 0%, transparent 50%),
    #050508;
}

body[data-theme="light"] .hero-section {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(79,70,229,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(8,145,178,0.08) 0%, transparent 55%),
    #f8fafc;
}

/* Subtle dot grid */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

body[data-theme="light"] .hero-grid-overlay {
  background-image: radial-gradient(circle, rgba(15,23,42,0.06) 1px, transparent 1px);
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: hero-glow-float 8s ease-in-out infinite;
}

.hero-glow-left {
  width: 500px;
  height: 500px;
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
}

.hero-glow-right {
  width: 400px;
  height: 400px;
  right: -60px;
  top: 30%;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes hero-glow-float {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(calc(-50% - 20px)) scale(1.05); }
}

.hero-glow-right {
  animation: hero-glow-float-r 9s ease-in-out infinite;
}

@keyframes hero-glow-float-r {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08) translateY(-15px); }
}

/* Hero inner 50/50 layout */
.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
  padding: 5rem clamp(1.25rem, 3vw, 2.5rem) 4rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
    min-height: calc(100vh - 96px);
  }
}

/* LEFT: Text */
.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  transform: translateX(-30px);
  animation: hero-slide-in-left 0.85s cubic-bezier(0.16,1,0.3,1) 0.15s forwards;
}

@keyframes hero-slide-in-left {
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 1024px) {
  .hero-left {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Greeting line */
.hero-greeting {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  border-radius: 2px;
}

/* Name */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.hero-name-line {
  background: linear-gradient(120deg, #f8fafc 0%, #06b6d4 40%, #6366f1 70%, #ec4899 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: name-gradient-shift 6s ease-in-out infinite;
}

body[data-theme="light"] .hero-name-line {
  background: linear-gradient(120deg, #0f172a 0%, #0891b2 40%, #4f46e5 70%, #db2777 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes name-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.subtitle-prefix {
  color: var(--text-muted);
  font-weight: 400;
}

.typing-text {
  color: var(--secondary);
  font-weight: 800;
}

.typing-cursor {
  color: var(--secondary);
  font-weight: 800;
  animation: blink-caret 0.75s step-end infinite;
}

/* Description */
.hero-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: left;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.hero-section .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(99,102,241,0.32);
}

.hero-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(6,182,212,0.36);
}

.hero-section .btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}

body[data-theme="light"] .hero-section .btn-secondary {
  border-color: rgba(15,23,42,0.18);
}

.hero-section .btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 10px 28px rgba(6,182,212,0.16);
}

/* Social icons row */
.hero-socials-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

.hero-social-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body[data-theme="light"] .hero-social-link {
  background: rgba(255,255,255,0.7);
  border-color: rgba(15,23,42,0.10);
  color: #475569;
}

.hero-social-link:hover {
  transform: translateY(-5px) scale(1.08);
  color: var(--secondary);
  border-color: rgba(6,182,212,0.5);
  box-shadow: 0 10px 24px rgba(6,182,212,0.18);
  background: rgba(6,182,212,0.08);
}

.hero-social-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(5,5,10,0.92);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  color: var(--secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  z-index: 10;
}

.hero-social-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Status badge */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: 30px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 1.2rem;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: statusPulse 2s infinite;
}

/* RIGHT: Profile image */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  animation: hero-slide-in-right 0.85s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
  z-index: 6;
}

@keyframes hero-slide-in-right {
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 1024px) {
  .hero-right {
    flex: 0 0 50%;
    max-width: 50%;
    justify-content: flex-end;
  }
}

.hero-tilt-scene {
  perspective: 1000px;
  width: clamp(280px, 38vw, 500px);
  height: clamp(280px, 38vw, 500px);
}

.hero-tilt-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
}

/* Glowing circular profile image */
.hero-rot-wrap {
  --border-angle: 0deg;
  position: relative;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
    conic-gradient(from var(--border-angle), #06b6d4, #6366f1, #ec4899, #06b6d4) border-box;
  box-shadow:
    0 0 0 8px rgba(99,102,241,0.08),
    0 0 60px rgba(99,102,241,0.28),
    0 0 100px rgba(6,182,212,0.14),
    0 24px 60px rgba(0,0,0,0.4);
  animation: border-spin 7s linear infinite, glow-breathe 4s ease-in-out infinite;
  transform: translateZ(20px);
}

body[data-theme="light"] .hero-rot-wrap {
  background:
    linear-gradient(#f8fafc, #f8fafc) padding-box,
    conic-gradient(from var(--border-angle), #0891b2, #4f46e5, #db2777, #0891b2) border-box;
  box-shadow:
    0 0 0 8px rgba(79,70,229,0.06),
    0 0 50px rgba(79,70,229,0.18),
    0 20px 50px rgba(15,23,42,0.15);
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 0 8px rgba(99,102,241,0.08), 0 0 60px rgba(99,102,241,0.28), 0 0 100px rgba(6,182,212,0.14), 0 24px 60px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(99,102,241,0.12), 0 0 80px rgba(6,182,212,0.36), 0 0 120px rgba(236,72,153,0.16), 0 24px 60px rgba(0,0,0,0.4); }
}

.hero-rot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}

/* Orbit ring */
.orbit-ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.10);
  pointer-events: none;
  animation: orbitSpin 20s linear infinite;
}

.orbit-icon {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(8,12,24,0.80);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 14px rgba(99,102,241,0.18);
  backdrop-filter: blur(12px);
  animation: orbitIconCounter 20s linear infinite;
  transition: box-shadow 0.3s ease;
}

body[data-theme="light"] .orbit-icon {
  background: rgba(255,255,255,0.88);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 8px 20px rgba(15,23,42,0.12);
}

.orbit-icon:hover {
  box-shadow: 0 8px 24px rgba(6,182,212,0.35);
}

.orbit-icon img { width: 58%; height: 58%; }

.orbit-icon-1 { top: -23px; left: 50%; margin-left: -23px; }
.orbit-icon-2 { top: 50%; right: -23px; margin-top: -23px; }
.orbit-icon-3 { bottom: -23px; left: 50%; margin-left: -23px; }
.orbit-icon-4 { top: 50%; left: -23px; margin-top: -23px; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0;
  animation: fade-in-up 0.6s ease 1.2s forwards;
}

@keyframes fade-in-up {
  to { opacity: 1; }
}

/* Mobile responsive tweaks */
@media (max-width: 640px) {
  .hero-inner {
    padding: 3rem 1.25rem 4rem;
    gap: 2.5rem;
  }

  .hero-right {
    order: -1;
  }

  .hero-tilt-scene {
    width: min(72vw, 280px);
    height: min(72vw, 280px);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-status-badge {
    display: none;
  }

  .orbit-icon {
    width: 38px;
    height: 38px;
  }

  .orbit-icon-1 { top: -19px; margin-left: -19px; }
  .orbit-icon-2 { right: -19px; margin-top: -19px; }
  .orbit-icon-3 { bottom: -19px; margin-left: -19px; }
  .orbit-icon-4 { left: -19px; margin-top: -19px; }
}

@media (max-width: 1023px) {
  .mobile-header {
    height: 56px;
  }

  .content-wrapper {
    padding-top: 80px;
  }

  .hero-section {
    min-height: calc(100vh - 80px);
  }
}

/* Particle canvas */
.hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-left, .hero-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .orbit-ring, .orbit-icon, .hero-rot-wrap {
    animation: none;
  }
  .hero-name-line {
    animation: none;
  }
}

/* ==========================================================================
   FINAL RESPONSIVE LAYOUT GRID
   ========================================================================== */
:root {
  --layout-gutter: clamp(1rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  :root {
    --layout-gutter: clamp(1.5rem, 3vw, 3.5rem);
  }
}

.section-container,
.hero-inner,
.footer-container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.section-container {
  padding-top: clamp(4.5rem, 8vw, 6.25rem);
  padding-bottom: clamp(4.5rem, 8vw, 6.25rem);
}

.hero-inner {
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

.about-grid,
.resume-grid,
.ecosystem-grid,
.projects-grid,
.achievements-grid,
.contact-grid-new {
  width: 100%;
}

@media (min-width: 1024px) {
  .desktop-nav {
    left: var(--layout-gutter);
    right: var(--layout-gutter);
    transform: none;
    width: auto;
    max-width: none;
    padding-inline: clamp(1rem, 1.6vw, 1.5rem);
  }

  .hero-inner {
    max-width: none;
    padding: 0 var(--layout-gutter) 2rem;
  }

  .about-grid,
  .contact-grid-new {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 5vw, 5rem);
  }

  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 4vw, 4rem);
  }

  .ecosystem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.4rem);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 2.4vw, 2.5rem);
  }

  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.4vw, 2.5rem);
  }
}

@media (max-width: 1023px) {
  .section-container {
    padding-inline: var(--layout-gutter);
  }

  .hero-inner {
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
  }
}

@media (max-width: 640px) {
  :root {
    --layout-gutter: 1rem;
  }

  .section-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-inner {
    padding: 3rem var(--layout-gutter) 4rem;
  }
}

/* ==========================================================================
   FINAL INTERACTION AND RESPONSIVE POLISH
   ========================================================================== */
body.nav-drawer-open {
  overflow: hidden;
  touch-action: none;
}

p,
span,
h1,
h2,
h3,
h4,
li,
label,
input,
textarea,
.section-subtitle,
.hero-desc,
.timeline-desc,
.project-desc,
.ach-desc,
.contact-subtext,
.contact-detail-value {
  user-select: text;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.project-card:focus-within,
.tech-card:focus-within,
.ach-card-new:focus-within {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
}

.hero-title,
.section-title,
.project-title,
.ach-title-new,
.contact-headline,
.contact-detail-value {
  overflow-wrap: anywhere;
}

.contact-detail-text,
.project-info,
.timeline-card,
.ach-card-body,
.tech-name {
  min-width: 0;
}

.project-card,
.ach-card-new,
.tech-card,
.timeline-card,
.contact-detail-item,
.stat-card,
.about-fact,
.about-edu-item {
  will-change: transform;
}

.project-card[aria-hidden="true"] {
  pointer-events: none;
}

.project-card:focus-within .project-overlay,
.project-card:active .project-overlay {
  opacity: 1;
}

.project-overlay-actions {
  flex-wrap: wrap;
}

.filter-btn,
.btn,
.btn-icon,
.ach-view-cert-btn,
.contact-detail-item,
.contact-social-btn,
.scroll-top-btn,
.whatsapp-float,
.theme-toggle-btn,
.mobile-nav-toggle {
  -webkit-tap-highlight-color: transparent;
}

.input-group input,
.input-group textarea {
  min-height: 44px;
}

.input-group textarea {
  resize: vertical;
  min-height: 128px;
}

@media (hover: none), (pointer: coarse) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(5,5,8,0.94) 0%, rgba(5,5,8,0.58) 65%, transparent 100%);
  }

  .project-card:hover,
  .ach-card-new:hover,
  .tech-card:hover,
  .timeline-card:hover,
  .contact-detail-item:hover,
  .stat-card:hover,
  .about-fact:hover,
  .about-edu-item:hover {
    transform: none;
  }

  .whatsapp-float::before,
  .hero-social-link::after,
  .tech-tooltip {
    display: none;
  }
}

@media (max-width: 1023px) {
  .section-header {
    margin-bottom: 2.5rem;
  }

  .project-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
    scroll-snap-type: x proximity;
  }

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .contact-detail-item {
    align-items: flex-start;
  }

  .contact-detail-arrow {
    margin-top: 0.75rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: clamp(1.9rem, 11vw, 2.55rem);
  }

  .hero-subtitle {
    align-items: flex-start;
  }

  .about-stat-row,
  .experience-stats,
  .project-footer,
  .ach-card-footer {
    align-items: stretch;
  }

  .project-footer,
  .ach-card-footer {
    flex-direction: column;
    gap: 0.9rem;
  }

  .project-links-inline,
  .ach-view-cert-btn {
    align-self: flex-start;
  }

  .contact-form-card,
  .tech-column,
  .timeline-card,
  .ach-card-new {
    border-radius: 14px;
  }

  .contact-form-card {
    padding: 1.35rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .scroll-top-btn {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   ABOUT SECTION LAYOUT AND INTERACTION PASS
   ========================================================================== */
.about-fullscreen {
  isolation: isolate;
}

.about-fullscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--about-mouse-x, 75%) var(--about-mouse-y, 35%), rgba(6, 182, 212, 0.12), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.035));
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-container-full {
  position: relative;
}

.about-grid-enhanced {
  align-items: stretch;
}

.about-visual,
.about-intro,
.about-edu,
.about-facts-grid {
  position: relative;
  z-index: 1;
}

.about-visual {
  justify-content: flex-start;
}

.about-img-frame {
  width: clamp(240px, 22vw, 330px);
  height: clamp(240px, 22vw, 330px);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-frame:hover {
  transform: translateY(-6px) rotateX(var(--about-tilt-y, 0deg)) rotateY(var(--about-tilt-x, 0deg));
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--about-card-x, 50%) var(--about-card-y, 35%), rgba(255, 255, 255, 0.18), transparent 34%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.about-img-frame:hover .about-img-overlay {
  opacity: 1;
}

.about-stat-row,
.about-intro,
.about-edu,
.about-fact {
  background:
    radial-gradient(circle at var(--about-card-x, 50%) var(--about-card-y, 0%), rgba(6, 182, 212, 0.08), transparent 16rem),
    var(--bg-card);
}

.about-intro,
.about-edu {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.about-intro:hover,
.about-edu:hover,
.about-fact:hover,
.about-stat-row:hover {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 0 24px rgba(6, 182, 212, 0.08);
}

.about-role-badges {
  margin-bottom: 1rem;
}

.role-badge {
  min-height: 34px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.role-badge:hover {
  transform: translateY(-2px);
  border-color: currentColor;
}

.about-name {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.about-bio + .about-bio {
  margin-top: 0.85rem;
}

.about-stat-row {
  max-width: min(100%, 420px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.about-stat-row:hover {
  transform: translateY(-3px);
}

.about-stat-item {
  min-width: 0;
}

.about-edu {
  margin-top: 0;
}

.about-edu-list {
  position: relative;
}

.about-edu-list::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 0.27rem;
  width: 1px;
  background: linear-gradient(var(--secondary), var(--primary));
  opacity: 0.35;
}

.about-edu-item {
  position: relative;
  overflow: hidden;
}

.about-edu-item::after,
.about-fact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.about-edu-item:hover::after,
.about-fact:hover::after {
  transform: translateX(120%);
}

.about-facts-grid {
  align-content: stretch;
}

.about-fact {
  position: relative;
  overflow: hidden;
}

.fact-value {
  overflow-wrap: anywhere;
}

/* Facts cards: match About Education item styling exactly */
.about-facts-grid .about-fact {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  transition: var(--transition-fast);
}

.about-facts-grid .about-fact:hover {
  transform: translateX(4px);
  border-color: var(--glass-border-hover);
  background: var(--bg-card);
}

.about-facts-grid .about-fact svg {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 6px var(--secondary-glow);
  flex-shrink: 0;
}

.about-facts-grid .about-fact:nth-child(even) svg {
  background: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

.about-facts-grid .about-fact svg * {
  display: none;
}

.about-facts-grid .fact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
}

.about-facts-grid .fact-value {
  display: block;
  margin-top: 0.05rem;
  color: var(--text-main);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .about-grid-enhanced {
    grid-template-columns: minmax(290px, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
  }

  .about-visual {
    position: sticky;
    top: 112px;
    align-self: start;
  }

  .about-content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(1rem, 1.8vw, 1.5rem);
    align-items: stretch;
  }

  .about-intro {
    grid-column: 1 / -1;
  }

  .about-edu,
  .about-facts-grid {
    height: 100%;
  }

  .about-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.2vw, 1rem);
  }
}

@media (min-width: 1440px) {
  .about-grid-enhanced {
    grid-template-columns: minmax(330px, 0.3fr) minmax(0, 0.7fr);
  }

  .about-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .about-grid-enhanced {
    gap: 2.25rem;
  }

  .about-visual {
    max-width: 620px;
    width: 100%;
    justify-self: center;
    margin-inline: auto;
  }

  .about-content {
    gap: 1rem;
  }

  .about-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-img-frame {
    width: min(76vw, 280px);
    height: min(76vw, 280px);
  }

  .about-badge {
    font-size: 0.68rem;
    padding: 0.32rem 0.65rem;
  }

  .about-stat-row {
    padding: 0.95rem 0.8rem;
  }

  .about-stat-num {
    font-size: 1.55rem;
  }

  .about-stat-lbl {
    font-size: 0.62rem;
  }

  .about-intro,
  .about-edu {
    padding: 1rem;
    border-radius: 14px;
  }

  .about-facts-grid {
    grid-template-columns: 1fr;
  }

  .about-fact {
    min-height: 64px;
  }
}

/* ==========================================================================
   NAVBAR LAYOUT AND INTERACTION PASS
   ========================================================================== */
.desktop-nav,
.mobile-header {
  overflow: visible;
}

.brand-logo-link {
  min-width: 0;
}

.brand-logo-text {
  white-space: nowrap;
}

.desktop-nav-link,
.nav-cta-btn,
.theme-toggle-btn,
.mobile-nav-toggle {
  outline-offset: 4px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, auto) minmax(150px, 0.7fr);
    align-items: center;
    column-gap: clamp(0.75rem, 1.6vw, 1.5rem);
    height: 66px;
  }

  .desktop-logo {
    min-width: 0;
    justify-self: start;
  }

  .desktop-nav-right {
    min-width: 0;
    justify-self: end;
  }

  .desktop-nav-links {
    isolation: isolate;
    justify-self: center;
    max-width: min(100%, 760px);
    min-width: 0;
    gap: 0.12rem;
    margin: 0;
    padding: 0.28rem;
    overflow: hidden;
    background:
      radial-gradient(circle at var(--nav-mouse-x, 50%) var(--nav-mouse-y, 50%), rgba(6, 182, 212, 0.13), transparent 12rem),
      rgba(255, 255, 255, 0.045);
  }

  .desktop-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.48rem clamp(0.62rem, 0.95vw, 0.95rem);
    font-size: clamp(0.74rem, 0.78vw, 0.83rem);
    line-height: 1;
  }

  .desktop-nav-link::before {
    content: '';
    position: absolute;
    inset: 0.18rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.12));
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: -1;
  }

  .desktop-nav-link:hover::before,
  .desktop-nav-link:focus-visible::before {
    opacity: 1;
    transform: scale(1);
  }

  .desktop-nav-link:hover {
    color: #fff;
  }

  body[data-theme="light"] .desktop-nav-link:hover {
    color: var(--primary);
  }

  .desktop-nav-indicator {
    z-index: -1;
  }

  .desktop-nav-right {
    gap: 0.6rem;
  }

  .nav-cta-btn {
    min-height: 40px;
    padding-inline: clamp(0.9rem, 1.4vw, 1.25rem);
    position: relative;
    overflow: hidden;
  }

  .nav-cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
  }

  .nav-cta-btn:hover::after {
    transform: translateX(120%);
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .desktop-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.7rem;
  }

  .desktop-logo .brand-logo-text {
    display: none;
  }

  .desktop-nav-link {
    padding-inline: 0.58rem;
  }

  .nav-cta-btn {
    display: none;
  }
}

@media (max-width: 1023px) {
  .mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-inline: clamp(0.85rem, 3vw, 1.25rem);
  }

  .mobile-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-logo .brand-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-header-controls {
    flex: 0 0 auto;
  }

  .mobile-nav-toggle,
  .theme-toggle-btn {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .mobile-logo .brand-logo-text {
    display: none;
  }
}

/* ==========================================================================
   PREMIUM ACHIEVEMENTS MARQUEE
   ========================================================================== */
#achievements {
  position: relative;
  overflow: hidden;
}

#achievements::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(99, 102, 241, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 56%, rgba(6, 182, 212, 0.11), transparent 30rem),
    linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.035));
  pointer-events: none;
}

#achievements .section-container {
  position: relative;
  overflow: hidden;
}

#achievements .section-header {
  position: relative;
  z-index: 2;
}

#achievements .achievements-grid {
  display: flex;
  grid-template-columns: none;
  gap: clamp(1rem, 2vw, 1.35rem);
  width: max-content;
  padding: 0.5rem 0 1.25rem;
  animation: achievements-marquee 34s linear infinite;
  will-change: transform;
}

#achievements .achievements-grid:hover,
#achievements .achievements-grid:focus-within {
  animation-play-state: paused;
}

@keyframes achievements-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

#achievements .ach-card-new {
  --cert-image: url("demo.jpg");
  width: clamp(300px, 32vw, 430px);
  min-height: 360px;
  flex: 0 0 auto;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)) padding-box,
    linear-gradient(135deg, rgba(6, 182, 212, 0.55), rgba(99, 102, 241, 0.28), rgba(236, 72, 153, 0.45)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translateZ(0);
}

#achievements .ach-card-new::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.13), transparent 16rem),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  opacity: 0.65;
  pointer-events: none;
}

#achievements .ach-card-new::after {
  content: '';
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.34);
}

#achievements .ach-card-new:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), 0 0 30px rgba(6, 182, 212, 0.14);
}

#achievements .ach-card-top,
#achievements .ach-card-body,
#achievements .ach-card-footer {
  position: relative;
  z-index: 1;
}

#achievements .ach-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.22);
}

#achievements .ach-year-tag {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

#achievements .ach-type {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

#achievements .ach-title-new {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

#achievements .ach-org-new {
  font-size: 0.86rem;
}

#achievements .ach-desc {
  font-size: 0.88rem;
  line-height: 1.7;
}

#achievements .ach-desc strong {
  color: var(--text-main);
}

#achievements .ach-card-footer {
  gap: 1rem;
}

#achievements .ach-cert-thumb {
  width: 56px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

#achievements .ach-view-cert-btn {
  position: relative;
  border-radius: 999px;
  padding: 0.58rem 1rem;
  background: rgba(6, 182, 212, 0.09);
  border-color: rgba(6, 182, 212, 0.28);
  overflow: visible;
}

#achievements .ach-view-cert-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(6, 182, 212, 0.88));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

#achievements .ach-view-cert-btn::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: calc(100% + 1rem);
  width: min(320px, 78vw);
  aspect-ratio: 210 / 297;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(rgba(248, 250, 252, 0.86), rgba(248, 250, 252, 0.86)),
    var(--cert-image) center / cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 0 8px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 60;
}

#achievements .ach-view-cert-btn::after {
  content: 'A4 certificate preview';
  position: absolute;
  right: 1rem;
  bottom: calc(100% + 1.7rem);
  z-index: 61;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

#achievements .ach-view-cert-btn:hover::before,
#achievements .ach-view-cert-btn:focus-visible::before,
#achievements .ach-view-cert-btn:hover::after,
#achievements .ach-view-cert-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 767px) {
  #achievements .achievements-grid {
    animation-duration: 28s;
  }

  #achievements .ach-card-new {
    width: min(84vw, 360px);
    min-height: 390px;
  }

  #achievements .ach-card-footer {
    flex-direction: row;
    align-items: center;
  }

  #achievements .ach-view-cert-btn::before {
    right: 50%;
    transform: translate(50%, 12px) scale(0.94);
    transform-origin: bottom center;
    width: min(290px, 82vw);
  }

  #achievements .ach-view-cert-btn::after {
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
  }

  #achievements .ach-view-cert-btn:hover::before,
  #achievements .ach-view-cert-btn:focus-visible::before {
    transform: translate(50%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #achievements .achievements-grid {
    animation: none;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #achievements .ach-card-new {
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   ACHIEVEMENTS UI ONLY
   ========================================================================== */

#achievements {
  --ach-page-max: 1180px;
  --ach-card-width: clamp(320px, 30vw, 390px);
  --ach-card-height: 460px;
  --ach-card-padding: clamp(1.25rem, 1.8vw, 1.55rem);
  --ach-card-gap: clamp(1rem, 2vw, 1.35rem);
  --ach-thumb-width: 64px;
  --ach-thumb-height: 44px;
  --ach-shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.28);
  --ach-shadow-hover: 0 34px 90px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
}

#achievements::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(99, 102, 241, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 56%, rgba(6, 182, 212, 0.11), transparent 30rem),
    linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.035));
}

#achievements .section-container {
  max-width: 100%;
  overflow: hidden;
}

#achievements .section-header {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

#achievements .achievements-grid {
  display: flex;
  align-items: stretch;
  gap: var(--ach-card-gap);
  width: max-content;
  direction: rtl;
  padding: 1.8rem max(1.1rem, calc((100vw - var(--ach-page-max)) / 2)) 2.7rem;
  animation: achievements-marquee-rtl 38s linear infinite;
  will-change: transform;
}

#achievements .achievements-grid:hover,
#achievements .achievements-grid:focus-within {
  animation-play-state: paused;
}

@keyframes achievements-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#achievements .ach-card-new,
#achievements .ach-card-clone {
  width: var(--ach-card-width);
  min-width: var(--ach-card-width);
  max-width: var(--ach-card-width);
  height: var(--ach-card-height);
  min-height: var(--ach-card-height);
  max-height: var(--ach-card-height);
  flex: 0 0 var(--ach-card-width);
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 54px;
  row-gap: 1.15rem;
  direction: ltr;
  margin: 0 !important;
  padding: var(--ach-card-padding);
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)) padding-box,
    linear-gradient(135deg, rgba(6, 182, 212, 0.55), rgba(99, 102, 241, 0.28), rgba(236, 72, 153, 0.45)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--ach-shadow-soft);
  backdrop-filter: blur(18px) saturate(150%);
  transform-origin: center;
}

#achievements .ach-card-new::before,
#achievements .ach-card-clone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(5, 5, 8, 0.92), rgba(5, 5, 8, 0.58) 46%, rgba(5, 5, 8, 0.88)),
    radial-gradient(circle at 18% 10%, rgba(6, 182, 212, 0.24), transparent 18rem),
    var(--cert-image) center / cover no-repeat;
  opacity: 0.95;
  transform: scale(1.03);
  transition: transform 0.55s ease, opacity 0.35s ease, filter 0.35s ease;
  pointer-events: none;
}

#achievements .ach-card-new::after,
#achievements .ach-card-clone::after {
  content: '';
  position: absolute;
  top: 0;
  right: 1.4rem;
  width: 45%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(270deg, var(--secondary), var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.34);
  pointer-events: none;
}

#achievements .ach-card-new:hover {
  transform: translateY(-12px) scale(1.018);
  box-shadow: var(--ach-shadow-hover), 0 0 30px rgba(6, 182, 212, 0.14);
}

#achievements .ach-card-new:hover::before {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04);
}

#achievements .ach-card-top,
#achievements .ach-card-body,
#achievements .ach-card-footer {
  position: relative;
  z-index: 1;
}

#achievements .ach-card-top {
  height: 56px;
  min-height: 56px;
  align-self: start;
  justify-content: space-between;
}

#achievements .ach-icon-wrap {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

#achievements .ach-card-new:hover .ach-icon-wrap {
  transform: rotate(-5deg) scale(1.06);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.22);
}

#achievements .ach-year-tag {
  height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

#achievements .ach-card-body {
  min-height: 0;
  display: grid;
  grid-template-rows: 30px 3.5rem 1.45rem minmax(0, 1fr);
  align-content: start;
  gap: 0.48rem;
}

#achievements .ach-type {
  width: fit-content;
  max-width: 100%;
  height: 30px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

#achievements .ach-title-new {
  min-height: 3.5rem;
  max-height: 3.5rem;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#achievements .ach-org-new {
  min-height: 1.45rem;
  max-height: 1.45rem;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#achievements .ach-desc {
  min-height: 0;
  max-height: 8.95rem;
  color: rgba(243, 244, 246, 0.78);
  font-size: 0.88rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#achievements .ach-title-new,
#achievements .ach-org-new,
#achievements .ach-desc,
#achievements .ach-year-tag {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

#achievements .ach-card-footer {
  height: 54px;
  min-height: 54px;
  align-self: end;
  display: grid;
  grid-template-columns: var(--ach-thumb-width) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-top: 0;
}

#achievements .ach-cert-thumb {
  width: var(--ach-thumb-width);
  min-width: var(--ach-thumb-width);
  height: var(--ach-thumb-height);
  min-height: var(--ach-thumb-height);
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

#achievements .ach-thumb-img,
#achievements .ach-thumb-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

#achievements .ach-view-cert-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.09);
  border-color: rgba(6, 182, 212, 0.28);
}

#achievements .ach-view-cert-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(6, 182, 212, 0.88));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

body[data-theme="light"] #achievements .ach-card-new::before,
body[data-theme="light"] #achievements .ach-card-clone::before {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.5) 46%, rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at 18% 10%, rgba(8, 145, 178, 0.24), transparent 18rem),
    var(--cert-image) center / cover no-repeat;
}

@media (max-width: 1023px) {
  #achievements {
    --ach-card-width: clamp(310px, 44vw, 360px);
    --ach-card-height: 450px;
  }

  #achievements .achievements-grid {
    animation-duration: 32s;
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 640px) {
  #achievements {
    --ach-card-width: min(86vw, 340px);
    --ach-card-height: 470px;
    --ach-card-padding: 1.15rem;
    --ach-thumb-width: 58px;
    --ach-thumb-height: 40px;
  }

  #achievements .ach-card-new,
  #achievements .ach-card-clone {
    grid-template-rows: 56px minmax(0, 1fr) 98px;
  }

  #achievements .ach-card-footer {
    height: 98px;
    min-height: 98px;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.75rem;
  }

  #achievements .ach-cert-thumb {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #achievements .achievements-grid {
    animation: none;
    transform: none;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #achievements .ach-card-new {
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   INTERACTIVE SKILLS SECTION ONLY
   ========================================================================== */
#interactiveSkills {
  --skill-hot-x: 50%;
  --skill-hot-y: 30%;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--skill-hot-x) var(--skill-hot-y), rgba(6, 182, 212, 0.13), transparent 26rem),
    radial-gradient(circle at 84% 76%, rgba(236, 72, 153, 0.08), transparent 24rem);
}

#interactiveSkills::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

#interactiveSkills .section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.skill-focus-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.skill-focus-btn {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.skill-focus-btn:hover,
.skill-focus-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(6, 182, 212, 0.86));
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

#interactiveSkills .ecosystem-grid {
  perspective: 1200px;
}

#interactiveSkills .tech-column {
  --column-accent: var(--secondary);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at var(--column-x, 50%) var(--column-y, 0%), rgba(255, 255, 255, 0.09), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

#interactiveSkills #col-frontend { --column-accent: #06b6d4; }
#interactiveSkills #col-backend { --column-accent: #8b5cf6; }
#interactiveSkills #col-tools { --column-accent: #ec4899; }

#interactiveSkills .tech-column::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, color-mix(in srgb, var(--column-accent) 18%, transparent), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#interactiveSkills .tech-column:hover::before {
  opacity: 1;
  animation: skill-column-sheen 1.1s ease;
}

@keyframes skill-column-sheen {
  to { transform: translateX(70%); }
}

#interactiveSkills .tech-column.is-dimmed {
  opacity: 0.36;
  filter: saturate(0.55);
  transform: scale(0.985);
}

#interactiveSkills .tech-column.is-active {
  border-color: color-mix(in srgb, var(--column-accent) 58%, transparent);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.28), 0 0 34px color-mix(in srgb, var(--column-accent) 18%, transparent);
}

#interactiveSkills .column-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--column-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--column-accent) 34%, transparent);
  color: var(--column-accent);
  font-family: var(--font-heading);
  font-size: 0;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.18);
}

#col-frontend .column-icon::before { content: 'FE'; font-size: 0.78rem; }
#col-backend .column-icon::before { content: 'BE'; font-size: 0.78rem; }
#col-tools .column-icon::before { content: 'DB'; font-size: 0.78rem; }

#interactiveSkills .tech-card {
  min-height: 112px;
  overflow: hidden;
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), color-mix(in srgb, var(--column-accent) 28%, transparent), transparent 9rem),
    rgba(255, 255, 255, 0.035);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

#interactiveSkills .tech-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--column-accent) 48%, transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

#interactiveSkills .tech-card:hover,
#interactiveSkills .tech-card.is-previewed {
  border-color: color-mix(in srgb, var(--column-accent) 54%, transparent);
  transform: translate3d(0, -8px, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.025);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32), 0 0 30px color-mix(in srgb, var(--column-accent) 22%, transparent);
}

#interactiveSkills .tech-card:hover::before,
#interactiveSkills .tech-card.is-previewed::before {
  opacity: 1;
}

#interactiveSkills.is-skill-previewing .tech-card:not(.is-previewed):not(:hover):not(:focus-visible) {
  opacity: 0.58;
  transform: scale(0.975);
}

#interactiveSkills .tech-icon {
  width: 38px;
  height: 38px;
  padding: 0.36rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#interactiveSkills .tech-card:hover .tech-icon {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--column-accent) 22%, transparent);
}

#interactiveSkills .tech-progress-bg {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#interactiveSkills .tech-progress-fill {
  position: relative;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--column-accent), var(--primary), var(--accent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--column-accent) 34%, transparent);
}

#interactiveSkills .tech-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: skill-progress-shine 1.8s linear infinite;
}

@keyframes skill-progress-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

body[data-theme="light"] #interactiveSkills {
  background:
    radial-gradient(circle at var(--skill-hot-x) var(--skill-hot-y), rgba(8, 145, 178, 0.11), transparent 26rem),
    radial-gradient(circle at 84% 76%, rgba(219, 39, 119, 0.07), transparent 24rem);
}

body[data-theme="light"] .skill-focus-tabs,
body[data-theme="light"] #interactiveSkills .tech-column {
  background-color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 1023px) {
  .skill-focus-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .skill-focus-btn {
    flex: 1 1 auto;
  }

}

@media (max-width: 640px) {
  #interactiveSkills .tech-grid {
    grid-template-columns: 1fr;
  }

  #interactiveSkills .tech-card {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #interactiveSkills,
  #interactiveSkills *,
  #interactiveSkills *::before,
  #interactiveSkills *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}


