/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  --navy-900: #020b27;
  --navy-800: #041030;
  --navy-700: #061540;
  --navy-600: #0a1d55;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --indigo-500: #6366f1;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --blue-border: rgba(59, 130, 246, 0.3);
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-blue: 0 8px 32px rgba(59, 130, 246, 0.2);
  --transition: all 0.3s ease;
  --nav-height: 70px;
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy-900);
  color: var(--gray-100);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   BACKGROUND CANVAS
   =========================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

p {
  color: var(--gray-300);
}

a {
  color: var(--blue-400);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-300);
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--indigo-500));
  border-radius: 2px;
}

.section-desc {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 600px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ===========================
   CARD
   =========================== */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-blue);
}

/* ===========================
   NAVIGATION
   =========================== */
/*
  IMPORTANT: backdrop-filter is on ::before, NOT on .nav itself.
  backdrop-filter on .nav would make it a containing block for position:fixed
  children (Chrome/Safari bug), trapping the mobile overlay inside the nav.
*/
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.nav.scrolled::before {
  background: rgba(2, 12, 30, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 var(--container-pad);
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.logo-text span {
  display: block;
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(59, 130, 246, 0.08);
}

.nav-links a.active {
  color: var(--blue-400);
}

.btn-nav {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.125rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}

.btn-nav:hover {
  background: var(--blue-500) !important;
  box-shadow: var(--shadow-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-300);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--blue-400);
  color: var(--blue-400);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.825rem;
}

/* ===========================
   TAGS & BADGES
   =========================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--blue-300);
  font-weight: 500;
}

.tag-gray {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
}

.tag-green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

/* ===========================
   TABS
   =========================== */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--blue-600);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ===========================
   HERO — HOME
   =========================== */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 4rem var(--container-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-greeting {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gray-300);
  margin-bottom: 0.375rem;
}

.hero-name {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 0.95rem;
  color: var(--blue-400);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--gray-300);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-info-bar {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--gray-400);
}

.hero-info-item i {
  color: var(--blue-400);
  font-size: 0.8rem;
}

/* Abstract Hero Visual (no face) */
.hero-visual {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
}

.hero-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  animation: spin-slow 20s linear infinite;
}

.hero-avatar-ring-2 {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 153, 255, 0.2);
  animation: spin-slow 14s linear infinite reverse;
}

.hero-avatar-core {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(59, 130, 246, 0.25), rgba(10, 29, 85, 0.4));
  border: 2px solid rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-monogram {
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -3px;
  text-shadow: 0 0 60px rgba(59, 130, 246, 0.9);
  line-height: 1;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue-500);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--blue-400), 0 0 6px var(--blue-300);
}

.hero-float-badge {
  position: absolute;
  background: rgba(4, 16, 48, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: var(--radius-md);
  padding: 0.425rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-300);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: float 3.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-float-badge:nth-child(5) { top: 28px; right: -16px; animation-delay: 0s; }
.hero-float-badge:nth-child(6) { bottom: 70px; right: -28px; animation-delay: 0.6s; }
.hero-float-badge:nth-child(7) { bottom: 28px; left: -22px; animation-delay: 1.2s; }
.hero-float-badge:nth-child(8) { top: 75px; left: -38px; animation-delay: 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.375rem;
}

.page-hero-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--indigo-500));
  border-radius: 2px;
  margin-top: 0.875rem;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.125rem 0.875rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--blue-border);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.25rem;
  color: var(--blue-400);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================
   INFO CARD (sidebar)
   =========================== */
.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.info-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
  font-size: 0.845rem;
}

.info-label {
  color: var(--gray-400);
  font-weight: 500;
}

.info-value {
  color: var(--gray-200);
  word-break: break-word;
}

.info-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.25rem 0;
}

.skill-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.skill-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.845rem;
  padding: 0.6rem 0.875rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  color: var(--gray-100);
  transition: var(--transition);
}

.skill-summary-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
}

.skill-summary-item i {
  color: var(--blue-400);
  font-size: 0.875rem;
  width: 16px;
  flex-shrink: 0;
}

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-content {
  margin-top: 1.5rem;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-row-name {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.skill-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===========================
   EXPERIENCE TIMELINE
   =========================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-500) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.8125rem;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--blue-600);
  border: 2.5px solid var(--blue-400);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.timeline-role {
  font-size: 0.825rem;
  color: var(--blue-400);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-date {
  font-size: 0.775rem;
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid var(--glass-border);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-bullets li {
  font-size: 0.875rem;
  color: var(--gray-300);
  padding-left: 1.125rem;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-size: 0.8rem;
  top: 1px;
}

/* ===========================
   CONNECT CARD / SIDEBAR
   =========================== */
.connect-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.connect-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.connect-card > .connect-subtitle {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  display: block;
}

.connect-info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.connect-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.865rem;
}

.connect-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-400);
  font-size: 0.85rem;
}

.connect-info-item span,
.connect-info-item a {
  color: var(--gray-200);
  font-size: 0.845rem;
  word-break: break-word;
}

.social-links {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--blue-border);
  color: var(--blue-400);
  transform: translateY(-2px);
}

/* ===========================
   SKILLS OVERVIEW (resume sidebar)
   =========================== */
.skills-overview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.skills-overview-item {
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.skills-overview-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
}

.skills-overview-item i {
  color: var(--blue-400);
  font-size: 0.9rem;
  width: 18px;
  flex-shrink: 0;
}

.skills-overview-item div strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
}

.skills-overview-item div span {
  font-size: 0.775rem;
  color: var(--gray-400);
}

/* ===========================
   EDUCATION CARD
   =========================== */
.edu-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--blue-border);
  background: var(--glass-bg-hover);
}

.edu-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.edu-content h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.edu-content .edu-school {
  font-size: 0.825rem;
  color: var(--blue-400);
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.edu-content p {
  font-size: 0.825rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ===========================
   CERTIFICATIONS
   =========================== */
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cert-item:hover {
  border-color: var(--blue-border);
  background: var(--glass-bg-hover);
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
  font-size: 1rem;
  flex-shrink: 0;
}

.cert-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--white);
}

.cert-info span {
  font-size: 0.775rem;
  color: var(--gray-400);
}

/* ===========================
   PROJECT CARDS
   =========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-blue);
  transform: translateY(-5px);
}

.project-preview {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-preview-icon {
  font-size: 3.25rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px currentColor);
}

.project-body {
  padding: 1.25rem;
}

.project-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.845rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Project category colors */
.project-card[data-category="mobile"] .project-preview {
  background: linear-gradient(135deg, #0a1d55 0%, #1a2e80 100%);
}
.project-card[data-category="mobile"] .project-preview-icon { color: #60a5fa; }

.project-card[data-category="fullstack"] .project-preview {
  background: linear-gradient(135deg, #1a0a55 0%, #2d1a80 100%);
}
.project-card[data-category="fullstack"] .project-preview-icon { color: #a78bfa; }

.project-card[data-category="bot"] .project-preview {
  background: linear-gradient(135deg, #0a2a1d 0%, #0f3d2a 100%);
}
.project-card[data-category="bot"] .project-preview-icon { color: #34d399; }

/* ===========================
   ABOUT PAGE SPECIFIC
   =========================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.approach-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.approach-card:hover {
  border-color: var(--blue-border);
  background: var(--glass-bg-hover);
}

.approach-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--blue-400);
}

.approach-card h4 {
  font-size: 0.925rem;
  margin-bottom: 0.375rem;
}

.approach-card p {
  font-size: 0.825rem;
  line-height: 1.6;
}

/* ===========================
   CONTACT FORM
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 145px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 1.75rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.825rem;
  color: var(--gray-400);
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.55s; }

/* ===========================
   UTILITIES
   =========================== */
.text-blue { color: var(--blue-400); }
.text-muted { color: var(--gray-400); }
.text-small { font-size: 0.845rem; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.w-full { width: 100%; }
.justify-center { justify-content: center; }

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-600); }

/* ===========================
   RESPONSIVE
   =========================== */

/* ── Tablet landscape ─────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 4rem 0; }

  .main-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Hero collapses to single column, visual on top */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions { justify-content: center; }
  .hero-info-bar { justify-content: center; }

  .hero-visual {
    order: -1;
    margin: 0 auto;
    width: 260px;
    height: 260px;
  }

  .hero-monogram { font-size: 3.5rem; }

  .section-header { text-align: center; }
  .section-title::after { left: 50%; transform: translateX(-50%); }
  .section-desc { margin: 1rem auto 0; }
}

/* ── Tablet portrait ──────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --container-pad: 1.25rem;
  }

  .section { padding: 3.5rem 0; }

  /* ── Hamburger nav ── */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 11, 39, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1001;
    padding: 2rem 1rem;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
    animation: navSlideIn 0.22s ease forwards;
  }

  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.9rem 2rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    display: block;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-color: var(--blue-border);
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-400);
  }

  .btn-nav {
    margin-left: 0 !important;
    border: 1.5px solid var(--blue-600) !important;
    max-width: 300px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── Hero ── */
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-container { gap: 2rem; }
  .hero-visual { width: 210px; height: 210px; }
  .hero-monogram { font-size: 3rem; }
  .hero-float-badge { display: none; }

  /* ── Stats ── */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  /* ── Tabs — horizontal scroll ── */
  .tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .tab-nav::-webkit-scrollbar { display: none; }

  /* ── Timeline ── */
  .timeline { padding-left: 1.5rem; }
  .timeline-header { flex-direction: column; gap: 0.25rem; }

  /* ── Projects ── */
  .projects-grid { grid-template-columns: 1fr; }

  /* ── Approach cards ── */
  .approach-grid { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }

  /* ── Page hero ── */
  .page-hero { padding: 3rem 0 1.5rem; }
}

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
  }

  .section { padding: 3rem 0; }

  /* ── Hero ── */
  .hero-container { padding-top: 2rem; padding-bottom: 2rem; }
  .hero-visual { width: 180px; height: 180px; }
  .hero-monogram { font-size: 2.5rem; }
  .hero-greeting { font-size: 0.9rem; }
  .hero-desc { font-size: 0.9rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-info-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
  }

  /* ── Stats — 2 columns on tiny screens ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: 0.65rem; }

  /* ── Section titles ── */
  .section-title { font-size: 1.45rem; }

  /* ── Tab buttons ── */
  .tab-btn { padding: 0.5rem 0.875rem; font-size: 0.8rem; }

  /* ── Timeline ── */
  .timeline { padding-left: 1.25rem; }
  .timeline::before { left: 3px; }
  .timeline-dot { left: -1.5rem; width: 12px; height: 12px; }
  .timeline-bullets li { font-size: 0.845rem; }

  /* ── Cards ── */
  .card { padding: 1.25rem; }
  .edu-card { flex-direction: column; }
  .edu-icon { width: 44px; height: 44px; font-size: 1.15rem; }

  /* ── Info list ── */
  .info-list li { grid-template-columns: 72px 1fr; font-size: 0.8rem; }

  /* ── Project card ── */
  .project-preview { height: 145px; }
  .project-body { padding: 1rem; }

  /* ── Buttons ── */
  .btn { padding: 0.7rem 1.375rem; font-size: 0.875rem; }

  /* ── Page hero ── */
  .page-hero { padding: 2.5rem 0 1.25rem; }
  .page-hero h1 { font-size: 1.75rem; }

  /* ── Tags — prevent overflow ── */
  .tag { font-size: 0.72rem; padding: 0.25rem 0.6rem; }

  /* ── Social links bar ── */
  .social-links { gap: 0.5rem; }
  .social-link { width: 36px; height: 36px; }

  /* ── Footer ── */
  .footer { padding: 1.5rem 0; }
  .footer-copy { font-size: 0.775rem; }
}

/* ── Extra small (320px) ──────────────────────── */
@media (max-width: 360px) {
  .hero-visual { width: 155px; height: 155px; }
  .hero-monogram { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
}
