@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #8b5cf6;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1);
  --header-h: 70px;
}

body.dark-mode {
  --text: #f1f5f9;
  --text-light: #94a3b8;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.3);
}

body.dark-mode .animated-bg { opacity: .7; }
body.light-mode .animated-bg { opacity: .3; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

/* ═══════════════════════════════════════
   LOADER
════════════════════════════════════════ */
.loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; transition: opacity .5s ease, visibility .5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.neural-loader { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.neural-node {
  position: absolute; width: 20px; height: 20px; background: white;
  border-radius: 50%; box-shadow: 0 0 30px rgba(255,255,255,.8);
  animation: nodePulse 2s ease-in-out infinite;
}
.neural-node:nth-child(1){top:25%;left:50%;transform:translate(-50%,-50%);animation-delay:0s}
.neural-node:nth-child(2){top:75%;left:25%;transform:translate(-50%,-50%);animation-delay:.2s}
.neural-node:nth-child(3){top:75%;left:75%;transform:translate(-50%,-50%);animation-delay:.4s}
.neural-node:nth-child(4){top:50%;left:50%;transform:translate(-50%,-50%);animation-delay:.6s}
.neural-node:nth-child(5){top:75%;left:50%;transform:translate(-50%,-50%);animation-delay:.8s}
@keyframes nodePulse {
  0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.6}
  50%{transform:translate(-50%,-50%) scale(1.5);opacity:1}
}
.neural-connections { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.connection { stroke: rgba(255,255,255,.3); stroke-width: 2; animation: connectionFlow 2s ease-in-out infinite; }
@keyframes connectionFlow {
  0%,100%{stroke-dashoffset:0;opacity:.3} 50%{stroke-dashoffset:200;opacity:.8}
}
.loader-text { color: white; font-size: 1.2rem; font-weight: 600; margin-top: 30px; animation: fadeInOut 1.5s ease-in-out infinite; }
@keyframes fadeInOut { 0%,100%{opacity:.5} 50%{opacity:1} }
.progress-bar { width: 200px; height: 4px; background: rgba(255,255,255,.2); border-radius: 10px; margin: 20px auto 0; overflow: hidden; }
.progress-fill { height: 100%; background: white; border-radius: 10px; animation: progressLoad 2s ease-out forwards; }
@keyframes progressLoad { from{width:0%} to{width:100%} }

/* ═══════════════════════════════════════
   ANIMATED BG
════════════════════════════════════════ */
.animated-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; transition: opacity .3s ease;
}
#threeCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.neural-network { position: absolute; width: 100%; height: 100%; opacity: .6; }
.node {
  position: absolute; width: 8px; height: 8px; background: var(--primary);
  border-radius: 50%; box-shadow: 0 0 20px var(--primary); animation: pulse 3s infinite ease-in-out;
}
@keyframes pulse { 0%,100%{opacity:.3;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }

/* ═══════════════════════════════════════
   TOP HEADER
════════════════════════════════════════ */
.top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(248,250,252,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1100;
  transition: background .3s ease, border-color .3s ease;
}
body.dark-mode .top-header {
  background: rgba(15,23,42,.85);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Header Left */
.header-left { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.hamburger-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all .3s ease;
  flex-shrink: 0;
}
.hamburger-btn:hover { border-color: var(--primary); box-shadow: 0 0 20px rgba(99,102,241,.25); }
.hamburger-line {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger-btn:hover .hamburger-line { background: var(--primary); }

.header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
  transition: transform .3s ease;
}
.header-logo:hover { transform: scale(1.05); }

.header-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(99,102,241,.3);
}

.logo-initials {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.header-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Header Center Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s ease;
  white-space: nowrap;
}
.header-nav-link:hover,
.header-nav-link.active {
  background: rgba(99,102,241,.1);
  color: var(--primary);
}

/* Header Right */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.avail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 20px;
  color: #16a34a;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
body.dark-mode .avail-badge { color: #4ade80; }

.avail-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.theme-toggle-header {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: all .3s ease;
}
.theme-toggle-header:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ═══════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.7); backdrop-filter: blur(5px);
  z-index: 1050; opacity: 0; visibility: hidden; transition: all .3s ease;
}
.overlay.active { opacity: 1; visibility: visible; }

.sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: left .4s cubic-bezier(.4,0,.2,1);
  z-index: 1200;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar.open { left: 0; }

.sidebar-header {
  padding: 28px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; transition: transform .3s; }
.logo:hover { transform: scale(1.05); }
.logo-svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(255,255,255,.3)); }
.logo-text { font-size: 1.3rem; font-weight: 700; color: white; }

.nav-menu { padding: 16px 0; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  color: var(--text); text-decoration: none;
  font-weight: 500; border-left: 3px solid transparent;
  position: relative; transition: all .3s ease;
}
.nav-link::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, rgba(99,102,241,.1), transparent);
  transition: width .3s ease;
}
.nav-link:hover::before, .nav-link.active::before { width: 100%; }
.nav-link:hover, .nav-link.active { border-left-color: var(--primary); color: var(--primary); }
.nav-link i { font-size: 1.1rem; width: 22px; }

.sidebar-footer { padding: 18px 22px; border-top: 1px solid var(--border); }
.theme-toggle {
  width: 100%; padding: 12px;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 600; color: var(--text); transition: all .3s ease;
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ═══════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════ */
.main-content { min-height: 100vh; position: relative; z-index: 1; padding-top: var(--header-h); }

.section { display: none; min-height: 100vh; padding: 80px 20px 60px; animation: fadeIn .6s ease; }
.section.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.container { max-width: 1200px; margin: 0 auto; }

/* ═══════════════════════════════════════
   HERO — TWO COLUMN
════════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 80px);
  padding: 40px 0;
}

/* Left Column */
.hero-left { display: flex; flex-direction: column; gap: 24px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 20px;
  color: #16a34a;
  font-size: .85rem;
  font-weight: 600;
  width: fit-content;
}
body.dark-mode .hero-badge { color: #4ade80; }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift { 0%,100%{filter:hue-rotate(0deg)} 50%{filter:hue-rotate(30deg)} }

.typing-container {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--primary); font-weight: 600;
  min-height: 2em; display: flex; align-items: center;
}
.typing-cursor {
  display: inline-block; width: 3px; height: 1.2em;
  background: var(--primary); margin-left: 5px; animation: blinkC 1s infinite;
}
@keyframes blinkC { 0%,50%{opacity:1} 51%,100%{opacity:0} }

.hero-desc {
  font-size: 1.05rem; color: var(--text-light);
  line-height: 1.8; max-width: 540px;
}
.hero-desc strong { color: var(--primary); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: all .3s ease; border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(99,102,241,.4); }

.btn-outline {
  background: transparent;
  border-color: var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-3px); }

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

.social-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1.2rem;
  text-decoration: none;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.social-icon::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(100%); transition: transform .3s ease;
}
.social-icon i { position: relative; z-index: 1; }
.social-icon:hover::before { transform: translateY(0); }
.social-icon:hover { color: white; border-color: var(--primary); transform: translateY(-6px); }

/* Stats row */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 24px;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; flex: 1; align-items: center; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .8rem; color: var(--text-light); font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Right Column: Photo */
.hero-right {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 30px;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}

.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: spinRing 20s linear infinite;
}
.photo-ring-1 {
  width: 340px; height: 340px;
  border-color: rgba(99,102,241,.2);
  border-top-color: var(--primary);
}
.photo-ring-2 {
  width: 380px; height: 380px;
  border-color: rgba(139,92,246,.15);
  border-bottom-color: var(--accent);
  animation-direction: reverse;
  animation-duration: 30s;
}
@keyframes spinRing { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.photo-bg-blob {
  position: absolute;
  width: 280px; height: 280px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15));
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  animation: blobMorph 8s ease-in-out infinite;
}
@keyframes blobMorph {
  0%,100%{border-radius:60% 40% 55% 45% / 45% 55% 40% 60%}
  33%{border-radius:45% 55% 40% 60% / 60% 40% 55% 45%}
  66%{border-radius:55% 45% 60% 40% / 40% 60% 45% 55%}
}

.hero-photo-figure {
  position: relative; z-index: 1;
  width: 260px; height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--card-bg);
  box-shadow: 0 20px 60px rgba(99,102,241,.3);
}
.hero-photo-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow);
  animation: floatBadge 3s ease-in-out infinite;
  z-index: 2;
}
.float-badge i { color: var(--primary); }
.float-badge-1 { top: 10%; right: -10%; animation-delay: 0s; }
.float-badge-2 { bottom: 20%; left: -15%; animation-delay: 1s; }
.float-badge-3 { top: 60%; right: -12%; animation-delay: 2s; }
@keyframes floatBadge {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)}
}

/* Scroll indicator */
.scroll-down {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; color: var(--text-light);
  font-size: .8rem; font-weight: 600; letter-spacing: 1px;
  transition: color .3s;
}
.scroll-down:hover { color: var(--primary); }
.scroll-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ═══════════════════════════════════════
   SECTION TITLE
════════════════════════════════════════ */
.section-title {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
  position: relative; padding-bottom: 20px;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

/* ═══════════════════════════════════════
   ABOUT SECTION
════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr 340px;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
}

.about-image { position: relative; }
.image-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.image-wrapper img { width: 100%; height: auto; display: block; transition: transform .3s; }
.image-wrapper:hover img { transform: scale(1.05); }
.image-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(139,92,246,.3));
  opacity: 0; transition: opacity .3s;
}
.image-wrapper:hover .image-overlay { opacity: 1; }

.about-text {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow-lg);
}
.about-text p { margin-bottom: 18px; line-height: 1.9; font-size: 1.05rem; color: var(--text-light); }
.about-text strong { color: var(--primary); font-weight: 700; }

.about-highlights { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.highlight-item { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-light); }
.highlight-item i { color: var(--primary); width: 18px; }

.cv-btn { margin-top: 10px; }

/* about.json card */
.about-json-wrap { display: flex; align-items: flex-start; }
.json-card {
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
}
.json-card-header {
  background: #2a2a3e;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.json-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.json-filename { font-size: .8rem; color: #8892a4; font-family: 'Courier New', monospace; margin-left: auto; }

.json-body {
  padding: 20px 22px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .88rem;
  line-height: 1.7;
  overflow-x: auto;
}
.json-body code { color: #cdd6f4; }
.j-brace { color: #cba6f7; }
.j-key { color: #89b4fa; }
.j-str { color: #a6e3a1; }
.j-colon { color: #cdd6f4; margin: 0 4px; }
.j-comma { color: #cdd6f4; }

/* Timeline / milestones */
.milestone-section h3 { font-size: 1.9rem; font-weight: 700; margin-bottom: 28px; color: var(--text); }
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 2px;
}
.timeline-item {
  position: relative; margin-bottom: 30px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 22px 50px;
  transition: all .3s ease;
}
.timeline-item:hover { transform: translateX(10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.timeline-dot {
  position: absolute; left: -47px; top: 28px;
  width: 16px; height: 16px;
  background: var(--primary); border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 20px var(--primary); animation: pulse 2s infinite;
}
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.timeline-item .year {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: .9rem; margin-bottom: 8px; font-weight: 600;
}
.timeline-item p { color: var(--text-light); font-size: .95rem; line-height: 1.7; }

/* ═══════════════════════════════════════
   CERTIFICATES
════════════════════════════════════════ */
.certificates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 28px; }
.certificate-card {
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all .3s ease; position: relative; overflow: hidden; cursor: pointer;
}
.certificate-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cert-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem; margin-bottom: 18px;
}
.certificate-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.certificate-card p { color: var(--text-light); font-size: .9rem; margin-bottom: 4px; }
.cert-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(139,92,246,.95));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.certificate-card:hover .cert-overlay { opacity: 1; }
.view-cert-btn {
  padding: 10px 24px; background: white; color: var(--primary);
  border: none; border-radius: 8px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .3s;
}
.view-cert-btn:hover { transform: scale(1.05); }

/* ═══════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
.skill-category { margin-bottom: 56px; }
.skill-category h3 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 28px;
  color: var(--text); display: flex; align-items: center; gap: 14px;
}
.skill-category h3::before {
  content: ''; width: 5px; height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 3px;
}
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 22px; }
.skill-card {
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 14px; padding: 26px 16px; text-align: center;
  transition: all .3s ease; cursor: pointer; position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.1));
  transform: translateY(100%); transition: transform .3s ease;
}
.skill-card:hover::before { transform: translateY(0); }
.skill-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.skill-logo { width: 44px; height: 44px; object-fit: contain; margin-bottom: 12px; position: relative; z-index: 1; }
.skill-card span { display: block; font-weight: 600; font-size: .95rem; color: var(--text); position: relative; z-index: 1; }

/* ═══════════════════════════════════════
   PROJECTS
════════════════════════════════════════ */
.projects-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px;
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 10px; color: var(--text); font-weight: 600; cursor: pointer; transition: all .3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.sort-select {
  padding: 9px 18px; background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 10px; color: var(--text); font-weight: 600; cursor: pointer; font-family: inherit;
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; }
.project-card {
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: all .35s ease; position: relative;
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.project-image {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.project-image::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--card-bg));
}
.project-content { padding: 22px; }
.project-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.project-tag {
  padding: 4px 10px; background: rgba(99,102,241,.1);
  border-radius: 6px; font-size: .78rem; color: var(--primary); font-weight: 600;
}

/* Modal */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.8); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--card-bg); border-radius: 20px;
  max-width: 700px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative; animation: modalIn .3s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.1); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1rem; z-index: 1; transition: all .3s;
}
.modal-close:hover { background: var(--primary); color: white; }
.modal-body { padding: 36px; }
.modal-project-image { height: 240px; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 24px; }
.modal-body h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; }
.modal-body p { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.modal-links { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.modal-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: .9rem; transition: all .3s;
}
.modal-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,.4); }

/* ═══════════════════════════════════════
   EDUCATION
════════════════════════════════════════ */
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.edu-column h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 28px; color: var(--text); }

/* ═══════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-container { max-width: 900px; margin: 0 auto; }
.contact-title { text-align: center; }
.contact-intro { text-align: center; color: var(--text-light); font-size: 1.05rem; line-height: 1.8; margin-bottom: 50px; }
.contact-platforms { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.platform-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 36px;
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 16px; text-decoration: none; color: var(--text);
  transition: all .3s ease;
}
.platform-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-lg); color: var(--primary); }
.platform-card i { font-size: 2rem; }
.platform-card span { font-weight: 600; }

.contact-form-section { margin-top: 40px; }
.contact-form-section h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.contact-form-section > p { color: var(--text-light); margin-bottom: 28px; }

#contactForm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-group label { font-weight: 600; font-size: .9rem; }
.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .3s ease;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.send-btn { grid-column: span 2; justify-self: start; }

/* ═══════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.footer-tagline { color: var(--text-light); font-size: .95rem; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 10px; background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 1.1rem; text-decoration: none;
  transition: all .3s;
}
.footer-socials a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.footer-copy { color: var(--text-light); font-size: .85rem; }

/* ═══════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-json-wrap { display: none; }
  .header-nav { display: none; }
  .avail-badge { display: none; }
  .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 16px 40px; }
  .hero-stats { max-width: 100%; }
  .hero-left { gap: 18px; }
  #contactForm { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .send-btn { grid-column: span 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .certificates-grid { grid-template-columns: 1fr; }
  .header-logo-text { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}