/* ============================================
   CSS Custom Properties
============================================ */
:root {
  --primary: #1d3461;
  --primary-dark: #0d1b2e;
  --primary-mid: #142952;
  --primary-light: #2d4f8a;
  --accent: #4e9af1;
  --accent-hover: #3a86d4;
  --accent-warm: #f0a500;
  --cream: #f8f7f2;
  --white: #ffffff;
  --bg-alt: #f1f4f9;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --text-dark: #0d1b2a;
  --text-medium: #374151;
  --text-light: #6b7280;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
  --nav-height: 68px;
}

/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================
   Navigation
============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(11, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.3px;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.1px;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero
============================================ */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(9, 18, 33, 0.87) 0%, rgba(14, 32, 66, 0.82) 50%, rgba(18, 48, 90, 0.80) 100%),
    url('../gemforge-banner.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 28px 100px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 75%, rgba(78, 154, 241, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(78, 154, 241, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-geo::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: rgba(78, 154, 241, 0.04);
  transform: rotate(45deg);
  border-radius: 60px;
  border: 1px solid rgba(78, 154, 241, 0.08);
}

.hero-geo::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: rgba(78, 154, 241, 0.03);
  transform: rotate(30deg);
  border-radius: 60px;
  border: 1px solid rgba(78, 154, 241, 0.06);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-logo-wrap {
  margin-bottom: 32px;
}

.hero-logo-main {
  width: 120px;
  height: auto;
}

.hero-greeting {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-name {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.hero-title-wrap {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.typed-text {
  color: var(--accent);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(78, 154, 241, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(78, 154, 241, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.scroll-label {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%      { transform: scaleY(1.4); opacity: 1;  }
}

/* ============================================
   Section Base
============================================ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-alt {
  background: var(--cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 68px;
}

.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(78, 154, 241, 0.1);
  border: 1px solid rgba(78, 154, 241, 0.2);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.section-badge.light {
  background: rgba(78, 154, 241, 0.15);
  border-color: rgba(78, 154, 241, 0.3);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-title.light {
  color: var(--white);
}

/* ============================================
   About
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 52px;
  align-items: start;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--text-medium);
  line-height: 1.85;
  margin-bottom: 22px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-cta {
  margin-top: 36px;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: sticky;
  top: 100px;
}

/* Profile image */
.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 100px;
}

.profile-img-wrap {
  width: 240px;
  height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.profile-img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(29, 52, 97, 0.2);
  border-color: rgba(78, 154, 241, 0.4);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(16px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(78, 154, 241, 0.3);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-sup {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.3;
}

/* ============================================
   Skills
============================================ */
.skills-group {
  margin-bottom: 56px;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.skills-rated {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: var(--transition);
  gap: 12px;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(78, 154, 241, 0.25);
}

.skill-item.top {
  border-color: rgba(78, 154, 241, 0.25);
  background: rgba(78, 154, 241, 0.07);
}

.skill-item.top:hover {
  background: rgba(78, 154, 241, 0.12);
  border-color: rgba(78, 154, 241, 0.4);
}

.skill-info {
  flex: 1;
  min-width: 0;
}

.skill-cat {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.skill-meta {
  text-align: right;
  flex-shrink: 0;
}

.stars {
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 3px;
}

.star-on  { color: var(--accent-warm); }
.star-off { color: rgba(255, 255, 255, 0.18); }

.skill-exp {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3px;
}

/* Tech Stack */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.tech-cat h4 {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  background: rgba(78, 154, 241, 0.1);
  border: 1px solid rgba(78, 154, 241, 0.22);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  transition: var(--transition);
  letter-spacing: 0.1px;
}

.tag:hover {
  background: rgba(78, 154, 241, 0.2);
  border-color: var(--accent);
  color: var(--white);
}

/* ============================================
   Experience Timeline
============================================ */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--primary-light) 60%, transparent 100%);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(78, 154, 241, 0.25);
  z-index: 1;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(78, 154, 241, 0.3);
  transform: translateX(4px);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline-period {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--gray-100);
  padding: 5px 13px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-list {
  margin-bottom: 16px;
}

.timeline-list li {
  font-size: 0.88rem;
  color: var(--text-medium);
  padding: 7px 0 7px 20px;
  position: relative;
  line-height: 1.65;
  border-bottom: 1px solid var(--gray-100);
}

.timeline-list li:last-child {
  border-bottom: none;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 9px;
}

.timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.timeline-chips span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(29, 52, 97, 0.07);
  border: 1px solid rgba(29, 52, 97, 0.12);
  padding: 3px 10px;
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Education
============================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
}

.edu-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(78, 154, 241, 0.3);
}

.edu-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.edu-degree {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.35;
}

.edu-note {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.edu-school {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.edu-location {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.edu-year {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 2px 11px;
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
}

/* Awards */
.awards-section {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.awards-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.award-item:hover {
  border-color: rgba(78, 154, 241, 0.3);
  box-shadow: var(--shadow);
}

.award-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.award-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
  line-height: 1.35;
}

.award-org {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* ============================================
   Contact
============================================ */
.contact-inner {
  max-width: 860px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 52px;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  transition: var(--transition);
  display: block;
}

a.contact-card:hover {
  background: rgba(78, 154, 241, 0.12);
  border-color: rgba(78, 154, 241, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(78, 154, 241, 0.15);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(78, 154, 241, 0.12);
  border: 1px solid rgba(78, 154, 241, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-value {
  font-size: 0.87rem;
  color: var(--white);
  font-weight: 500;
  word-break: break-word;
  line-height: 1.4;
}

/* ============================================
   Footer
============================================ */
footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-dot {
  color: var(--accent);
}

.footer-name {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

/* ============================================
   Scroll Reveal
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'profile stats'
      'text    text';
    gap: 36px;
  }

  .about-profile { grid-area: profile; position: static; }
  .about-text    { grid-area: text; }
  .about-right   { grid-area: stats; }

  .about-stats {
    position: static;
    grid-template-columns: 1fr;
  }

  .profile-img-wrap {
    width: 100%;
    height: 260px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 22, 40, 0.98);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .section {
    padding: 72px 0;
  }

  .skills-rated {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline-card {
    padding: 22px 22px;
  }

  .timeline-head {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-dot {
    left: -21px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'profile'
      'text'
      'stats';
  }

  .about-profile { grid-area: profile; }
  .about-text    { grid-area: text; }
  .about-right   { grid-area: stats; }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .profile-img-wrap {
    width: 100%;
    height: 280px;
  }
}

@media (max-width: 520px) {
  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .hero-logo-badge {
    padding: 12px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
