/* ============================================================
   ABHISHEK KUMAR — PORTFOLIO STYLES
   style.css
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Dark theme (default) */
  --bg-primary: #080B14;
  --bg-secondary: #0D1120;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(13, 17, 32, 0.7);
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);
  --text-primary: #F1F5FF;
  --text-secondary: #8892A4;
  --text-muted: #4B5568;
  --accent: #6C63FF;
  --accent-2: #00D4AA;
  --accent-3: #FF6B6B;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --gradient-hero: linear-gradient(135deg, #6C63FF 0%, #00D4AA 50%, #FF6B6B 100%);
  --gradient-text: linear-gradient(135deg, #A78BFA 0%, #38BDF8 50%, #34D399 100%);
  --gradient-card: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 212, 170, 0.05));
  --nav-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #F8FAFF;
  --bg-secondary: #EEF2FF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(248, 250, 255, 0.85);
  --border: rgba(0, 0, 0, 0.07);
  --border-bright: rgba(0, 0, 0, 0.14);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --gradient-text: linear-gradient(135deg, #6C63FF 0%, #0EA5E9 50%, #10B981 100%);
  --gradient-card: linear-gradient(135deg, rgba(108, 99, 255, 0.07), rgba(0, 212, 170, 0.04));
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

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

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-hero);
  border-radius: 2px;
  transition: width 0.05s linear;
}

.loader-text {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

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

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: float-aurora 20s ease-in-out infinite;
}

[data-theme="light"] .aurora-blob { opacity: 0.07; }

.aurora-blob:nth-child(1) {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #6C63FF, transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.aurora-blob:nth-child(2) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00D4AA, transparent);
  top: 30%;
  right: -150px;
  animation-delay: -7s;
}

.aurora-blob:nth-child(3) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FF6B6B, transparent);
  bottom: -100px;
  left: 30%;
  animation-delay: -14s;
}

.aurora-blob:nth-child(4) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #A78BFA, transparent);
  top: 60%;
  left: -100px;
  animation-delay: -5s;
}

@keyframes float-aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-heading .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              box-shadow 0.4s ease, border-bottom 0.4s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.nav-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo .dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

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

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

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

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

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

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

.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 {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-nav-link {
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.badge.available {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.3);
  color: #00D4AA;
}

.badge.available::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00D4AA;
  box-shadow: 0 0 8px #00D4AA;
  animation: blink 2s ease-in-out infinite;
}

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

.badge.location { color: var(--text-secondary); }
.badge.location::before { content: '📍'; font-size: 0.7rem; }

.hero-heading {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.hero-heading .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}

.hero-role .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.1em;
  animation: blink-cursor 1s step-end infinite;
}

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

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.social-btn svg { width: 16px; height: 16px; }

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

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

.hero-image-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-image-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}

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

.hero-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-card);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-avatar-icon {
  font-size: 8rem;
  line-height: 1;
  filter: grayscale(0.2);
}

.hero-avatar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 8px;
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

.float-card:nth-child(1) { top: 10px; right: -40px; animation-delay: 0s; }
.float-card:nth-child(2) { bottom: 30px; left: -50px; animation-delay: -2s; }
.float-card:nth-child(3) { top: 50%; right: -60px; transform: translateY(-50%); animation-delay: -1s; }
.float-card .fc-icon { margin-right: 6px; }

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

.float-card:nth-child(3) { animation-name: float-mid; }

@keyframes float-mid {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 8px)) translateX(0); }
}

/* Stats Bar */
.hero-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.stat-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-card-hover); }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-philosophy {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border);
}

.philosophy-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
}

.philosophy-quote::before { content: '"'; color: var(--accent); font-size: 1.5rem; }
.philosophy-quote::after { content: '"'; color: var(--accent); font-size: 1.5rem; }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.timeline-body { flex: 1; }

.timeline-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* ============================================================
   SKILLS — BENTO GRID
   ============================================================ */
.skills-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.skill-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.skill-card-wide  { grid-column: span 4; }
.skill-card-half  { grid-column: span 6; }
.skill-card-third { grid-column: span 3; }
.skill-card-hero  { grid-column: span 8; }

.skill-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.skill-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(108, 99, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(108, 99, 255, 0.2);
  transition: var(--transition);
}

.skill-chip:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--accent);
}

.skill-chip.green {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.2);
}

.skill-chip.red {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.2);
}

.skill-chip.blue {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

.skill-chip.amber {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

/* Skill progress bars */
.skill-bar-wrap  { display: flex; flex-direction: column; gap: 12px; }
.skill-bar-item  { display: flex; flex-direction: column; gap: 6px; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
}

.skill-bar-pct {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.skill-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-hero);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skill highlight */
.skill-highlight {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.skill-highlight-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 35px;
}

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

.exp-item {
  position: relative;
  margin-bottom: 48px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.exp-item:hover {
  border-color: var(--border-bright);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -47px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-glow);
}

.exp-period {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin-bottom: 8px;
}

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

.exp-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0, 212, 170, 0.1);
  color: #00D4AA;
  border: 1px solid rgba(0, 212, 170, 0.25);
  font-weight: 600;
}

.exp-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.exp-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tech {
  padding: 4px 10px;
  font-size: 0.78rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  display: flex;
flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card), 0 0 40px rgba(108, 99, 255, 0.15);
}

.project-image {
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
   border-radius:16px 16px 0 0;
}
.project-screenshot{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s ease;
}

.project-card:hover .project-screenshot{
    transform:scale(1.05);
}

.project-image-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-image-bg { opacity: 0.35; }

.project-image-icon { position: relative; z-index: 1; }

.project-body{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:auto;
}
.project-featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.9);
  color: #fff;
  z-index: 2;
}

/* ============================================================
   GITHUB STATS
   ============================================================ */
.github-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.github-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.github-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.github-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.github-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Contribution Graph */
.contrib-graph {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contrib-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contrib-grid {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.contrib-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contrib-day {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--border);
  transition: var(--transition);
}

.contrib-day.l1 { background: rgba(108, 99, 255, 0.2); }
.contrib-day.l2 { background: rgba(108, 99, 255, 0.4); }
.contrib-day.l3 { background: rgba(108, 99, 255, 0.7); }
.contrib-day.l4 { background: #6C63FF; }
.contrib-day:hover { transform: scale(1.5); z-index: 1; }

/* ============================================================
   LEETCODE
   ============================================================ */
.leetcode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.lc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.lc-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.lc-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.lc-easy   { color: #00D4AA; }
.lc-medium { color: #FBB24B; }
.lc-hard   { color: #FF6B6B; }
.lc-label  { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 35px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--border-bright); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 16px;
}

.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.blog-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.blog-card-top {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.blog-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.blog-body { padding: 20px; }

.blog-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contact-heading .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(108, 99, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.contact-detail-value {
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-social {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
}

.contact-social:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  resize: none;
  line-height: 1.6;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-textarea { min-height: 140px; }

.form-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.form-submit:hover {
  background: #7C74FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.form-submit:active { transform: translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.footer-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text-primary); }

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

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ============================================================
   RESUME SECTION
   ============================================================ */
.resume-section {
  margin-top: 60px;
  padding: 40px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.resume-icon { font-size: 3rem; margin-bottom: 20px; }

.resume-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.resume-sub { color: var(--text-secondary); margin-bottom: 28px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.custom-cursor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}

.custom-cursor-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.custom-cursor.expanded  { transform: translate(-50%, -50%) scale(3); opacity: 0.3; }
.custom-cursor-ring.expanded { transform: translate(-50%, -50%) scale(1.5); }

@media (hover: none) {
  .custom-cursor,
  .custom-cursor-ring { display: none; }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.scroll-top.visible { opacity: 1; visibility: visible; }

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 88px;
  right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
}

.toast.show  { transform: none; opacity: 1; }
.toast.success { border-color: rgba(0, 212, 170, 0.4); }
.toast.error   { border-color: rgba(255, 107, 107, 0.4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-image-wrap { width: 260px; height: 260px; }
  .float-card { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-bento .skill-card-hero  { grid-column: span 12; }
  .skills-bento .skill-card-half  { grid-column: span 12; }
  .skills-bento .skill-card-wide  { grid-column: span 6; }
  .skills-bento .skill-card-third { grid-column: span 6; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .section { padding: 80px 0; }
  .skills-bento { grid-template-columns: 1fr; }
  .skills-bento [class*="skill-card"] { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .github-grid { grid-template-columns: 1fr; }
  .leetcode-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-social { flex-direction: column; }
  .social-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
