/* ==============================================
   CB MISHRA PORTFOLIO - MAIN STYLESHEET
   Dark Modern Theme with Light Mode Toggle
   ============================================== */

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

/* ====================================
   CSS CUSTOM PROPERTIES
   ==================================== */
:root {
  --bg-primary: #050A14;
  --bg-secondary: #0A1628;
  --bg-card: #0D1B2A;
  --bg-card-hover: #112236;
  --bg-glass: rgba(13, 27, 42, 0.9);
  --text-primary: #E8EFF7;
  --text-secondary: #A0B3CC;
  --text-muted: #5A7A99;
  --accent-primary: #00D4FF;
  --accent-secondary: #0095B3;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-hire: #FF6B35;
  --accent-hire-hover: #FF8A5C;
  --border-color: rgba(0, 212, 255, 0.12);
  --border-strong: rgba(0, 212, 255, 0.3);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 48px rgba(0, 212, 255, 0.15);
  --gradient-accent: linear-gradient(135deg, #00D4FF 0%, #0095B3 100%);
  --font-display: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --max-width: 1280px;
}

[data-theme="light"] {
  --bg-primary: #F0F4F8;
  --bg-secondary: #E4EBF3;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7FAFC;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --text-primary: #0A1628;
  --text-secondary: #3A5068;
  --text-muted: #8099B3;
  --accent-primary: #0073A8;
  --accent-secondary: #005C87;
  --accent-glow: rgba(0, 115, 168, 0.12);
  --border-color: rgba(0, 115, 168, 0.15);
  --border-strong: rgba(0, 115, 168, 0.35);
  --shadow-card: 0 4px 32px rgba(10, 22, 40, 0.1);
  --shadow-hover: 0 8px 48px rgba(0, 115, 168, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-secondary); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section-padding {
  padding: clamp(60px, 8vw, 120px) 0;
}

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-primary);
  display: inline-block;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent, linear-gradient(135deg, #00D4FF 0%, #0095B3 100%));
  color: #050A14;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
  color: #050A14;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow, rgba(0, 212, 255, 0.08));
  transform: translateY(-2px);
}

.btn-hire {
  background: var(--accent-hire);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.3);
}

.btn-hire:hover {
  background: var(--accent-hire-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.45);
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FF0000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn-youtube:hover {
  background: #cc0000;
  color: #fff;
  transform: translateY(-2px);
}

/* ====================================
   CARDS
   ==================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card:hover::before { opacity: 1; }

/* ====================================
   TAGS / BADGES
   ==================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 500;
}

[data-theme="light"] .tag { background: rgba(0, 115, 168, 0.08); }

/* ====================================
   SCROLL REVEAL
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ====================================
   GRID BACKGROUND
   ==================================== */
.grid-bg {
  position: relative;
}

.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .grid-bg::after {
  background-image:
    linear-gradient(rgba(0, 115, 168, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 115, 168, 0.04) 1px, transparent 1px);
}

.grid-bg > * { position: relative; z-index: 1; }

/* ====================================
   HEADER / NAVIGATION
   ==================================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

#site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent, linear-gradient(135deg, #00D4FF, #0095B3));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #050A14;
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

#primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

#primary-nav a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#primary-nav a:hover,
#primary-nav a.active {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}

.header-social a:hover {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--accent-primary); background: rgba(0, 212, 255, 0.08); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

/* Mobile Menu */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  z-index: 999;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}

#mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

#mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#mobile-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#mobile-nav a:hover { color: var(--text-primary); background: rgba(0, 212, 255, 0.06); }
#mobile-nav .btn-hire { margin: 8px 0; }

/* ====================================
   HERO SECTION
   ==================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  padding: calc(var(--header-height) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -50px;
  background: radial-gradient(circle, rgba(0, 149, 179, 0.05) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, #00D4FF 0%, #0095B3 50%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-description {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat { text-align: left; }

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero-stat-number span {
  font-size: 0.6em;
  color: var(--accent-primary);
  font-weight: 600;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  min-width: 240px;
  position: relative;
}

.hero-card-avatar {
  width: 80px; height: 80px;
  background: var(--gradient-accent, linear-gradient(135deg, #00D4FF, #0095B3));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: #050A14;
  margin: 0 auto 20px;
}

.hero-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: var(--text-primary);
}

.hero-card-role {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0 20px;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-card-stat {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.hero-card-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-primary);
  line-height: 1;
}

.hero-card-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.hero-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-card-skills .tag {
  font-size: 10px;
  padding: 3px 8px;
}

/* ====================================
   EXPERTISE SECTION
   ==================================== */
#expertise {
  background: var(--bg-secondary);
  position: relative;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.expertise-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.expertise-icon {
  width: 52px; height: 52px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.expertise-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.expertise-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====================================
   EXPERIENCE SECTION
   ==================================== */
#experience {
  background: var(--bg-primary);
}

.experience-timeline {
  position: relative;
  margin-top: 48px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}

.experience-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 48px;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

.experience-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 500;
}

.experience-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.experience-company {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.experience-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experience-detail-item {}

.experience-detail-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.experience-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ====================================
   PORTFOLIO / PROJECTS SECTION
   ==================================== */
#portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.portfolio-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.portfolio-icon {
  width: 52px; height: 52px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portfolio-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* ====================================
   EDUCATION SECTION
   ==================================== */
#education {
  background: var(--bg-primary);
}

.education-card {
  max-width: 680px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '🎓';
  font-size: 64px;
  display: block;
  margin-bottom: 24px;
}

.education-degree {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.education-field {
  font-size: 16px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.education-institution {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.education-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ====================================
   TECH STACK SECTION
   ==================================== */
#tech-stack {
  background: var(--bg-secondary);
}

.tech-stack-intro {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.tech-category:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.tech-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tech-category-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.tech-category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ====================================
   VIDEO SECTION
   ==================================== */
#video-intro {
  background: var(--bg-primary);
}

.video-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.video-text {}

.video-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}

.video-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.video-feature-icon { font-size: 20px; flex-shrink: 0; }

.video-embed {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-embed iframe {
  width: 100%; height: 100%;
  border: none;
}

.video-trouble {
  text-align: center;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ====================================
   BLOG SECTION
   ==================================== */
#blog {
  background: var(--bg-secondary);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 149, 179, 0.03) 100%);
  font-size: 48px;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
}

.blog-date { font-size: 12px; color: var(--text-muted); }
.blog-read-time { font-size: 12px; color: var(--text-muted); }

.blog-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author-avatar {
  width: 28px; height: 28px;
  background: var(--gradient-accent, linear-gradient(135deg, #00D4FF, #0095B3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #050A14;
}

.blog-author-name { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.blog-read-link {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.blog-read-link:hover { gap: 8px; }

.blog-view-all {
  text-align: center;
  margin-top: 48px;
}

/* ====================================
   CONTACT SECTION
   ==================================== */
#contact {
  background: var(--bg-primary);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.contact-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}

.contact-btn-icon { font-size: 22px; }
.contact-btn-label { font-weight: 600; font-size: 15px; }
.contact-btn-value { font-size: 12px; color: var(--text-muted); }

/* ====================================
   HIRE ME FORM / PAGE
   ==================================== */
.hire-form, .booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-label.required::after {
  content: ' *';
  color: #FF6B35;
}

.form-input, .form-textarea, .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(0, 212, 255, 0.1));
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 120px; }

.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ====================================
   BOOK APPOINTMENT FORM
   ==================================== */
#appointment-form-wrap {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
}

/* ====================================
   FOOTER
   ==================================== */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.footer-brand {}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--border-strong);
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.06);
}

.footer-nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-nav a:hover { color: var(--accent-primary); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-built-with {
  font-size: 13px;
  color: var(--text-muted);
}

/* ====================================
   PAGE TEMPLATES
   ==================================== */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}

/* ====================================
   UTILITIES
   ==================================== */
.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }

/* ====================================
   LOADING / ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

/* ====================================
   SKIP LINK (ACCESSIBILITY)
   ==================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: #050A14;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-link:focus { top: 0; }

/* ====================================
   NOTICE / ALERTS
   ==================================== */
.form-success {
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 14px;
  display: none;
}

.form-success.show { display: block; }

/* ====================================
   RESPONSIVE - TABLET
   ==================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .video-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  #primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-stats { gap: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .tech-categories { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-buttons { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #appointment-form-wrap { padding: 28px 20px; }
  .education-card { padding: 32px 24px; }

  /* ── Header mobile fixes ── */
  /* Hide social icons & theme toggle from header on mobile — they appear in mobile menu */
  .header-social { display: none; }
  .theme-toggle  { display: none; }

  /* Tighten header inner gap */
  .header-inner { gap: 10px; }

  /* Shrink Hire Me button to fit neatly next to hamburger */
  #hire-me-btn {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .blog-header { flex-direction: column; align-items: flex-start; }
}

/* ====================================
   PRINT
   ==================================== */
@media print {
  #site-header, #mobile-nav, .hero-orb { display: none; }
  body { background: #fff; color: #000; }
}

/* ====================================
   PWA STANDALONE
   ==================================== */
@media (display-mode: standalone) {
  :root { --header-height: calc(72px + env(safe-area-inset-top)); }
  #site-header { padding-top: env(safe-area-inset-top); }
}

/* ====================================
   ADDITIONAL / FIX STYLES
   ==================================== */

/* Education card emoji */
.education-card-emoji {
  font-size: 56px;
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow, rgba(0,212,255,0.06));
}

.pagination .current {
  background: var(--accent-primary);
  color: #050A14 !important;
  border-color: var(--accent-primary);
}

.pagination .dots {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

/* Form success message */
.form-success {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  padding: 14px 18px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 20px;
}

/* W-full button */
.w-full {
  width: 100%;
  justify-content: center;
}

/* Hire page / Appointment page hero */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: var(--bg-secondary);
  position: relative;
}

/* Mobile nav open state */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0 20px;
  z-index: 998;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

#mobile-nav.open {
  display: block;
}

#mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#mobile-nav a {
  display: block;
  padding: 11px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

#mobile-nav a:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
}

/* Blog section background alternation */
#expertise   { background: var(--bg-secondary); }
#portfolio   { background: var(--bg-secondary); }
#tech-stack  { background: var(--bg-secondary); }
#blog        { background: var(--bg-secondary); }

/* Video trouble text */
.video-trouble {
  text-align: center;
  padding: 16px 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.video-trouble p { margin-bottom: 10px; }

/* btn-youtube inline flex fix */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF0000;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-youtube:hover { background: #cc0000; transform: translateY(-2px); }

/* Experience timeline top line fix */
.experience-timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 0;
}

/* section label centred variant */
.section-header[style*="text-align:center"] .section-label {
  justify-content: center;
}

/* Hire Me button loading state */
.btn-loading { display: none; }
