/* ═══════════════════════════════════════════
   IMPORTS & VARIABLES
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --sidebar-width: 280px;

  /* Light theme */
  --bg:          #f4f6f9;
  --sidebar-bg:  #ffffff;
  --card-bg:     #ffffff;
  --text:        #0d1117;
  --text-muted:  #5c6b7a;
  --text-light:  #8898aa;
  --border:      #e4e9f0;
  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59,130,246,0.15);
  --cyan:        #06b6d4;
  --green:       #10b981;
  --orange:      #f59e0b;
  --purple:      #8b5cf6;
  --aws-orange:  #ff9900;
  --neo4j-green: #008cc1;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 48px rgba(0,0,0,.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg:          #060d1b;
  --sidebar-bg:  #090f1e;
  --card-bg:     #0d1728;
  --text:        #e2e8f2;
  --text-muted:  #8898b8;
  --text-light:  #5c6f8a;
  --border:      #172038;
  --accent:      #60a5fa;
  --accent-dark: #3b82f6;
  --accent-glow: rgba(96,165,250,0.18);
  --cyan:        #22d3ee;
  --green:       #34d399;
  --orange:      #fbbf24;
  --purple:      #a78bfa;
  --aws-orange:  #ff9900;
  --neo4j-green: #00a8e8;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,.35);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.4);
  --shadow-xl:  0 20px 48px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent-glow); color: var(--text); }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.layout {
  display: flex;
  min-height: 100vh;
}

.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: none;
  transition: background var(--transition), border-color var(--transition), transform 0.3s ease;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.5rem;
}

/* ─ Profile ─ */
.profile {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.title-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ─ Theme Toggle ─ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.toggle-icon { display: flex; align-items: center; }

.toggle-track {
  width: 28px;
  height: 16px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background var(--transition);
}

[data-theme="dark"] .toggle-track { background: var(--accent); }

.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
[data-theme="dark"] .toggle-thumb { transform: translateX(12px); }

/* ─ Navigation ─ */
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover {
  background: var(--bg);
  color: var(--text);
}
.nav-link.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.nav-link.active .nav-icon,
.nav-link:hover .nav-icon { opacity: 1; }

/* ─ Sidebar footer ─ */
.sidebar-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
}

/* ─ Mobile overlay ─ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.overlay.active { display: block; }

/* ─ Mobile menu button ─ */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section {
  padding: 5rem 3.5rem;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.section-sublabel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    url('assets/hero-bg.jpg')
    center center / cover no-repeat;
  color: #e2e8f2;
}

/* Centered dark overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 22, 0.72);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(59,130,246,0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* Glowing blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-glow-1 {
  width: 600px; height: 600px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, transparent 70%);
  animation: drift1 14s ease-in-out infinite;
}
.hero-glow-2 {
  width: 450px; height: 450px;
  bottom: -100px; left: 5%;
  background: radial-gradient(circle, rgba(6,182,212,0.35) 0%, transparent 70%);
  animation: drift2 18s ease-in-out infinite;
}
.hero-glow-3 {
  width: 350px; height: 350px;
  top: 35%; right: 15%;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  animation: drift3 11s ease-in-out infinite;
}

/* Diagonal light streak */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 60%; height: 140%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(59,130,246,0.04) 50%,
    transparent 60%
  );
  transform: skewX(-10deg);
}

@keyframes drift1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 50px) scale(1.1); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -35px) scale(1.07); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-25px, -45px) scale(1.12); }
}

/* Typewriter */
.hero-typewriter {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #22d3ee;
  margin: 0.9rem 0 1.75rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.01em;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background: #22d3ee;
  margin-left: 2px;
  border-radius: 1px;
  animation: blink-cursor 0.75s step-end infinite;
  vertical-align: middle;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  text-align: center;
}

/* Force light text inside the always-dark hero */
.hero-section .hero-name        { color: #f1f5f9; }
.hero-section .hero-desc        { color: #94a3b8; margin: 0 auto 2rem; }
.hero-section .hero-typewriter  { justify-content: center; }
.hero-section .hero-stats       { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); justify-content: center; }
.hero-section .stat-n           { color: #60a5fa; }
.hero-section .stat-l           { color: #64748b; }
.hero-section .stat-div         { background: rgba(255,255,255,0.1); }
.hero-section .hero-cta         { justify-content: center; }
.hero-section .btn-secondary    { color: #e2e8f2; border-color: rgba(255,255,255,0.2); }
.hero-section .btn-secondary:hover { border-color: #60a5fa; color: #60a5fa; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.hero-name-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-l {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
}
.stat-div {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.btn-download {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
}

/* ═══════════════════════════════════════════
   TAGS
═══════════════════════════════════════════ */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.75rem;
}

.tag, .sk {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.t-blue   { background: rgba(59,130,246,0.12); color: var(--accent); }
.t-green  { background: rgba(16,185,129,0.12); color: var(--green); }
.t-orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.t-purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.t-cyan   { background: rgba(6,182,212,0.12);  color: var(--cyan); }
.t-gray   { background: var(--border);          color: var(--text-muted); }

[data-theme="dark"] .t-blue   { background: rgba(96,165,250,0.15); }
[data-theme="dark"] .t-green  { background: rgba(52,211,153,0.15); }
[data-theme="dark"] .t-orange { background: rgba(251,191,36,0.15); }
[data-theme="dark"] .t-purple { background: rgba(167,139,250,0.15); }
[data-theme="dark"] .t-cyan   { background: rgba(34,211,238,0.15); }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 2rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
  transition: box-shadow var(--transition);
}

.about-photo img:hover {
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-xl);
}

.about-text p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about-text p:last-child { margin-bottom: 0; }

.education-block { display: flex; flex-direction: column; gap: 1rem; }

.edu-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.edu-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.edu-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.edu-degree { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.edu-field  { font-size: 0.8rem;  color: var(--accent); font-weight: 600; margin-bottom: 3px; }
.edu-school { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-bottom: 2.5rem;
  display: flex;
  gap: 1.5rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -2rem;
  top: 4px;
}

.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  background: var(--sidebar-bg);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transition: all var(--transition);
}
.tl-dot.current {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 12px var(--accent);
}

.tl-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.tl-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.tl-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.tl-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.tl-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.current-date {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.tl-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.tl-earlier .tl-card {
  border-left-color: var(--border);
  opacity: 0.85;
}
.tl-earlier .tl-dot {
  border-color: var(--border);
  box-shadow: none;
}

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.proj-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.proj-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.proj-ai     { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15)); }
.proj-llm    { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15)); }
.proj-cloud  { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(59,130,246,0.15)); }
.proj-fin    { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15)); }
.proj-pay    { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1)); }
.proj-data   { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(16,185,129,0.15)); }
.proj-resume { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(16,185,129,0.15)); }

.proj-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--transition);
}
.proj-link:hover { text-decoration: underline; }

.proj-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.proj-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
a.cert-card { cursor: pointer; }
a.cert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(59,130,246,0.04) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
a.cert-card:hover::after { opacity: 1; }
.cert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.cert-aws   { border-left: 4px solid var(--aws-orange); }
.cert-neo4j { border-left: 4px solid var(--neo4j-green); }

.cert-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  transition: transform var(--transition);
}
a.cert-card:hover .cert-img {
  transform: scale(1.1) rotate(-2deg);
}

.cert-provider {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  display: block;
  margin-bottom: 3px;
}
.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.cert-level {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.level-pro   { background: rgba(245,158,11,0.15); color: var(--orange); }
.level-assoc { background: rgba(59,130,246,0.12); color: var(--accent); }

.cert-verify {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  padding: 5px 10px;
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  border-top: 1px solid rgba(59,130,246,0.15);
  border-left: 1px solid rgba(59,130,246,0.15);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}
a.cert-card:hover .cert-verify {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SPECIALTIES
═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.skill-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.skill-group:hover { box-shadow: var(--shadow-md); }
.sg-full { grid-column: 1 / -1; }

.sg-blue   { border-top: 3px solid var(--accent); }
.sg-green  { border-top: 3px solid var(--green); }
.sg-cyan   { border-top: 3px solid var(--cyan); }
.sg-purple { border-top: 3px solid var(--purple); }
.sg-orange { border-top: 3px solid var(--orange); }
.sg-yellow { border-top: 3px solid #eab308; }
.sg-pink   { border-top: 3px solid #ec4899; }

.skill-group-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.hd-blue   { color: var(--accent); }
.hd-green  { color: var(--green); }
.hd-orange { color: var(--orange); }
.hd-purple { color: var(--purple); }
.hd-cyan   { color: var(--cyan); }
.hd-gray   { color: var(--text-muted); }
.hd-yellow { color: #ca8a04; }
.hd-pink   { color: #ec4899; }
[data-theme="dark"] .hd-yellow { color: #fbbf24; }
[data-theme="dark"] .hd-pink   { color: #f472b6; }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 7px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition);
  cursor: default;
  letter-spacing: 0.01em;
}
.sk:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,0.12); }

.sk-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
/* OpenAI SVG is black — invert in dark mode for visibility */
[data-theme="dark"] .sk-icon-dark { filter: invert(1); }

.t-yellow { background: rgba(234,179,8,0.12); color: #a16207; }
.t-pink   { background: rgba(236,72,153,0.12); color: #be185d; }
[data-theme="dark"] .t-yellow { background: rgba(234,179,8,0.18); color: #fbbf24; }
[data-theme="dark"] .t-pink   { background: rgba(236,72,153,0.18); color: #f472b6; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  color: var(--text);
}
.contact-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.cl-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cl-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1px;
}
.cl-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ─ Contact Form ─ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-success {
  display: none;
  text-align: center;
  padding: 0.8rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  color: var(--green);
  font-weight: 600;
  font-size: 0.88rem;
}
.form-success.show { display: block; }

/* ═══════════════════════════════════════════
   RESUME
═══════════════════════════════════════════ */
.resume-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.resume-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.resume-page {
  width: 90px;
  height: 120px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  flex-shrink: 0;
}
[data-theme="dark"] .resume-page {
  background: #1e2d42;
  border-color: var(--border);
}

.rp-line {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  width: 100%;
}
[data-theme="dark"] .rp-line { background: #2a3d56; }

.rp-title { height: 7px; background: linear-gradient(90deg, var(--accent) 60%, transparent); width: 70%; }
.rp-sub   { height: 4px; background: #d1d5db; width: 45%; }
.rp-divider { height: 1px; background: #e2e8f0; margin: 2px 0; }
.rp-short { width: 55%; }
.rp-med   { width: 75%; }

.resume-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.resume-card-body p { font-size: 0.85rem; color: var(--text-muted); }
.resume-meta {
  font-size: 0.75rem !important;
  color: var(--text-light) !important;
  margin-top: 3px;
}

.snapshot {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.snapshot-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.snapshot-items { display: flex; flex-direction: column; gap: 1rem; }

.snap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.snap-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.snap-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 2px;
}
.snap-item span {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 180px 1fr; }
  .education-block { grid-column: 2; }
}

@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; }
  .about-photo   { max-width: 200px; }
  .education-block { grid-column: 1; }
}

@media (max-width: 900px) {
  .contact-layout  { grid-template-columns: 1fr; }
  .resume-layout   { grid-template-columns: 1fr; }
  .certs-grid      { grid-template-columns: 1fr; }
  .skills-grid     { grid-template-columns: 1fr; }
  .resume-card     { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 260px; }

  .mobile-menu-btn { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open { transform: translateX(0); }

  .content { margin-left: 0; }

  .section { padding: 4rem 1.5rem; }
  .hero-section { padding: 6rem 1.5rem 4rem; min-height: auto; }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .stat-div { display: none; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1.25rem; }
  .hero-name { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
