/* ===== RESET & VARIABLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:            #050a0f;
  --bg-alt:        #080f17;
  --bg-card:       #0a1220;
  --accent:        #00d9ff;
  --accent-dark:   #00aece;
  --accent-glow:   rgba(0, 217, 255, 0.10);
  --accent2:       #7928ca;
  --text:          #e2eaf5;
  --text-muted:    #5d7a96;
  --border:        #0f2236;
  --border-bright: #0d3d5f;
  --radius:        8px;
  --radius-sm:     4px;
  --shadow:        0 4px 32px rgba(0, 0, 0, 0.6);
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }

.section-alt {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(0,217,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
  font-family: 'Fira Code', monospace;
  letter-spacing: -0.5px;
}

.section-title::before {
  content: '> ';
  color: var(--accent);
  font-size: 0.85em;
  opacity: 0.75;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  transition: width 0.7s ease 0.2s;
  box-shadow: 0 0 8px var(--accent);
}

.section-title.line-on::after {
  width: 100%;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: -32px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 12px rgba(0,217,255,0.2), inset 0 0 12px rgba(0,217,255,0.04);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: -1;
}

.btn-primary:hover::before { transform: translateX(0); }

.btn-primary:hover {
  color: #050a0f;
  box-shadow: 0 0 24px rgba(0,217,255,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border-bright);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0,217,255,0.15);
}

.btn-cv {
  background: transparent;
  color: var(--accent2);
  border: 1.5px solid rgba(121,40,202,0.5);
}

.btn-cv:hover {
  border-color: var(--accent2);
  background: rgba(121,40,202,0.12);
  color: #c084fc;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(121,40,202,0.25);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: 'Fira Code', monospace;
}

.nav-logo span { color: var(--accent); text-shadow: 0 0 8px var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent-dark) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}

.nav-cta:hover { background: var(--accent) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* nav-right: lang toggle + hamburger side by side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  width: 52px;
  min-width: 52px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--accent);
  box-shadow: 0 0 8px rgba(0,217,255,0.2), inset 0 0 8px rgba(0,217,255,0.04);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}

.lang-toggle:hover {
  background: var(--accent);
  color: #050a0f;
  text-shadow: none;
  box-shadow: 0 0 20px rgba(0,217,255,0.55);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 45%, rgba(99, 102, 241, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: floatOrb 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d9ff 0%, transparent 70%);
  top: 5%;
  right: 5%;
  opacity: 0.06;
}

.hero-bg::after {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #7928ca 0%, transparent 70%);
  bottom: 10%;
  left: 0%;
  animation-delay: -4.5s;
  opacity: 0.08;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.06); }
}

/* Two-column layout: text on left, photo on right */
.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 80px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-photo-wrapper {
  flex-shrink: 0;
}

/* ===== PHOTO FRAME ===== */
.photo-frame {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.photo-ring--1 {
  width: 298px;
  height: 298px;
  border: 1.5px solid rgba(0, 217, 255, 0.55);
  box-shadow: 0 0 16px rgba(0,217,255,0.15), inset 0 0 16px rgba(0,217,255,0.05);
}

.photo-ring--2 {
  width: 346px;
  height: 346px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  box-shadow: 0 0 8px rgba(0,217,255,0.08);
}

.photo-ring--3 {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(0, 217, 255, 0.12);
}

.photo-bracket {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Fira Code', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(0,217,255,0.7), 0 0 40px rgba(0,217,255,0.3);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.photo-bracket--left  { left:  8px; }
.photo-bracket--right { right: 8px; }

.hero-photo {
  width: 268px;
  height: 268px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
  filter: saturate(0.92) contrast(1.05);
  box-shadow: 0 0 48px rgba(0,217,255,0.18);
}

.hero-greeting {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(0,217,255,0.4);
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,217,255,0.25);
  position: relative;
}

/* glitch layers */
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-name::before {
  color: #00d9ff;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  transform: translateX(-3px);
  opacity: 0;
  animation: glitch1 6s infinite;
}

.hero-name::after {
  color: #ff2d78;
  clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%);
  transform: translateX(3px);
  opacity: 0;
  animation: glitch2 6s infinite;
}

@keyframes glitch1 {
  0%, 94%, 100% { opacity: 0; transform: translateX(0); }
  95%            { opacity: 0.7; transform: translateX(-4px); }
  97%            { opacity: 0.5; transform: translateX(3px); }
}

@keyframes glitch2 {
  0%, 94%, 100% { opacity: 0; transform: translateX(0); }
  96%            { opacity: 0.6; transform: translateX(4px); }
  98%            { opacity: 0.4; transform: translateX(-3px); }
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: 'Fira Code', monospace;
  text-shadow: 0 0 14px rgba(0,217,255,0.35);
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 560px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-pill {
  border: 1px solid rgba(0, 217, 255, 0.22);
  background: rgba(0, 217, 255, 0.06);
  color: #bdefff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.74rem;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social { display: flex; gap: 20px; }

.hero-social a {
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}

.hero-social a svg { width: 22px; height: 22px; }

.hero-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll a {
  color: var(--text-muted);
  display: flex;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ===== ABOUT ===== */
.about-grid { max-width: 720px; }

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text strong { color: var(--text); }

.about-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-info-item {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.about-info-item .label {
  color: var(--text-muted);
  min-width: 165px;
  flex-shrink: 0;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.skill-category h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'Fira Code', monospace;
  text-shadow: 0 0 8px rgba(0,217,255,0.3);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.tag--soft {
  background: rgba(121,40,202,0.1);
  color: var(--accent2);
  border-color: rgba(121,40,202,0.35);
}

.tag--soft::before {
  background: var(--accent2);
}

.tag--soft:hover { color: #fff; border-color: var(--accent2); }

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: -1;
  border-radius: inherit;
}

.tag:hover::before  { transform: translateX(0); }
.tag:hover { color: #050a0f; border-color: var(--accent); background: transparent; }

.skills-grid .tag[data-level]::after {
  content: attr(data-level);
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #00d9ff;
  color: #03131d;
  border: 1px solid #7ff0ff;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-family: 'Fira Code', monospace;
  text-shadow: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 4;
}

.skills-grid .tag[data-level] {
  overflow: visible;
  color: #c5d9ee;
  z-index: 1;
}

.skills-grid .tag[data-level]::before {
  display: none;
}

.skills-grid .tag[data-level]:hover,
.skills-grid .tag[data-level]:focus-visible {
  color: #ebf8ff;
  background: rgba(0, 217, 255, 0.16);
  border-color: #37e8ff;
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.15), 0 0 16px rgba(0, 217, 255, 0.18);
  z-index: 6;
}

.skills-grid .tag[data-level]:hover::after,
.skills-grid .tag[data-level]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-links { display: flex; gap: 12px; }

.project-links a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-links a:hover {
  color: var(--accent);
  border-color: rgba(0,217,255,0.28);
  background: rgba(0,217,255,0.05);
}

.project-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.64rem;
  font-family: 'Fira Code', monospace;
}

.project-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-tags span {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 4px 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -20px 0 22px;
}

.filter-chip {
  border: 1px solid var(--border-bright);
  background: rgba(10, 18, 32, 0.85);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.filter-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: rgba(0, 217, 255, 0.12);
  color: var(--accent);
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.15);
}

.project-card.is-hidden {
  display: none;
}

.projects-empty {
  margin-top: 20px;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  display: none;
}

.projects-empty.show {
  display: block;
}

/* ===== TIMELINE ===== */
.timeline-roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.timeline-roadmap::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,217,255,0.35), rgba(121,40,202,0.35));
}

.timeline-step {
  background: linear-gradient(160deg, rgba(10,18,32,0.96), rgba(8,15,23,0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.timeline-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.timeline-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-step-year {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.timeline-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,217,255,0.12), 0 0 12px rgba(0,217,255,0.3);
}

.timeline-step h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== CERTS ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding-top: 195px;   /* room for first-row image popups */
  margin-top: -195px;   /* cancel visual gap */
}

.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;           /* allows image to pop out above */
  text-decoration: none;
  color: var(--text);
  padding: 20px;
  min-height: 110px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  z-index: 0;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,217,255,0.12);
  transform: translateY(-2px);
  z-index: 10;
}

/* Floating image preview — pops above the card on hover */
.cert-img-wrap {
  position: absolute;
  bottom: calc(100% + 10px);
  left: -1px;
  right: -1px;
  height: 175px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-card:hover .cert-img-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cert-info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.cert-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cert-link-badge {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cert-card:hover .cert-link-badge { opacity: 1; }

.soft-skill-tags {
  margin-bottom: 8px;
}

.soft-certs-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.5px;
  margin: 36px 0 16px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.contact-card:hover::after { transform: scaleX(1); }

.contact-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,217,255,0.08);
}

.contact-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--accent);
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer strong { color: var(--text); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal[data-dir="left"]  { transform: translateX(-28px); }
.reveal[data-dir="right"] { transform: translateX(28px); }
.reveal[data-dir="scale"] { transform: scale(0.93) translateY(20px); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== MOUSE SPOTLIGHT ===== */
.spotlight {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    400px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 217, 255, 0.05),
    transparent 40%
  );
}

/* ===== NAV ACTIVE LINK ===== */
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,217,255,0.4);
}

/* ===== TAG SLIDE HOVER ===== */
.tag {
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-dark);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: -1;
  border-radius: inherit;
}

.tag:hover::before  { transform: translateX(0); }
.tag:hover { color: #fff; border-color: var(--accent-dark); background: transparent; }

/* ===== PROJECT CARD GLOW ===== */
.project-card {
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0,217,255,0.3), 0 16px 48px rgba(0,217,255,0.12);
}

/* ===== CERT CARD TILT ===== */
.cert-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 20px;
  }

  .project-header {
    gap: 10px;
  }

  .project-links {
    flex-shrink: 0;
  }

  .project-filters {
    margin-top: -12px;
    margin-bottom: 18px;
  }

  .filter-chip {
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 8px 24px !important;
    padding: 10px 20px !important;
    display: block !important;
    text-align: center;
  }

  .section { padding: 48px 0; }

  .skills-grid { grid-template-columns: 1fr 1fr; }

  .projects-grid,
  .certs-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* Stack hero: photo on top, text below */
  .hero-wrapper {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .photo-frame  { width: 240px; height: 240px; }
  .hero-photo    { width: 160px; height: 160px; }
  .photo-ring--1 { width: 176px; height: 176px; }
  .photo-ring--2 { width: 204px; height: 204px; }
  .photo-ring--3 { width: 236px; height: 236px; }
  .photo-bracket { font-size: 2rem; }
  .photo-bracket--left  { left:  0; }
  .photo-bracket--right { right: 0; }

  .hero-social { justify-content: center; }

  .hero-highlights {
    justify-content: center;
  }

  .hero-pill {
    white-space: normal;
    text-align: center;
  }

  .hero-actions { flex-direction: column; }

  .btn { justify-content: center; }

  .about-info-item { flex-direction: column; gap: 2px; }

  .timeline-roadmap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-roadmap::before {
    left: 14px;
    right: 14px;
    top: 18px;
  }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }

  .photo-frame  { width: 200px; height: 200px; }
  .hero-photo    { width: 134px; height: 134px; }
  .photo-ring--1 { width: 146px; height: 146px; }
  .photo-ring--2 { width: 170px; height: 170px; }
  .photo-ring--3 { width: 198px; height: 198px; }
  .photo-bracket { font-size: 1.6rem; }
}
