/* ==========================================================================
   YUSUF ERYILMAZ - PERSONAL PORTFOLIO DESIGN SYSTEM
   Ultra-modern, High-performance, Accessible, Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0a0c10;
  --bg-secondary: #0f141c;
  --bg-tertiary: #161d27;
  --bg-card: rgba(22, 29, 39, 0.7);
  --bg-card-hover: rgba(28, 38, 52, 0.85);
  --bg-glass: rgba(15, 20, 28, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(56, 189, 248, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Accents */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.2);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.2);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(248, 250, 252, 0.85);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(2, 132, 199, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px rgba(2, 132, 199, 0.15);
  --shadow-glow-purple: 0 0 35px rgba(147, 51, 234, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Ambient Background Lights */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  transition: opacity var(--transition-slow);
}

.ambient-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}

.ambient-orb-3 {
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: -50px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

/* Subtle Grid Background Pattern */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

[data-theme="light"] .bg-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.logo-text span {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.menu-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  word-break: break-word;
}

.hero-typewriter-wrapper {
  min-height: 38px;
  margin-bottom: 20px;
}

.hero-typewriter {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  width: 100%;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Hero Visual / Avatar Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.avatar-frame {
  position: relative;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(168, 85, 247, 0.4) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.avatar-img-container {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
  aspect-ratio: 4/5;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.03);
}

.avatar-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 12, 16, 0.85) 100%);
  pointer-events: none;
}

/* Floating Tech Chips around avatar */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-chip i, .floating-chip svg {
  color: var(--accent-cyan);
}

.chip-1 {
  top: 15px;
  left: -20px;
  animation-delay: 0s;
}

.chip-2 {
  bottom: 80px;
  left: -25px;
  animation-delay: 1.5s;
}

.chip-3 {
  top: 40%;
  right: -25px;
  animation-delay: 0.8s;
}

.chip-4 {
  bottom: 15px;
  right: -10px;
  animation-delay: 2.2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   KEY IMPACT METRICS COUNTERS
   -------------------------------------------------------------------------- */
.metrics-section {
  padding: 20px 0 60px;
  position: relative;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

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

.metric-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-symbol {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FEATURED ARCHITECTURE & SKILLS MATRIX
   -------------------------------------------------------------------------- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.arch-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.arch-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.arch-card:nth-child(2) .arch-icon-box {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo);
}

.arch-card:nth-child(3) .arch-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.arch-card:nth-child(4) .arch-icon-box {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
}

.arch-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.arch-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.arch-tag {
  font-size: 0.775rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Comprehensive Skill Pills Cloud */
.skills-cloud-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 20px;
}

.skills-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.skill-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.skill-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.skill-badge svg, .skill-badge i {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   EXPERIENCE / CAREER TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-indigo) 50%, var(--accent-purple) 100%);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 68px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 14px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  background: var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.timeline-role-info h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.timeline-highlights {
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-highlight-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bullet-icon {
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.timeline-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   FEATURED PROJECTS SHOWCASE
   -------------------------------------------------------------------------- */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.project-category-badge {
  font-size: 0.775rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.project-impact-badge {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-metrics-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-cyan);
}

.project-metrics-box i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 24px;
}

.project-tech span {
  font-size: 0.775rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.project-tech span:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

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

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: gap var(--transition-fast);
}

.project-link-btn:hover {
  gap: 10px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   EDUCATION & MATHEMATICAL LOGIC PEDIGREE
   -------------------------------------------------------------------------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: all var(--transition-base);
}

.edu-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.edu-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.edu-degree {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.edu-institution {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.edu-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   INTERACTIVE DEVELOPER TERMINAL
   -------------------------------------------------------------------------- */
.terminal-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: #080a0f;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.1);
  overflow: hidden;
}

.terminal-header {
  background: #111622;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  color: #e2e8f0;
  line-height: 1.6;
}

.terminal-output {
  margin-bottom: 16px;
}

.terminal-line {
  margin-bottom: 6px;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  color: var(--accent-cyan);
  font-weight: 700;
  white-space: nowrap;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.terminal-quick-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  background: #0d121c;
  border-top: 1px solid var(--border-subtle);
}

.cmd-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-badge:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION & DIRECT CONNECT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details {
  flex-grow: 1;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.copy-btn {
  padding: 6px 12px;
  font-size: 0.775rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #fff;
  border-color: var(--accent-cyan);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(14px);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

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

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 35px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   MODALS & TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-cyan);
  color: #fff;
  border-color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (DESKTOP, TABLETS & MOBILE)
   -------------------------------------------------------------------------- */

/* Large Tablets & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Switch Navigation to Mobile Hamburger */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }

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

  /* Hero Section Centering & Spacing */
  #hero.hero-section {
    padding-top: calc(var(--header-height) + 40px) !important;
    padding-bottom: 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    width: 100%;
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 25px auto 25px;
  }

  .avatar-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    text-align: center;
  }

  .hero-typewriter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 600px;
    width: 100%;
  }

  .hero-cta-group,
  .hero-social-links {
    justify-content: center;
    width: 100%;
  }

  /* Grid Layouts for 1024px */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  #hero.hero-section {
    padding-top: calc(var(--header-height) + 35px) !important;
    padding-bottom: 40px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .hero-typewriter {
    font-size: 1.05rem;
  }

  .avatar-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0 4px;
    max-width: 100%;
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 30px;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    width: 100%;
  }

  .social-pill {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .arch-card {
    padding: 24px 20px;
  }

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .edu-card {
    padding: 24px 20px;
  }

  .project-card {
    padding: 24px 20px;
  }

  /* Timeline mobile adaptation */
  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 36px;
  }

  .timeline-marker {
    left: 2px;
    width: 22px;
    height: 22px;
  }

  .timeline-marker::after {
    width: 8px;
    height: 8px;
  }

  .timeline-card {
    padding: 20px 16px;
  }

  .timeline-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Terminal responsive adjustments */
  .terminal-window {
    border-radius: var(--radius-md);
  }

  .terminal-body {
    padding: 16px 14px;
    min-height: 220px;
    max-height: 350px;
    font-size: 0.825rem;
    word-break: break-word;
  }

  .terminal-quick-cmds {
    padding: 10px 14px;
    gap: 6px;
  }

  .cmd-badge {
    font-size: 0.725rem;
    padding: 4px 10px;
  }

  /* Contact Panel adjustments */
  .contact-form-panel {
    padding: 26px 20px;
  }

  .contact-card-item {
    padding: 14px 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Modal preview */
  .modal-container {
    width: 95vw;
    height: 85vh;
    margin: 10px;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 48px 0;
  }

  #hero.hero-section {
    padding-top: calc(var(--header-height) + 30px) !important;
    padding-bottom: 35px;
  }

  /* Compact Navbar Actions */
  #header-cv-btn span {
    display: none;
  }

  #header-cv-btn {
    padding: 8px 10px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .menu-toggle-btn {
    width: 36px;
    height: 36px;
  }

  /* Avatar size */
  .avatar-wrapper {
    max-width: 220px;
    margin: 0 auto;
  }

  .avatar-frame {
    border-radius: 22px;
    padding: 6px;
  }

  .avatar-img-container {
    border-radius: 18px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.2rem);
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Hero buttons full width on small phones */
  .hero-cta-group {
    max-width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-social-links {
    gap: 6px 8px;
  }

  .social-pill {
    padding: 6px 11px;
    font-size: 0.75rem;
  }

  /* 2x2 Metric Cards */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-card {
    padding: 16px 12px;
  }

  .metric-number {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  .metric-sub {
    font-size: 0.725rem;
  }

  /* Project filter buttons */
  .project-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.775rem;
  }

  /* Contact item wrap */
  .contact-card-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .contact-details {
    min-width: 0;
    max-width: calc(100% - 60px);
  }

  .contact-val {
    word-break: break-all;
    font-size: 0.825rem;
  }

  .copy-btn {
    margin-left: auto;
  }

  /* Footer links on mobile */
  .footer-links {
    gap: 14px 18px;
  }
}
