/* ============================================================
   MOHAN KRISHNA — PORTFOLIO v2.0
   Grand Champion Style: 3D | Cinematic | Animated
   ============================================================ */

:root {
  /* ── LIGHT MODE PALETTE ── */
  --bg:    #f3f6ff;
  --bg2:   #eaeffc;
  --bg3:   #e0e8f8;
  --card:  #ffffff;
  --card2: #f7f9ff;
  --border: rgba(15,23,74,0.10);
  --blue:   #2563eb;
  --violet: #6d28d9;
  --teal:   #0891b2;
  --green:  #059669;
  --gold:   #d97706;
  --red:    #dc2626;
  --white:  #0f172a;          /* main text — deep navy */
  --muted:  #475569;          /* secondary text — slate */
  --grad:  linear-gradient(135deg, #2563eb, #6d28d9);
  --grad2: linear-gradient(135deg, #0891b2, #2563eb);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --t: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 20px 60px rgba(37,99,235,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); background: var(--bg); color: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }
strong { color: var(--white); }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed; pointer-events: none; z-index: 9999; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--blue); transition: transform 0.1s; }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(79,142,247,0.5);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.active { width: 56px; height: 56px; border-color: var(--blue); }
.cursor-ring.clicking { transform: translate(-50%, -50%) scale(0.8); }

/* ============ LAYOUT ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; position: relative; }

/* ============ SECTION LABELS ============ */
.section-tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 20px;
  display: inline-block;
}
.section-tag.light { color: rgba(255,255,255,0.6); }

.section-title-block { margin-bottom: 64px; }
.section-title-block h2 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.03em; color: var(--white);
}
.section-title-block h2 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title-block.light h2 { color: #fff; }
.section-title-block.light h2 em { background: var(--grad2); -webkit-background-clip: text; background-clip: text; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal-up {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ============ 3D TILT CARDS ============ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s;
  will-change: transform;
}
.tilt-card:hover { box-shadow: 0 30px 80px rgba(79,142,247,0.2); }

/* ============ NAVBAR ============ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(243,246,255,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
#navbar.scrolled { background: rgba(243,246,255,0.97); box-shadow: 0 4px 30px rgba(37,99,235,0.10); }
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-initials {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: #fff;
}
.logo-text { font-weight: 700; font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 7px 13px; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); border-radius: 8px; transition: var(--t);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--grad) !important; color: #fff !important;
  border-radius: 50px !important; padding: 8px 20px !important; font-weight: 700 !important;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(79,142,247,0.5); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: var(--t); }

/* ============ MAGNETIC BUTTON ============ */
.magnetic { display: inline-block; transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }

/* ============ HERO ============ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px; position: relative; overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; padding: 0 28px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 50px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  font-size: 0.78rem; font-weight: 600; color: var(--green);
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero-name-wrap { margin-bottom: 8px; }
.hero-name { font-size: clamp(3.5rem, 10vw, 8rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; display: flex; flex-direction: column; align-items: center; }
.hero-name .line { display: block; }
/* Fix 1a+1b: Mohan & Krishna = same pale army green */
.hero-name .name-white,
.hero-name .name-olive {
  background: linear-gradient(135deg, #7a9e75, #8aaa7f, #6b8f66);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* Fix 1c: Dondapati = visible with glow */
.hero-surname {
  font-family: var(--display); font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: 0.08em; color: rgba(255,255,255,0.45);
  text-transform: uppercase; line-height: 1; margin-bottom: 24px;
}
.surname-glow {
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(163,230,53,0.4), rgba(255,255,255,0.65));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(163,230,53,0.3));
}
.hero-role {
  font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 500;
  color: var(--muted); margin-bottom: 16px; min-height: 1.6em;
}
.role-text { border-right: 2px solid var(--blue); padding-right: 4px; animation: blink 0.9s step-end infinite; }
@keyframes blink { 50%{border-color:transparent} }
.hero-tech {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.hero-tech span { font-family: var(--mono); font-size: 0.75rem; color: var(--teal); background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2); padding: 4px 10px; border-radius: 4px; }
.hero-tech .sep { color: var(--muted); }
.hero-desc { font-size: 1.05rem; max-width: 560px; margin: 0 auto 40px; color: var(--muted); }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: rgba(255,255,255,0.8); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px; margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(37,99,235,0.08);
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 32px; }
.stat-n { font-family: var(--display); font-size: 3rem; letter-spacing: 0.02em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-l { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.stat-divider { width: 1px; height: 44px; background: var(--border); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 15px 36px; background: var(--grad); color: #fff;
  font-weight: 700; border-radius: 50px; font-size: 0.95rem;
  box-shadow: 0 4px 24px rgba(79,142,247,0.35); transition: var(--t);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(79,142,247,0.55); }
.btn-ghost {
  padding: 14px 36px; color: var(--white); font-weight: 700;
  border-radius: 50px; font-size: 0.95rem;
  border: 1.5px solid rgba(37,99,235,0.35); background: rgba(37,99,235,0.05); transition: var(--t);
}
.btn-ghost:hover { background: rgba(37,99,235,0.1); border-color: var(--blue); transform: translateY(-3px); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
}
.scroll-bar { width: 2px; height: 48px; background: linear-gradient(to bottom, var(--blue), transparent); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
.hero-scroll span { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; writing-mode: vertical-rl; }

/* ============ MARQUEE ============ */
.marquee-strip {
  background: var(--blue); overflow: hidden; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
  display: flex; align-items: center; gap: 24px;
  white-space: nowrap; animation: marquee 28s linear infinite;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; color: #fff;
  text-transform: uppercase;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.sep-m { color: rgba(255,255,255,0.5); font-size: 0.6rem; }

/* ============ ABOUT ============ */
#about { background: var(--bg2); }
.about-layout { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.about-text .lead { font-size: 1.1rem; color: var(--white); line-height: 1.75; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 0.95rem; }
.about-pillars { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.pillar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 22px; display: flex; align-items: flex-start; gap: 16px;
  position: relative; overflow: hidden; transition: var(--t);
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
}
.pillar:hover { border-color: rgba(37,99,235,0.35); background: var(--card2); box-shadow: 0 6px 24px rgba(37,99,235,0.12); }
.pillar-num { font-family: var(--display); font-size: 2.5rem; color: rgba(79,142,247,0.15); line-height: 1; flex-shrink: 0; margin-top: -4px; }
.pillar h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 4px; }
.pillar p { font-size: 0.82rem; margin: 0; }
.profile-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; position: sticky; top: 90px;
}
.pc-header {
  padding: 24px; background: var(--grad);
  display: flex; align-items: center; gap: 14px;
}
.pc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
}
.pc-info strong { display: block; color: #fff; font-size: 0.95rem; }
.pc-info span { color: rgba(255,255,255,0.75); font-size: 0.78rem; }
.pc-details { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border); }
.pc-row { display: flex; gap: 10px; font-size: 0.82rem; color: var(--muted); align-items: center; }
.pc-row a { color: var(--blue); } .pc-row a:hover { color: var(--white); }
.pc-certs { padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.cert-row { display: flex; gap: 10px; align-items: center; padding: 10px; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.15); border-radius: var(--r-sm); }
.cert-row span { font-size: 1.1rem; flex-shrink: 0; }
.cert-row strong { display: block; font-size: 0.78rem; color: var(--gold); }
.cert-row em { font-style: normal; font-size: 0.7rem; color: var(--muted); }

/* ============ EXPERTISE ============ */
#expertise { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: var(--t); position: relative; overflow: hidden;
  box-shadow: 0 2px 16px rgba(37,99,235,0.07);
}
.skill-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.15); }
/* Top border highlight on hover */
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: var(--t); z-index: 3;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); }

/* Fix 3: Background image layer per skill card — crisp, no fog */
.sk-bg-layer {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--sk-bg, none);
  background-size: cover; background-position: center;
  opacity: 0.55; transition: opacity 0.4s ease;
  filter: saturate(1.1) brightness(1.0);   /* full color, no grey desaturation */
}
.skill-card:hover .sk-bg-layer { opacity: 0.72; }
/* Text-readability gradient at bottom — so list text stays legible over the image */
.skill-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.88) 45%, rgba(255,255,255,0.96) 100%);
  pointer-events: none;
}
/* Ensure all direct content sits above the bg layer */
.skill-card > .sk-icon,
.skill-card > h3,
.skill-card > ul { position: relative; z-index: 2; }

.sk-icon { font-size: 1.8rem; margin-bottom: 14px; }
.skill-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 14px; font-weight: 700; }
.skill-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.skill-card li { font-size: 0.8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.skill-card li::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--blue); flex-shrink:0; }

/* ============ EXPERIENCE ============ */
#experience { background: var(--bg2); }
.exp-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: 28px; border: 1px solid var(--border);
  min-height: 340px; transition: var(--t);
}
.exp-card:hover { border-color: rgba(79,142,247,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* Fix 4: Real photo background layer (behind canvas) */
.exp-photo-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.38; filter: saturate(0.75) brightness(0.85);
  transition: opacity 0.5s ease;
}
.exp-card:hover .exp-photo-bg { opacity: 0.52; }

.exp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.exp-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(6,8,15,0.76) 0%, rgba(6,8,15,0.55) 100%);
}
.exp-content { position: relative; z-index: 3; padding: 36px 40px; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.exp-left { display: flex; flex-direction: column; gap: 4px; }
.exp-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; }
.exp-badge.current { color: var(--green); }
.exp-period { font-family: var(--mono); font-size: 0.75rem; color: var(--blue); background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2); padding: 3px 10px; border-radius: 4px; display: inline-block; }
.exp-loc { font-size: 0.78rem; color: var(--muted); }
.exp-initial {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.exp-title { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 4px; letter-spacing: -0.02em; }
.exp-company { font-size: 0.9rem; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.exp-summary { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.exp-achievements { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ach { font-size: 0.83rem; color: rgba(240,244,255,0.75); line-height: 1.5; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tags span { font-size: 0.72rem; padding: 4px 10px; background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2); border-radius: 4px; color: var(--blue); font-family: var(--mono); }

/* Theme-specific exp card accents */
.exp-card[data-theme="pharma"] .exp-initial { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.exp-card[data-theme="pharma"] .exp-period { color: #818cf8; background: rgba(129,140,248,0.1); border-color: rgba(129,140,248,0.25); }
.exp-card[data-theme="pharma"] .exp-company { color: #818cf8; }
.exp-card[data-theme="pharma"] .exp-tags span { background: rgba(129,140,248,0.1); border-color: rgba(129,140,248,0.25); color: #818cf8; }

.exp-card[data-theme="healthcare"] .exp-initial { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.exp-card[data-theme="healthcare"] .exp-period { color: #f87171; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.25); }
.exp-card[data-theme="healthcare"] .exp-company { color: #f87171; }
.exp-card[data-theme="healthcare"] .exp-tags span { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.25); color: #f87171; }

.exp-card[data-theme="it"] .exp-initial { background: linear-gradient(135deg, #059669, #34d399); }
.exp-card[data-theme="it"] .exp-period { color: #34d399; background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); }
.exp-card[data-theme="it"] .exp-company { color: #34d399; }
.exp-card[data-theme="it"] .exp-tags span { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); color: #34d399; }

.exp-card[data-theme="it2"] .exp-initial { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.exp-card[data-theme="it2"] .exp-period { color: #22d3ee; background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.25); }
.exp-card[data-theme="it2"] .exp-company { color: #22d3ee; }
.exp-card[data-theme="it2"] .exp-tags span { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.25); color: #22d3ee; }

/* ============ CLIENTS ============ */
#clients { background: var(--bg); }
.clients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.client-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px; position: relative;
  transition: var(--t); box-shadow: 0 2px 16px rgba(37,99,235,0.07);
}
.client-card:hover { transform: translateY(-6px); border-color: rgba(37,99,235,0.3); box-shadow: 0 16px 48px rgba(37,99,235,0.15); }
.client-card.featured { border-color: rgba(37,99,235,0.25); background: linear-gradient(135deg, rgba(37,99,235,0.04), var(--card)); }
.cc-badge { position: absolute; top: 20px; right: 20px; font-size: 0.68rem; font-weight: 700; color: var(--green); background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.cc-logo { width: 60px; height: 60px; border-radius: 16px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 18px; }
.client-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 4px; }
.cc-industry { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.cc-desc { font-size: 0.85rem; line-height: 1.65; margin-bottom: 18px; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tags span { font-size: 0.72rem; padding: 4px 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); }

/* ============ PROJECTS ============ */
#projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; position: relative;
  overflow: hidden; transition: var(--t);
  box-shadow: 0 2px 16px rgba(37,99,235,0.07);
}
.proj-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: var(--t);
}
.proj-card:hover::after { opacity: 1; }
.proj-card:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); }
.pn { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); display: block; margin-bottom: 10px; letter-spacing: 0.1em; }
.pi { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.proj-card h3 { font-size: 0.95rem; color: var(--white); margin-bottom: 8px; font-weight: 700; line-height: 1.35; }
.proj-card > p { font-size: 0.83rem; margin-bottom: 12px; line-height: 1.6; }
.pi-impact { font-size: 0.78rem; padding: 8px 12px; background: rgba(37,99,235,0.06); border-left: 2px solid var(--blue); border-radius: 0 6px 6px 0; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.pt { display: flex; flex-wrap: wrap; gap: 5px; }
.pt span { font-size: 0.68rem; padding: 3px 8px; background: rgba(79,142,247,0.08); border: 1px solid rgba(79,142,247,0.15); border-radius: 4px; color: var(--blue); font-family: var(--mono); }

/* ============ EDUCATION ============ */
#education { background: var(--bg); }
.edu-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.edu-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  min-height: 320px; border: 1px solid var(--border); transition: var(--t);
}
.edu-card:hover { border-color: rgba(245,158,11,0.3); }
.edu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.edu-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,8,15,0.72) 0%, rgba(6,8,15,0.5) 100%);
}
.edu-inner { position: relative; z-index: 2; padding: 36px; }
.edu-icon { font-size: 2.5rem; margin-bottom: 16px; }
.edu-type { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 10px; }
.edu-inner h3 { font-size: 1.15rem; color: var(--white); font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.edu-school { font-size: 0.9rem; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.edu-detail { font-size: 0.78rem; color: var(--muted); margin: 0; }
.certs-column { display: flex; flex-direction: column; gap: 18px; }
.cert-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 28px; display: flex; gap: 18px; align-items: center; transition: var(--t);
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
}
.cert-card:hover { border-color: rgba(217,119,6,0.3); transform: translateX(6px); box-shadow: 0 6px 24px rgba(217,119,6,0.1); }
.cert-logo {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: var(--gold);
}
.cert-details h4 { font-size: 0.92rem; color: var(--white); margin-bottom: 4px; }
.cert-details p { font-size: 0.78rem; margin-bottom: 8px; }
.cert-active { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); padding: 2px 8px; border-radius: 50px; }

/* ============ CONTACT ============ */
#contact { background: var(--bg2); position: relative; overflow: hidden; }
.contact-bg-canvas-wrap { position: absolute; inset: 0; z-index: 0; }
#contactCanvas { width: 100%; height: 100%; opacity: 0.65; }
#contact .container { position: relative; z-index: 1; }
.contact-sub { font-size: 1rem; color: rgba(255,255,255,0.6) !important; max-width: 520px; margin-top: 16px; line-height: 1.65; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cc-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl); padding: 32px 20px; text-align: center;
  transition: var(--t); display: block;
}
.cc-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); transform: translateY(-8px); }
.cc-icon { font-size: 1.8rem; margin-bottom: 14px; }
.cc-card h3 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.cc-card p { color: rgba(255,255,255,0.55) !important; font-size: 0.78rem; margin-bottom: 10px; }
.cc-card span { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* ============ VISITOR COUNTER ============ */
.visitor-bar {
  background: linear-gradient(90deg, #eef1fb, #e4eaf8, #eef1fb);
  border-top: 1px solid rgba(37,99,235,0.15);
  border-bottom: 1px solid rgba(37,99,235,0.15);
  padding: 20px 0;
}
.vb-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.vb-left { display: flex; align-items: center; gap: 10px; }
.vb-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 0 rgba(79,142,247,0.5);
  animation: vbPulse 2s infinite;
}
@keyframes vbPulse {
  0%{box-shadow:0 0 0 0 rgba(79,142,247,0.5)}
  70%{box-shadow:0 0 0 10px rgba(79,142,247,0)}
  100%{box-shadow:0 0 0 0 rgba(79,142,247,0)}
}
.vb-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.vb-count { display: flex; align-items: baseline; gap: 12px; }
.vc-num { font-family: var(--display); font-size: 3rem; letter-spacing: 0.05em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.vb-tag { font-size: 0.75rem; color: var(--muted); font-style: italic; }
.vb-right { text-align: right; }
.vb-live { font-family: var(--mono); font-size: 0.68rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); padding: 4px 10px; border-radius: 50px; }

/* ============ FOOTER ============ */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 44px 0; box-shadow: 0 -2px 20px rgba(37,99,235,0.06); }
.footer-layout { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; }
.footer-brand strong { display: block; font-size: 0.9rem; }
.footer-brand p { font-size: 0.78rem; margin: 0; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 0.82rem; color: var(--muted); transition: var(--t); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.75rem; color: var(--muted); margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .edu-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(6,8,15,0.98); backdrop-filter: blur(20px); padding: 20px; gap: 6px; border-bottom: 1px solid var(--border); }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { padding: 12px 16px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .vb-inner { flex-direction: column; text-align: center; }
  .vb-right { text-align: center; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  .exp-content { padding: 24px; }
}

/* ============ LIGHT MODE OVERRIDES ============ */
/* Hero — slightly tinted white bg so canvas particles are visible */
#hero { background: linear-gradient(160deg, #eef2ff 0%, #f3f6ff 50%, #e8f0fe 100%); }

/* Surname glow adjusted for light bg */
.hero-surname { color: rgba(15,23,74,0.18); }
.surname-glow {
  background: linear-gradient(135deg, rgba(15,23,74,0.5), rgba(109,40,217,0.3), rgba(37,99,235,0.5));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 12px rgba(37,99,235,0.2));
}

/* Section label pills */
.section-tag { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.18); }

/* About section has same light bg */
#about { background: var(--bg2); }

/* ── EXPERIENCE SECTION: full light mode ── */
#experience { background: var(--bg2) !important; }

/* Light overlay so canvas animations show through on white bg */
.exp-overlay {
  background: linear-gradient(135deg, rgba(240,245,255,0.88) 0%, rgba(235,241,255,0.72) 100%);
}

/* Card border for light mode */
.exp-card { box-shadow: 0 4px 24px rgba(37,99,235,0.10); }
.exp-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,0.18) !important; }

/* Text inside exp cards: make dark */
.exp-title   { color: #0f172a; }
.exp-summary { color: #475569; }
.ach         { color: #334155; }
.exp-loc     { color: #64748b; }

/* ── Theme accent overrides for light bg ── */
.exp-card[data-theme="pharma"] .exp-period  { color: #4f46e5; background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.22); }
.exp-card[data-theme="pharma"] .exp-company { color: #4f46e5; }
.exp-card[data-theme="pharma"] .exp-tags span { background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.2); color: #4f46e5; }
.exp-card[data-theme="pharma"] .exp-initial  { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

/* Fix 1: healthcare — keep red backgrounds, change TEXT to warm light yellow */
.exp-card[data-theme="healthcare"] .exp-period  { color: #fef3c7; background: rgba(220,38,38,0.75); border-color: rgba(220,38,38,0.9); font-weight: 700; }
.exp-card[data-theme="healthcare"] .exp-company { color: #dc2626; }  /* company name on white — stays red (readable) */
.exp-card[data-theme="healthcare"] .exp-tags span { background: rgba(220,38,38,0.82); border-color: rgba(220,38,38,0.9); color: #fef3c7; font-weight: 600; }
.exp-card[data-theme="healthcare"] .exp-initial { background: linear-gradient(135deg, #dc2626, #e11d48); }

.exp-card[data-theme="it"] .exp-period  { color: #047857; background: rgba(4,120,87,0.08); border-color: rgba(4,120,87,0.22); }
.exp-card[data-theme="it"] .exp-company { color: #047857; }
.exp-card[data-theme="it"] .exp-tags span { background: rgba(4,120,87,0.08); border-color: rgba(4,120,87,0.2); color: #047857; }
.exp-card[data-theme="it"] .exp-initial  { background: linear-gradient(135deg, #047857, #059669); }

.exp-card[data-theme="it2"] .exp-period  { color: #0369a1; background: rgba(3,105,161,0.08); border-color: rgba(3,105,161,0.22); }
.exp-card[data-theme="it2"] .exp-company { color: #0369a1; }
.exp-card[data-theme="it2"] .exp-tags span { background: rgba(3,105,161,0.08); border-color: rgba(3,105,161,0.2); color: #0369a1; }
.exp-card[data-theme="it2"] .exp-initial  { background: linear-gradient(135deg, #0369a1, #0891b2); }

/* Education section also light */
#education { background: var(--bg) !important; }
.edu-overlay {
  background: linear-gradient(135deg, rgba(240,245,255,0.88) 0%, rgba(235,241,255,0.68) 100%);
}
.edu-inner h3 { color: #0f172a; }
.edu-school   { color: #d97706; }
.edu-detail   { color: #64748b; }
.edu-type     { color: #d97706; }
.edu-icon     { filter: none; }

/* Profile card header reads fine; details need subtle border */
.pc-details { border-bottom-color: var(--border); }

/* Skill card li dot */
.skill-card li::before { background: var(--blue); }

/* Skill card tags */
.exp-tags span { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.18); color: var(--blue); }
.pt span { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.15); color: var(--blue); }
.cc-tags span { background: rgba(37,99,235,0.05); border-color: var(--border); color: var(--muted); }

/* Contact section stays dark for the wave canvas */
#contact { background: #141e38; }
.contact-sub { color: rgba(255,255,255,0.7) !important; }

/* Projects section alternating light */
#projects { background: var(--bg2); }

/* Clients section */
#clients { background: var(--bg); }

/* hero-tech tags */
.hero-tech span { color: var(--teal); background: rgba(8,145,178,0.08); border-color: rgba(8,145,178,0.22); }

/* nav links on light bg */
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--white); background: rgba(37,99,235,0.07); }

/* scroll bar color on hero */
.scroll-bar { background: linear-gradient(to bottom, var(--blue), transparent); }

/* Marquee strip — keep the blue */
.marquee-strip { background: var(--blue); }

