/* ===================================================
   PORTFOLIO — Dark Luxury Edition
   Inspired by: Moonshot AI · Linear · Raycast · Vercel
   =================================================== */

:root {
  --bg:           #050505;
  --bg1:          #080809;
  --bg2:          #0d0d0f;
  --surface:      #131315;
  --card:         rgba(255, 255, 255, 0.04);
  --card-hover:   rgba(255, 255, 255, 0.065);
  --text:         #f0f0f4;
  --text2:        rgba(240, 240, 244, 0.56);
  --text3:        rgba(240, 240, 244, 0.28);
  --accent:       #94b8ff;
  --accent2:      #c4b0ff;
  --border:       rgba(255, 255, 255, 0.08);
  --border-h:     rgba(255, 255, 255, 0.16);
  --radius:       16px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:        56px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (hover: hover) and (pointer: fine) {
  body,
  body a,
  body button,
  body input,
  body textarea,
  body select,
  body label,
  body [role="button"],
  body [data-magnetic],
  body .tilt-card,
  body .skill-tags span,
  body .nav-links a,
  body .btn-primary,
  body .btn-outline,
  body .btn-resume,
  body .contact-card,
  body .project-links a,
  body .hero-socials a {
    cursor: none;
  }
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Accent — inline color override only */
.accent { color: var(--accent); }

/* ── AMBIENT BACKGROUND GLOW ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%,  rgba(70, 110, 230, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 90%,  rgba(110, 70, 230, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 65%,  rgba(60, 180, 255, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 0.4s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,    0   ) }
  20%  { transform: translate(-3%,  -2% ) }
  40%  { transform: translate( 3%,   2% ) }
  60%  { transform: translate(-2%,   3% ) }
  80%  { transform: translate( 2%,  -3% ) }
  100% { transform: translate(-1%,   1% ) }
}

/* ── CURSOR ── */
#cursor-dot {
  position: fixed;
  width: 7px; height: 7px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.018);
  will-change: transform;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s, background 0.3s, opacity 0.3s;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.04),
              inset 0 0 10px rgba(255, 255, 255, 0.02);
}
body.cursor-hover #cursor-dot  { width: 5px; height: 5px; opacity: 0.6; }
body.cursor-hover #cursor-ring {
  width: 50px; height: 50px;
  border-color: rgba(148, 184, 255, 0.4);
  background: rgba(148, 184, 255, 0.04);
}
@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── NAVBAR — Floating Glass Pill ── */
#navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  height: var(--nav-h);
  z-index: 100;
  border-radius: 100px;
  background: rgba(8, 8, 10, 0.52);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
#navbar.scrolled {
  background: rgba(6, 6, 8, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-inner {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-right: auto;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; list-style: none; }
.nav-links a {
  position: relative;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px;
  height: 1px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover        { color: var(--text); }
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-links a.active       { color: var(--text); }
.nav-links a.active::after{ transform: translateX(-50%) scaleX(1); }

.btn-resume {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 8px;
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-resume:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }

/* Vignette overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 35%, rgba(5,5,5,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 36px;
  font-weight: 400;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
}
.hero-name {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 28px;
}
/* Word spans injected by JS */
.hero-name .word { display: inline-block; }

.hero-roles {
  font-size: clamp(0.95rem, 2.4vw, 1.18rem);
  margin-bottom: 18px;
  color: var(--text2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 300;
  gap: 4px;
}
.typed-role { color: var(--text); font-weight: 400; }
.cursor     { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 14px;
  color: var(--text3);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-socials { display: flex; gap: 14px; justify-content: center; }
.hero-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text3);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.25s var(--ease);
}
.hero-socials a:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* ── SCROLL INDICATOR ── */
.scroll-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  z-index: 2;
}
.scroll-fill {
  width: 100%; height: 45%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3));
  animation: scroll-run 2.4s ease-in-out infinite;
}
@keyframes scroll-run {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(280%); opacity: 0; }
}

/* ── BUTTONS ── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(148,184,255,0.07);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
.section { padding: 120px 0; position: relative; }
#experience, #skills, #contact { background: var(--bg1); }
#about, #education, #publications, #projects { background: var(--bg); }

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 64px;
  color: var(--text);
}
.section-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  color: var(--text2);
  max-width: 520px;
  margin: -48px auto 60px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
}

/* ── REVEAL (GSAP controls the animation; fallback here) ── */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.about-photo-wrap {
  position: relative;
  transition: transform 0.4s var(--ease);
}
.about-photo-wrap:hover { transform: translateY(-4px); }
.about-photo {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55),
              0 0 0 1px rgba(255,255,255,0.04);
  filter: brightness(0.9) contrast(1.05);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.1);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--text3);
  background: var(--surface);
}
.photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(148,184,255,0.07) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.about-text p { color: var(--text2); margin-bottom: 18px; line-height: 1.85; font-size: 16px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-stats { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.stat:hover { border-color: var(--border-h); transform: translateY(-2px); }
.stat-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(148, 184, 255, 0.28) 8%,
    rgba(148, 184, 255, 0.12) 92%,
    transparent 100%
  );
}
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-dot {
  position: absolute;
  left: -27px; top: 28px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg1);
  box-shadow: 0 0 0 3px rgba(148,184,255,0.14),
              0 0 10px rgba(148,184,255,0.28);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 4px rgba(148,184,255,0.22),
              0 0 18px rgba(148,184,255,0.45);
  transform: scale(1.2);
}
.timeline-card {
  background: var(--card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,184,255,0.22), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.timeline-card:hover {
  border-color: var(--border-h);
  transform: translateX(4px);
  box-shadow: -4px 0 28px rgba(148,184,255,0.05), 0 8px 32px rgba(0,0,0,0.28);
}
.timeline-card:hover::before { opacity: 1; }

.edu-icon { font-size: 20px; color: var(--accent); opacity: 0.65; margin-bottom: 10px; }
.edu-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.edu-badge.erasmus {
  background: rgba(148, 184, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(148, 184, 255, 0.2);
}
.timeline-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 5px;
}
.timeline-card h4 {
  font-size: 13px;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 8px;
  font-weight: 400;
}
.edu-date {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.timeline-card p { color: var(--text2); font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.edu-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.edu-tags span {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  background: rgba(255,255,255,0.035);
  color: var(--text3);
  border: 1px solid rgba(255,255,255,0.065);
  letter-spacing: -0.005em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.edu-tags span:hover {
  color: var(--text2);
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.07);
}

/* ── EXPERIENCE badges ── */
.exp-header  { margin-bottom: 12px; }
.exp-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.exp-badge.current { background: rgba(80,200,120,0.1);  color: #6dd89a; border: 1px solid rgba(80,200,120,0.22); }
.exp-badge.bosch   { background: rgba(255,160,60,0.1);  color: #ffa040; border: 1px solid rgba(255,160,60,0.22); }
.exp-list {
  padding-left: 18px;
  margin: 12px 0 16px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.85;
}
.exp-list li { margin-bottom: 7px; }
.exp-list strong { color: var(--text); font-weight: 500; }

/* ── SKILLS ── */
#skills { position: relative; overflow: hidden; }
#skills::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.013;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpath d='M40 4L76 24v44L40 88 4 68V24z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 92px;
}
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.skill-group {
  background: var(--card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.skill-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
}
.skill-group:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}
.skill-group h3 i { color: var(--accent); opacity: 0.65; font-size: 12px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text2);
  border: 1px solid rgba(255,255,255,0.07);
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease);
  cursor: default;
}
.skill-tags span:hover {
  background: rgba(148,184,255,0.1);
  color: var(--accent);
  border-color: rgba(148,184,255,0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(148,184,255,0.1);
}

.lang-row {
  margin-top: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.lang-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}
.lang-title i { color: var(--accent); opacity: 0.65; }
.lang-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 120px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.lang-item:hover { border-color: var(--border-h); transform: translateY(-2px); }
.lang-name  { font-weight: 600; font-size: 14px; color: var(--text); }
.lang-level { font-size: 11px; color: var(--text3); }

/* ── PUBLICATIONS ── */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pub-card {
  background: var(--card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.pub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,184,255,0.35), transparent);
}
.pub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pub-card:hover { border-color: var(--border-h); box-shadow: 0 16px 48px rgba(0,0,0,0.38); }
.pub-card:hover::after { opacity: 1; }

.pub-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 14px;
  background: rgba(148,184,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(148,184,255,0.2);
  letter-spacing: 0.02em;
}
.pub-icon  { font-size: 20px; color: var(--accent); opacity: 0.55; margin-bottom: 12px; }
.pub-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.pub-card p { color: var(--text2); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.pub-meta   { display: flex; gap: 16px; flex-wrap: wrap; }
.pub-meta span { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 5px; }
.pub-meta i    { color: var(--accent); opacity: 0.65; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.project-card {
  background: var(--card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover              { border-color: var(--border-h); box-shadow: 0 12px 40px rgba(0,0,0,0.32); }
.project-card:hover::before      { opacity: 1; }
.project-icon                    { font-size: 26px; color: var(--accent); opacity: 0.65; }
.project-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.project-card p  { color: var(--text2); font-size: 14px; line-height: 1.8; flex: 1; }
.project-card p strong { color: var(--text); font-weight: 500; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  background: rgba(148,184,255,0.08);
  color: var(--accent);
  border: 1px solid rgba(148,184,255,0.16);
}
.project-links { display: flex; gap: 14px; align-items: center; margin-top: 2px; }
.project-links a {
  font-size: 13px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.project-links a:hover { color: var(--text); }
.proj-date { font-size: 11px; color: var(--text3); margin-left: auto; }

/* ── CONTACT ── */
.contact-container { text-align: center; }
.contact-sub {
  color: var(--text2);
  max-width: 480px;
  margin: -48px auto 52px;
  font-size: 16px;
  line-height: 1.8;
}
.contact-sub strong { color: var(--text); font-weight: 500; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 178px;
  padding: 28px 14px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.4);
}
.contact-card:hover::before { opacity: 1; }
.contact-card.highlight {
  border-color: rgba(148,184,255,0.2);
  background: rgba(148,184,255,0.04);
}
.contact-card i {
  font-size: 22px;
  color: var(--accent);
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.contact-card:hover i { opacity: 1; transform: scale(1.1); }
.contact-card span { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.contact-card small { font-size: 11px; color: var(--text3); text-align: center; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--text3);
  font-size: 12px;
  background: var(--bg);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent);
}
footer::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,184,255,0.3), transparent);
}
footer a { color: var(--text3); transition: color 0.2s; }
footer a:hover { color: var(--text); }
footer .accent { color: var(--accent); -webkit-text-fill-color: var(--accent); }

/* ── CERTIFICATE (kept for future use) ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.cert-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.cert-img-wrap { position: relative; height: 155px; background: var(--surface); overflow: hidden; }
.cert-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cert-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text2); opacity: 0;
  background: rgba(5,5,5,0.7);
  transition: opacity 0.25s;
}
.cert-overlay.visible       { opacity: 1; }
.cert-card:hover .cert-overlay { opacity: 1; }
.cert-info   { padding: 14px 16px; }
.cert-info h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cert-info p  { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.cert-date   { font-size: 11px; color: var(--text3); background: var(--surface); padding: 2px 8px; border-radius: 100px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #navbar {
    top: 8px;
    width: calc(100% - 20px);
    border-radius: 18px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: 0; right: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    gap: 2px;
  }
  .nav-links.open        { display: flex; }
  .nav-links a           { padding: 10px 16px; border-radius: 10px; }
  .nav-links a:hover     { background: rgba(255,255,255,0.05); }
  .nav-toggle            { display: block; }
  .btn-resume            { display: none; }
  .about-grid            { grid-template-columns: 1fr; }
  .about-photo-wrap      { max-width: 160px; }
  .contact-links         { flex-direction: column; align-items: center; }
  .contact-card          { width: 100%; max-width: 280px; }
  .hero-content          { padding-top: 100px; }
  .section               { padding: 90px 0; }
}
@media (max-width: 480px) {
  .hero-actions   { flex-direction: column; align-items: center; }
  .about-stats    { gap: 10px; }
  .section-title  { margin-bottom: 48px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   PCB DESIGN PROJECT
   ══════════════════════════════════════════════════════════ */

/* The PCB project card uses the existing .project-card styles.
   No additional CSS needed — fully consistent with the design system. */

