/* ============================================================
   SHIVAM NANGARE — PROFESSIONAL PORTFOLIO STYLES
   ============================================================ */



/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Dark palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-glass: rgba(22, 22, 31, 0.65);

  /* Accent gradient */
  --accent-1: #6c63ff;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-vibrant: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #9494a8;
  --text-muted: #63637a;

  /* Borders */
  --border-subtle: rgba(148, 148, 168, 0.1);
  --border-accent: rgba(108, 99, 255, 0.3);

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(108, 99, 255, 0.15);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   LIGHT MODE VARIABLES
   ============================================================ */
body.light-mode {
  --bg-primary: #f4f4ff;
  --bg-secondary: #eaeaf8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0ff;
  --bg-glass: rgba(255, 255, 255, 0.75);

  --text-primary: #0d0d1a;
  --text-secondary: #4a4a6a;
  --text-muted: #8888aa;

  --border-subtle: rgba(108, 99, 255, 0.12);
  --border-accent: rgba(108, 99, 255, 0.35);

  --shadow-card: 0 4px 32px rgba(100, 90, 200, 0.08);
  --shadow-glow: 0 0 60px rgba(108, 99, 255, 0.12);
}

/* Smooth theme transitions */
body,
body *,
body *::before,
body *::after {
  transition:
    background-color 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent-1);
  color: #fff;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ---- Particle Canvas ---- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 14px 48px;
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-accent {
  color: var(--accent-1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 24px;
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  padding: 16px 0;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) .mobile-nav-link { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) .mobile-nav-link { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) .mobile-nav-link { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) .mobile-nav-link { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) .mobile-nav-link { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(6) .mobile-nav-link { transition-delay: 0.35s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(7) .mobile-nav-link { transition-delay: 0.4s; }

.mobile-nav-link:hover {
  color: var(--accent-1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.05);
  transform: translateY(-2px);
}

.btn i,
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn:hover i,
.btn:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  gap: 80px;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-greeting {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #f0f0f5 0%, #c4c4d4 50%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.hero-role-label {
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-role {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-cursor {
  font-weight: 200;
  color: var(--accent-1);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-3px);
}

.social-link i,
.social-link svg {
  width: 20px;
  height: 20px;
}

/* Hero Visual / Avatar */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar-container {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(108, 99, 255, 0.15);
  animation: rotate-slow 20s linear infinite;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 12px var(--accent-1);
}

.ring-2 {
  inset: 30px;
  animation: rotate-slow 15s linear infinite reverse;
  border-color: rgba(168, 85, 247, 0.12);
}

.ring-2::before {
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

.avatar-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
  filter: blur(40px);
}

.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.3);
  overflow: hidden;
  clip-path: circle(50%);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 3;
  box-shadow: var(--shadow-card);
}

.floating-badge i,
.floating-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-1);
}

.badge-1 {
  top: 30px;
  right: -20px;
  animation: float-1 6s ease-in-out infinite;
}

.badge-2 {
  bottom: 80px;
  left: -30px;
  animation: float-2 7s ease-in-out infinite;
}

.badge-3 {
  bottom: 20px;
  right: 10px;
  animation: float-3 5s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-3deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fade-in-up 1s ease 1.5s both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 3px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   SECTIONS (common)
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-padding);
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-intro strong {
  color: var(--accent-1);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.4s ease;
}

.stat-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Info Cards */
.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.info-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  flex-shrink: 0;
}

.info-icon i,
.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.info-value {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

a.info-value:hover {
  color: var(--accent-1);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: default;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1);
}

.service-icon-wrap i,
.service-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-number {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(108, 99, 255, 0.06);
  line-height: 1;
  transition: color 0.4s ease;
}

.service-card:hover .service-number {
  color: rgba(108, 99, 255, 0.12);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 60px;
  margin-bottom: 64px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-1);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 1.5s var(--ease-out-expo);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
}

/* Tech Marquee */
.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 16px;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}

.tech-tag {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   RESUME / TIMELINE
   ============================================================ */
.resume {
  background: var(--bg-secondary);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.resume-column-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.resume-column-header i,
.resume-column-header svg {
  width: 28px;
  height: 28px;
  color: var(--accent-1);
}

.resume-column-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), rgba(108, 99, 255, 0.1));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-1);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-1);
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.5);
}

.timeline-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.timeline-card:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-glow);
}

.timeline-date {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-place {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-card p:last-of-type {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Open for work badge */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s infinite;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: default;
}

a.contact-card {
  cursor: pointer;
}

a.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  flex-shrink: 0;
}

.contact-card-icon i,
.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-card-value {
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-card-arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

a.contact-card:hover .contact-card-arrow {
  color: var(--accent-1);
  transform: translate(3px, -3px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
  background: var(--bg-card);
  padding: 0 6px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  font-size: 0.75rem;
  color: var(--accent-1);
  font-weight: 600;
}

.form-group textarea {
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  padding: 60px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-1);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.skills-grid .animate-on-scroll:nth-child(even) { transition-delay: 0.1s; }

.about-info-cards .info-card:nth-child(1) { transition-delay: 0s; }
.about-info-cards .info-card:nth-child(2) { transition-delay: 0.08s; }
.about-info-cards .info-card:nth-child(3) { transition-delay: 0.16s; }
.about-info-cards .info-card:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 80px;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-avatar-container {
    width: 280px;
    height: 280px;
  }

  .avatar-placeholder {
    width: 140px;
    height: 140px;
  }

  .avatar-initials {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .navbar {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .resume-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-avatar-container {
    width: 240px;
    height: 240px;
  }

  .floating-badge {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */

.section-subtitle {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(var(--proj-color-rgb, 108, 99, 255), 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--proj-color, var(--accent-1));
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--proj-color, var(--accent-1));
}

.project-card:hover::before {
  opacity: 1;
}

/* Icon wrap */
.project-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--proj-color, #6c63ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--proj-color, #6c63ff) 30%, transparent);
  color: var(--proj-color, #6c63ff);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-icon-wrap {
  background: color-mix(in srgb, var(--proj-color, #6c63ff) 20%, transparent);
  transform: scale(1.08) rotate(-4deg);
}

/* Project content */
.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--badge-color, #6c63ff) 12%, transparent);
  color: var(--badge-color, var(--accent-1));
  border: 1px solid color-mix(in srgb, var(--badge-color, #6c63ff) 28%, transparent);
  white-space: nowrap;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

/* Tech pills */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tech-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(148, 148, 168, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.project-card:hover .tech-pill {
  border-color: rgba(148, 148, 168, 0.2);
  color: var(--text-primary);
}

/* Footer links */
.project-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--text-primary);
  border-color: rgba(148, 148, 168, 0.3);
  background: rgba(148, 148, 168, 0.06);
}

.project-link-live:hover {
  color: var(--proj-color, var(--accent-1));
  border-color: var(--proj-color, var(--accent-1));
  background: color-mix(in srgb, var(--proj-color, #6c63ff) 8%, transparent);
}

.project-link i,
.project-link svg {
  width: 16px;
  height: 16px;
}

/* Big number watermark */
.project-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--border-subtle);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
  user-select: none;
}

.project-card:hover .project-number {
  color: color-mix(in srgb, var(--proj-color, #6c63ff) 15%, transparent);
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .project-card {
    padding: 24px 20px;
  }

  .project-number {
    font-size: 3rem;
  }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.theme-toggle:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(108, 99, 255, 0.08);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out-back) !important;
}

/* Dark mode: show moon, hide sun */
.sun-icon  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.moon-icon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Light mode: show sun, hide moon */
body.light-mode .sun-icon  { opacity: 1; transform: rotate(0deg) scale(1); }
body.light-mode .moon-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

/* Light mode navbar background */
body.light-mode .navbar {
  background: rgba(244, 244, 255, 0.85);
  border-bottom-color: rgba(108, 99, 255, 0.12);
}

body.light-mode .navbar.scrolled {
  background: rgba(244, 244, 255, 0.95);
}

/* Light mode hero name gradient stays vivid */
body.light-mode .hero-name {
  background: linear-gradient(135deg, #0d0d1a 0%, #2d2d4a 40%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode mobile nav */
body.light-mode .mobile-nav-overlay {
  background: rgba(244, 244, 255, 0.97);
}

/* Light mode particle canvas tint */
body.light-mode #particleCanvas {
  opacity: 0.3;
}

/* ============================================================
   ANIMATED BACKGROUND BLOBS
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.18), transparent 70%);
  top: -120px;
  left: -100px;
  animation: blob-drift-1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 70%);
  top: 30%;
  right: -80px;
  animation: blob-drift-2 18s ease-in-out infinite alternate;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.10), transparent 70%);
  bottom: 10%;
  left: 30%;
  animation: blob-drift-3 12s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes blob-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, 30px) scale(1.1); }
  100% { transform: translate(30px, -60px) scale(0.92); }
}

@keyframes blob-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -40px) scale(1.12); }
  100% { transform: translate(-30px, 30px) scale(0.96); }
}

/* Light mode blobs are softer */
body.light-mode .blob-1 {
  background: radial-gradient(circle, rgba(108, 99, 255, 0.10), transparent 70%);
}
body.light-mode .blob-2 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
}
body.light-mode .blob-3 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06), transparent 70%);
}

/* ============================================================
   ENHANCED SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo) !important;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of grids */
.services-grid .service-card:nth-child(1)  { transition-delay: 0.05s !important; }
.services-grid .service-card:nth-child(2)  { transition-delay: 0.15s !important; }
.services-grid .service-card:nth-child(3)  { transition-delay: 0.25s !important; }
.services-grid .service-card:nth-child(4)  { transition-delay: 0.35s !important; }

.projects-grid .project-card:nth-child(1)  { transition-delay: 0.05s !important; }
.projects-grid .project-card:nth-child(2)  { transition-delay: 0.18s !important; }
.projects-grid .project-card:nth-child(3)  { transition-delay: 0.31s !important; }
.projects-grid .project-card:nth-child(4)  { transition-delay: 0.44s !important; }

.skills-grid   .skill-item:nth-child(1)    { transition-delay: 0.05s !important; }
.skills-grid   .skill-item:nth-child(2)    { transition-delay: 0.12s !important; }
.skills-grid   .skill-item:nth-child(3)    { transition-delay: 0.19s !important; }
.skills-grid   .skill-item:nth-child(4)    { transition-delay: 0.26s !important; }
.skills-grid   .skill-item:nth-child(5)    { transition-delay: 0.33s !important; }
.skills-grid   .skill-item:nth-child(6)    { transition-delay: 0.40s !important; }
