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

:root {
  --bg:             #060608;
  --bg-2:           #0c0c10;
  --bg-3:           #13131a;
  --surface:        rgba(255,255,255,0.035);
  --surface-hover:  rgba(255,255,255,0.06);
  --surface-raised: rgba(255,255,255,0.05);
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.14);
  --text:           #f0f0f3;
  --text-secondary: rgba(240,240,243,0.58);
  --text-tertiary:  rgba(240,240,243,0.35);
  --blue:           #0071e3;
  --blue-light:     #2997ff;
  --blue-glow:      rgba(0,113,227,0.35);
  --purple:         #bf5af2;
  --green:          #30d158;
  --cyan:           #00c7ff;
  --radius:         18px;
  --radius-sm:      10px;
  --nav-h:          58px;
  --shadow-card:    0 0 0 1px rgba(255,255,255,0.04), 0 12px 40px rgba(0,0,0,0.55);
  --shadow-card-hover: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.7);
  --shadow-btn:     0 4px 20px var(--blue-glow);
  font-size: 16px;
}

html.light {
  --bg:             #f2f2f7;
  --bg-2:           #ffffff;
  --bg-3:           #e5e5ea;
  --surface:        rgba(255,255,255,0.85);
  --surface-hover:  rgba(255,255,255,0.95);
  --surface-raised: rgba(255,255,255,0.9);
  --border:         rgba(0,0,0,0.07);
  --border-hover:   rgba(0,0,0,0.13);
  --text:           #1c1c1e;
  --text-secondary: rgba(28,28,30,0.6);
  --text-tertiary:  rgba(28,28,30,0.38);
  --blue:           #0071e3;
  --blue-light:     #0077ed;
  --blue-glow:      rgba(0,113,227,0.18);
  --purple:         #8944ab;
  --green:          #1a8a38;
  --cyan:           #0077b0;
  --shadow-card:    0 0 0 1px rgba(0,0,0,0.05), 0 8px 30px rgba(0,0,0,0.07);
  --shadow-card-hover: 0 0 0 1px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.12);
  --shadow-btn:     0 4px 16px rgba(0,113,227,0.28);
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'kern';
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.cursor {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), border-color 0.2s, background 0.2s, width 0.2s, height 0.2s;
  mix-blend-mode: difference;
}
html.light .cursor { border-color: rgba(0,0,0,0.35); }
.cursor-dot {
  width: 5px; height: 5px;
  background: white;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.04s linear;
}
html.light .cursor-dot { background: #1c1c1e; }
.cursor.hover {
  transform: translate(-50%, -50%) scale(1.7);
  border-color: var(--blue-light);
  background: rgba(0,113,227,0.08);
}
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
html.light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* ==========================================
   GRADIENT TEXT
   ========================================== */
.gradient-text {
  background: linear-gradient(130deg, var(--blue-light) 0%, var(--purple) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   REVEAL ANIMATION
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   NAV
   ========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(6,6,8,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
html.light .nav {
  background: rgba(242,242,247,0.65);
}
.nav.scrolled {
  background: rgba(6,6,8,0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-color: var(--border);
}
html.light .nav.scrolled {
  background: rgba(242,242,247,0.9);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(130deg, var(--blue-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow 0.25s, transform 0.25s, background 0.2s;
  box-shadow: 0 2px 12px var(--blue-glow);
}
.nav-links .nav-cta:hover {
  background: var(--blue-light);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: rotate(15deg) scale(1.08);
}
.icon-sun { display: none; }
.icon-moon { display: block; }
html.light .icon-sun { display: block; }
html.light .icon-moon { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(6,6,8,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  border-bottom: 1px solid var(--border);
}
html.light .mobile-menu { background: rgba(242,242,247,0.97); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue-light); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 28px 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#starCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: float 10s ease-in-out infinite;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #0071e3 0%, transparent 65%);
  top: -250px; right: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #bf5af2 0%, transparent 65%);
  bottom: -150px; left: -150px;
  animation-delay: 4s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #00c7ff 0%, transparent 65%);
  top: 35%; left: 38%;
  animation-delay: 7s;
  opacity: 0.12;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -18px) scale(1.04); }
  66%       { transform: translate(-18px, 24px) scale(0.97); }
}
html.light .orb   { opacity: 0.09; filter: blur(110px); }
html.light #starCanvas { opacity: 0.1; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(48,209,88,0.08);
  border: 1px solid rgba(48,209,88,0.22);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 40px;
  letter-spacing: 0.1px;
}
html.light .hero-badge {
  background: rgba(26,138,56,0.07);
  border-color: rgba(26,138,56,0.2);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.5); }
}
.hero-name {
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -4px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}
.name-line { display: block; }
.hero-title {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  min-height: 1.5em;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-links {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 40px;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  box-shadow: var(--shadow-card);
}
.hero-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  color: var(--text-tertiary);
  animation: bounce 2.8s ease-in-out infinite;
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--text-secondary); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section { padding: 128px 28px; }
.section-dark { background: var(--bg-2); }

.container {
  max-width: 1160px;
  margin: 0 auto;
}
.section-header { margin-bottom: 68px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--blue-light);
  opacity: 0.6;
}
.section-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  color: var(--text);
}

/* ==========================================
   GLASS CARD
   ========================================== */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card-hover);
}
html.light .glass-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.06);
}
html.light .glass-card:hover {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.1);
}

/* ==========================================
   ABOUT
   ========================================== */
.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.about-left .section-tag { margin-bottom: 16px; }
.about-left .section-title { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -1.5px; }
.about-right p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.78;
}

/* keep old .about-grid for fallback */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.about-text p {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.78;
  font-weight: 400;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.stat {
  text-align: center;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.stat:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
html.light .stat { background: rgba(255,255,255,0.85); }
.stat-number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(130deg, var(--blue-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.profile-card { text-align: center; }
.profile-icon { width: 76px; height: 76px; margin: 0 auto 18px; }
.profile-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.3px; }
.profile-role { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 20px; }
.profile-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  justify-content: center; margin-bottom: 24px;
}
.tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  background: rgba(0,113,227,0.1);
  border: 1px solid rgba(0,113,227,0.18);
  color: var(--blue-light);
  border-radius: 20px;
  letter-spacing: 0.1px;
}
html.light .tag {
  background: rgba(0,113,227,0.08);
  border-color: rgba(0,113,227,0.2);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: white;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, box-shadow 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 8px 32px var(--blue-glow);
  transform: translateY(-2px);
  color: white;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 40px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* ==========================================
   SKILLS
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.skill-card { height: 100%; }
.skill-icon { width: 44px; height: 44px; margin-bottom: 18px; }
.skill-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.skill-pill:hover {
  background: rgba(41,151,255,0.1);
  border-color: rgba(41,151,255,0.25);
  color: var(--blue-light);
  transform: translateY(-1px);
}
html.light .skill-pill {
  background: rgba(0,0,0,0.03);
}
html.light .skill-pill:hover {
  background: rgba(0,113,227,0.07);
  border-color: rgba(0,113,227,0.2);
  color: var(--blue);
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 20px;
  padding-bottom: 0;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue-light);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(41,151,255,0.15);
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-item:hover .timeline-dot {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(191,90,242,0.18);
}
.timeline-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(41,151,255,0.3), rgba(41,151,255,0.04));
  margin-top: 8px;
  margin-bottom: 0;
  min-height: 32px;
}
.timeline-content { margin-bottom: 24px; }
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.timeline-header h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.timeline-company {
  font-size: 13.5px;
  color: var(--blue-light);
  font-weight: 500;
  margin-top: 3px;
}
.timeline-date {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.timeline-list {
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 16px;
}
.timeline-list li {
  font-size: 14.5px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.5;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================
   PROJECTS
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.project-card { position: relative; }
.project-card.featured { grid-column: 1 / -1; }
.project-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(191,90,242,0.08);
  border: 1px solid rgba(191,90,242,0.2);
  padding: 4px 11px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}
html.light .project-badge {
  background: rgba(137,68,171,0.07);
  border-color: rgba(137,68,171,0.2);
  color: var(--purple);
}
.project-header {
  display: flex; align-items: flex-start;
  gap: 14px; margin-bottom: 14px;
}
.project-header h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  padding-top: 3px;
}
.project-icon { width: 44px; height: 44px; flex-shrink: 0; }
.project-card > p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 18px;
}
.project-highlights {
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 9px;
}
.project-highlights li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.62;
}
.project-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 11px;
  top: 2px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ==========================================
   EDUCATION & CERTS
   ========================================== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}
.edu-skills {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.edu-col-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.4px;
  color: var(--text);
}
.edu-card {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
}
.edu-icon { width: 44px; height: 44px; flex-shrink: 0; }
.edu-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.2px; }
.edu-institution { font-size: 13.5px; color: var(--blue-light); font-weight: 500; }
.edu-date { font-size: 12.5px; color: var(--text-tertiary); margin: 4px 0; }
.edu-note { font-size: 13.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.55; }
.edu-modules { font-size: 12.5px; color: var(--text-tertiary); margin-top: 6px; font-style: italic; }

.cert-list { display: flex; flex-direction: column; gap: 10px; }
.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}
.cert-badge {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.cert-badge.azure { background: linear-gradient(135deg, #0078d4, #00bcf2); color: white; }
.cert-badge.kk    { background: linear-gradient(135deg, #f05a28, #f8a05a); color: white; }
.cert-badge.aws   { background: linear-gradient(135deg, #ff9900, #ffc34a); color: #111; }
.cert-badge.li    { background: #0077b5; color: white; }
.cert-info { flex: 1; min-width: 0; }
.cert-info h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-info p  { font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
.cert-date    { font-size: 11.5px; color: var(--text-tertiary); }
.cert-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(48,209,88,0.12);
  border: 1px solid rgba(48,209,88,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
html.light .cert-check {
  background: rgba(26,138,56,0.1);
  border-color: rgba(26,138,56,0.2);
}
.cert-check svg { color: var(--green); }

/* ==========================================
   CONTACT
   ========================================== */
.contact-center { text-align: center; max-width: 560px; margin: 0 auto; }
.contact-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 22px 0 40px;
  line-height: 1.72;
}
.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 28px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { font-size: 12.5px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12.5px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ==========================================
   SKILLS TABLE
   ========================================== */
.skills-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.skills-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.skills-row:hover { border-color: var(--border-hover); }
.skills-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
  padding-top: 5px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ==========================================
   COMPACT TIMELINE
   ========================================== */
.timeline-content--compact { padding: 20px 24px; }
.timeline-dot--sm {
  width: 8px !important;
  height: 8px !important;
  border-width: 1.5px !important;
  box-shadow: none !important;
}
.timeline-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================
   CONTACT LAYOUT
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-left .section-title { font-size: clamp(30px, 4vw, 48px); }
.contact-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
}
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { display: none; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .skills-row { grid-template-columns: 140px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .section { padding: 80px 20px; }
  .section-title { letter-spacing: -1.5px; }
  .hero-name { letter-spacing: -2.5px; }
  .hero-links { gap: 8px; }
  .hero-link { padding: 8px 14px; font-size: 13px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .skills-label { padding-top: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .edu-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 16px 1fr; gap: 14px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .glass-card { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 10px; }
  .stat-number { font-size: 26px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .timeline-date { align-self: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
