/* ============================================
   SAMARTH KUCHYA PORTFOLIO — PREMIUM CSS
   ============================================ */

/* --- Google Font Import (fallback if network unavailable) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  /* Colors */
  --bg-color: #060610;
  --bg-secondary: #0c0c1e;
  --surface: #12122a;
  --surface-light: #1a1a35;
  --surface-lighter: #22224a;

  --cyan: #00f5ff;
  --cyan-dim: rgba(0, 245, 255, 0.15);
  --cyan-glow: rgba(0, 245, 255, 0.4);
  --purple: #9d4edd;
  --purple-dim: rgba(157, 78, 221, 0.15);
  --violet: #7b2fff;
  --pink: #ff3fd8;

  --text-primary: #e8e8f8;
  --text-secondary: #9090b8;
  --text-muted: #5a5a88;

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 245, 255, 0.25);
  --glass: rgba(12, 12, 30, 0.6);

  /* Fonts */
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 7rem 6%;
  --max-w: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--surface-lighter); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ============ PARTICLE CANVAS ============ */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ============ CUSTOM CURSOR ============ */
.cursor-glow {
  position: fixed;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}

.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s var(--ease), background 0.2s;
  box-shadow: 0 0 10px var(--cyan-glow);
}

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

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 4px;
  font-family: var(--mono);
  text-shadow: 0 0 30px var(--cyan-glow);
  margin-bottom: 2rem;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface-lighter);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  animation: loader-progress 2s ease forwards;
}

.loader-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

@keyframes loader-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px var(--cyan-glow); }
  50% { text-shadow: 0 0 50px var(--cyan-glow), 0 0 80px rgba(0,245,255,0.2); }
}

/* ============ BACKGROUND ============ */
.bg-gradients {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: drift 25s ease-in-out infinite alternate;
}

.blob-1 {
  width: 55vw; height: 55vw;
  top: -15%; left: -15%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation-delay: 0s;
}

.blob-2 {
  width: 65vw; height: 65vw;
  bottom: -20%; right: -15%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation-delay: -8s;
}

.blob-3 {
  width: 40vw; height: 40vw;
  top: 40%; left: 35%;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  opacity: 0.2;
  animation-delay: -15s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, 8%) scale(1.1); }
  100% { transform: translate(-4%, -4%) scale(0.9); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
}

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 6%;
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
  transition: all 0.4s var(--ease);
}

nav.scrolled {
  padding: 1rem 6%;
  background: rgba(6, 6, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  margin-right: auto;
}

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

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.25s var(--ease);
  position: relative;
}

.nav-num {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-right: 4px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--cyan-dim);
}

.nav-resume {
  font-size: 0.85rem !important;
  padding: 0.5rem 1.2rem !important;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 16, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--cyan); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b4cc);
  color: var(--bg-color);
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* ============ SECTION STRUCTURE ============ */
section {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
  max-width: calc(var(--max-w) + 12%);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: unset;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  margin: 0 auto;
}

.highlight {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ ANIMATION CLASSES ============ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding-top: 9rem;
  padding-bottom: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-accent);
  color: var(--cyan);
  font-size: 0.8rem;
  font-family: var(--mono);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-greeting {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -2px;
}

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

.accent-line {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
}

.typed-text {
  color: var(--cyan);
  font-weight: 700;
}

.typed-cursor {
  color: var(--cyan);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

.hero-desc {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s var(--spring);
}

.social-link:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.2);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-container {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1.2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-file {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.code-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}

code { display: block; white-space: pre; }

.c-keyword { color: #c792ea; }
.c-class { color: #ffcb6b; }
.c-func { color: #82aaff; }
.c-param { color: #f07178; }
.c-string { color: #c3e88d; }
.c-num { color: #f78c6c; }

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-light);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.floating-badge i { color: var(--cyan); }

.badge-1 {
  top: -1rem; right: -2rem;
  animation: float-b1 4s ease-in-out infinite;
}
.badge-2 {
  bottom: 2rem; left: -3rem;
  animation: float-b2 5s ease-in-out infinite;
}
.badge-3 {
  bottom: -1rem; right: 0rem;
  animation: float-b1 3.5s ease-in-out infinite reverse;
}

@keyframes float-b1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -8px); }
}

@keyframes float-b2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, 8px); }
}

/* Scroll Indicator */
.scroll-indicator {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  animation: fadeIn 2s ease 3s both;
}

.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--cyan);
  border-radius: 3px;
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

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

/* ============ ABOUT SECTION ============ */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-text p { margin-bottom: 1.4rem; }
.about-text strong { color: var(--text-primary); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2rem;
}

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

.highlight-item i {
  color: var(--cyan);
  font-size: 0.85rem;
  width: 16px;
  flex-shrink: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all 0.35s var(--spring);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.1);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ SKILLS SECTION ============ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.skill-category:hover::before { transform: scaleX(1); }

.skill-category:hover {
  border-color: rgba(0, 245, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.skill-cat-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.skill-category h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: var(--surface-light);
  color: var(--text-secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--mono);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: default;
}

.skill-tag:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ============ EXPERIENCE SECTION ============ */
.timeline {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 6px;
}

.marker-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2.5px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: all 0.3s;
}

.timeline-item:hover .marker-dot {
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.marker-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  margin-top: 8px;
  min-height: 40px;
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s var(--ease);
}

.timeline-content:hover {
  border-color: rgba(0, 245, 255, 0.25);
  transform: translateX(6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-badge {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-color);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.timeline-desc li { margin-bottom: 0.5rem; }
.timeline-desc strong { color: var(--text-primary); }

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tech span {
  background: var(--surface-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}

/* ============ PROJECTS SECTION ============ */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--spring);
}

.featured-card:hover { transform: translateY(-8px); }

.featured-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}

.featured-card:hover .featured-card-inner {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 245, 255, 0.1);
}

/* Glint effect */
.project-glint {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, rgba(0,245,255,0.08), transparent);
  transform: rotate(30deg);
  transition: all 0.5s var(--ease);
  pointer-events: none;
}

.featured-card:hover .project-glint {
  top: 0; left: 0;
}

.featured-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon-wrap {
  font-size: 2rem;
  color: var(--cyan);
  opacity: 0.8;
  transition: all 0.3s;
}

.featured-card:hover .project-icon-wrap {
  opacity: 1;
  transform: scale(1.1);
}

.project-links {
  display: flex;
  gap: 0.8rem;
}

.project-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.25s var(--spring);
}

.project-links a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.featured-badge {
  display: inline-block;
  background: var(--cyan-dim);
  border: 1px solid var(--border-accent);
  color: var(--cyan);
  font-size: 0.7rem;
  font-family: var(--mono);
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-badge.hackathon {
  background: var(--purple-dim);
  border-color: rgba(157, 78, 221, 0.3);
  color: var(--purple);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.featured-card:hover .project-title { color: var(--cyan); }

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.project-tech span {
  color: var(--text-muted);
  transition: color 0.3s;
}

.featured-card:hover .project-tech span { color: var(--text-secondary); }

/* ============ CONTACT SECTION ============ */
.contact {
  text-align: center;
  position: relative;
}

.contact-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,245,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  max-width: 650px;
  margin: 0 auto;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-text strong { color: var(--text-primary); }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-btn {
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s var(--spring);
}

.social-icon-btn:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.15);
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 3rem 6%;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.footer-sub {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-title { align-items: center; }
  .hero-desc { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }

  .hero-visual { display: none; }

  .scroll-indicator { grid-column: 1; }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 5rem 5%; }

  .nav-links, .nav-resume { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: 7rem; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

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

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

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

  .timeline-item { grid-template-columns: 30px 1fr; }

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

  .timeline-header { flex-direction: column; gap: 0.5rem; }

  .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-tag { font-size: 0.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-num { font-size: 2rem; }
}

/* ============ CERTIFICATIONS SECTION ============ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.cert-card:hover::before { transform: scaleX(1); }

.cert-card:hover {
  border-color: rgba(0, 245, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cert-icon {
  font-size: 2rem;
  color: var(--cyan);
  flex-shrink: 0;
  width: 50px;
  text-align: center;
  padding-top: 4px;
}

.cert-info { flex: 1; }

.cert-badge {
  display: inline-block;
  background: var(--cyan-dim);
  border: 1px solid var(--border-accent);
  color: var(--cyan);
  font-size: 0.65rem;
  font-family: var(--mono);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cert-badge.hackathon {
  background: var(--purple-dim);
  border-color: rgba(157, 78, 221, 0.3);
  color: var(--purple);
}

.cert-badge.exam {
  background: rgba(0, 214, 143, 0.1);
  border-color: rgba(0, 214, 143, 0.3);
  color: #00d68f;
}

.cert-badge.competition {
  background: rgba(240, 165, 0, 0.1);
  border-color: rgba(240, 165, 0, 0.3);
  color: #f0a500;
}

.cert-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ ACTIVE NAV LINK ============ */
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ============ GLOW PULSE ON TIMELINE DOTS ============ */
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--cyan-glow); }
  50%       { box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(0,245,255,0.2); }
}

.marker-dot { animation: dot-pulse 2.5s ease-in-out infinite; }

/* ============ BACKGROUND SHIMMER ON SECTION HEADERS ============ */
.section-label {
  animation: none;
  position: relative;
}

/* ============ SKILL CAT HOVER ACCENT ============ */
.skill-category h3 i {
  transition: transform 0.3s var(--spring), color 0.3s;
}
.skill-category:hover h3 i {
  transform: scale(1.2) rotate(-5deg);
  color: var(--purple);
}

/* ============ PROJECT CARD RANK ACCENT ============ */
.featured-card:first-child .featured-card-inner {
  background: linear-gradient(145deg, var(--surface), rgba(0,245,255,0.03));
}

/* ============ CONTACT GLOW PULSE ============ */
@keyframes contact-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.contact-glow { animation: contact-glow 4s ease-in-out infinite; }

/* ============ TIMELINE ITEM REVEAL ============ */
.timeline-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(2) { transition-delay: 0.15s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }

