/* =====================================================
   SACHIN P - PORTFOLIO | PREMIUM CSS
   ===================================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #f43f5e;
  --bg-dark: #030712;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-g: linear-gradient(135deg, #10b981, #059669);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-dark);
  background: radial-gradient(ellipse at center, rgba(17, 24, 39, 1) 0%, rgba(3, 7, 18, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.orbit-loader {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.orbit-1 {
  width: 100%;
  height: 100%;
  border-top-color: var(--primary);
  border-right-color: var(--primary-light);
  animation: orbit-spin 1.5s linear infinite;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.orbit-2 {
  width: 75%;
  height: 75%;
  border-bottom-color: var(--secondary);
  border-left-color: rgba(16, 185, 129, 0.5);
  animation: orbit-spin 2s linear infinite reverse;
}

.orbit-3 {
  width: 50%;
  height: 50%;
  border-top-color: var(--accent);
  border-right-color: rgba(245, 158, 11, 0.5);
  animation: orbit-spin 1s linear infinite;
}

.orbit-center {
  font-size: 1.2rem;
  color: var(--text-primary);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-center 1.5s ease-in-out infinite alternate;
}

.loader-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.brand-code { color: #c792ea; font-style: italic; }
.brand-op { color: #89ddff; }
.brand-name { color: #c3e88d; }
.brand-blink { 
  color: var(--text-primary);
  animation: blink 1s step-end infinite;
}

.loader-progress-container {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: width 0.3s ease-out;
}

.preloader.loading-complete .loader-progress-bar {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
  background: var(--secondary);
}

.loader-percentage {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -12px;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

@keyframes orbit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-center {
  0% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 0px transparent); }
  100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6)); }
}

/* --- Animated Background Canvas --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    #030712;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Floating Particles */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* --- Container --- */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 8vw, 120px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - clamp(48px, 16vw, 240px));
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(99, 102, 241, 0.3);
  padding: 12px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  top: 16px;
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

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

.logo-name {
  color: var(--text-primary);
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

.nav-cta {
  padding: 10px 22px;
  background: var(--gradient);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

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

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.2);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Gradient Text --- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.08), var(--shadow-card);
  transform: translateY(-4px);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 140px clamp(24px, 8vw, 120px) 80px;
  max-width: 100%;
  margin: 0 auto;
  gap: clamp(40px, 8vw, 120px);
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 0 0 auto;
  transform: translateX(-5vw);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  color: var(--text-secondary);
  font-size: 0.55em;
  font-weight: 600;
  margin-bottom: 4px;
}

.title-name {
  display: block;
  margin-bottom: 8px;
}

.title-role {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.55em;
  color: var(--text-secondary);
  font-weight: 500;
  min-height: 1.4em;
}

.typing {
  color: var(--primary-light);
}

.cursor {
  color: var(--primary);
  animation: blink 1s step-start infinite;
  font-weight: 300;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-desc strong {
  color: var(--primary-light);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-3px);
}

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

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =====================================================
   HEX SCENE – Developer Profile Design
   ===================================================== */

.hex-scene {
  position: relative;
  width: 360px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft orbit rings */
.hex-orbit {
  position: absolute;
  width: 370px;
  height: 370px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.18);
  animation: orbit-spin 30s linear infinite;
}

.hex-orbit-2 {
  width: 300px;
  height: 300px;
  border-color: rgba(139, 92, 246, 0.12);
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hexagonal frame wrapper */
.hex-frame-wrap {
  position: relative;
  z-index: 3;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shimmer layer behind the hex */
.hex-shimmer {
  position: absolute;
  inset: -12px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: conic-gradient(from var(--angle, 0deg), #6366f1, #8b5cf6, #ec4899, #10b981, #6366f1);
  animation: hex-spin 6s linear infinite;
  filter: blur(6px);
  opacity: 0.75;
}

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

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

/* The actual hexagonal photo container */
.hex-frame {
  width: 210px;
  height: 210px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.hex-frame-wrap:hover .hex-frame {
  transform: scale(1.06) rotate(3deg);
}

.hex-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: filter 0.5s ease, transform 0.5s ease;
  filter: brightness(0.95) contrast(1.08) saturate(1.05);
}

.hex-frame-wrap:hover .hex-photo {
  filter: brightness(1.1) contrast(1.1) saturate(1.15);
  transform: scale(1.08);
}

/* Floating code chips */
.code-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  padding: 7px 12px;
  backdrop-filter: blur(14px);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
}

.code-kw {
  color: #c792ea;
  font-weight: 700;
}

.code-op {
  color: #89ddff;
}

.code-str {
  color: #c3e88d;
}

.code-tag {
  color: #82aaff;
}

.chip-1 {
  top: 20px;
  left: -10px;
  animation: chip-float 4s ease-in-out infinite;
}

.chip-2 {
  bottom: 55px;
  left: -15px;
  animation: chip-float 4s ease-in-out 1s infinite;
}

.chip-3 {
  top: 30px;
  right: -15px;
  animation: chip-float 4s ease-in-out 0.5s infinite;
}

.chip-4 {
  bottom: 70px;
  right: -8px;
  animation: chip-float 4s ease-in-out 1.5s infinite;
}

@keyframes chip-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(-1deg);
  }
}

/* Circular skill icon dots */
.hex-dot {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  z-index: 8;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hex-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.dot-react {
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #61dafb;
  animation: pulse-dot-orbit 3s ease-in-out infinite;
}

.dot-node {
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  color: #68a063;
  animation: pulse-dot-orbit 3s ease-in-out 0.75s infinite;
}

.dot-mongo {
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: #4db33d;
  animation: pulse-dot-orbit 3s ease-in-out 1.5s infinite;
}

.dot-js {
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  color: #f7df1e;
  animation: pulse-dot-orbit 3s ease-in-out 2.25s infinite;
}

@keyframes pulse-dot-orbit {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
  }

  50% {
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.55);
  }
}

/* "Open to Work" status pill */
.hex-status {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #10b981;
  white-space: nowrap;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.status-led {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: led-pulse 2s ease-in-out infinite;
}

@keyframes led-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}


/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 32px;
}

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}

/* Education Timeline */
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-item {
  display: flex;
  gap: 14px;
  position: relative;
}

.edu-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -20px;
  width: 1px;
  background: var(--border);
}

.edu-dot {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: var(--gradient);
  border-radius: 50%;
  margin-top: 3px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.edu-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.edu-inst {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.edu-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.edu-year {
  font-size: 0.76rem;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted);
}

.edu-grade {
  font-size: 0.76rem;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  color: var(--secondary);
  font-weight: 600;
}

.grade-highlight {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-row i {
  color: var(--primary-light);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.info-row a:hover {
  color: var(--primary-light);
}

/* Certifications */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cert-icon {
  width: 38px;
  height: 38px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* LeetCode Box */
.leetcode-box {
  padding: 16px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
}

.lc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.lc-fire {
  color: #f97316;
}

.lc-count {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
}

.lc-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.lc-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.lc-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.skill-category {
  padding: 28px;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-cat-icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1rem;
}

.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

.skill-tag.react i {
  color: #61dafb;
}

.skill-tag.node i {
  color: #68a063;
}

/* Tech Progress Bars */
.tech-bars-wrap {
  padding: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

.tech-bars-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.tech-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tb-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.tb-pct {
  color: var(--primary-light);
  font-weight: 600;
}

.tb-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.tb-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  padding: 28px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(var(--clr), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--clr, #6366f1);
  background: color-mix(in srgb, var(--clr) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr) 25%, transparent);
}

.project-links {
  display: flex;
  gap: 8px;
}

.proj-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.proj-link:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.proj-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.proj-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.proj-features {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.proj-features i {
  color: var(--secondary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.stack-tag {
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

.proj-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- Experience --- */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.exp-company-logo {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.exp-info {
  flex: 1;
}

.exp-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.exp-company {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.exp-date {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-badge {
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  align-self: flex-start;
  margin-left: auto;
}

.exp-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-points i {
  color: var(--primary);
  font-size: 0.75rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.clink-icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.clink-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.clink-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  padding: 32px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

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

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

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

.social-icon:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Back To Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  backdrop-filter: blur(10px);
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast i {
  font-size: 1.1rem;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Menu --- */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .avatar-container {
    width: 260px;
    height: 260px;
  }

  .avatar-inner {
    width: 130px;
    height: 130px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    transform: translateX(0);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-container {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-react,
  .badge-node,
  .badge-mongo,
  .badge-js {
    display: none;
  }

  .exp-badge {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 16px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 20px;
  }

  .about-card {
    padding: 20px;
  }
}