/* ============================================
   PROFESSIONAL PORTFOLIO STYLES
   ============================================ */

:root {
  /* Heritage Color Palette */
  --usaf-blue: #003087;
  --usaf-blue-light: #0051d5;
  --usaf-blue-dark: #001f4d;
  --psu-blue: #001E44;
  --psu-blue-light: #1e3a8a;
  --pittsburgh-black: #000000;
  --pittsburgh-gold: #FFB612;
  
  /* Professional Accents */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  
  /* Refined Dark Theme */
  --bg-primary: #0f0f15;
  --bg-secondary: #181820;
  --bg-tertiary: #1f1f28;
  --bg-card: rgba(24, 24, 32, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);
  
  /* Text Colors */
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;
  --text-accent: var(--accent-cyan);
  
  /* Borders & Effects */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(59, 130, 246, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 16px rgba(59, 130, 246, 0.2);
  
  /* Subtle Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --gradient-secondary: linear-gradient(135deg, var(--usaf-blue) 0%, var(--psu-blue) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  
  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 6rem 2rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* Subtle Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: subtleMove 20s ease-in-out infinite alternate;
}

@keyframes subtleMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-10px, -10px);
  }
}

/* Navigation */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 2rem;
  background: rgba(15, 15, 21, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-normal);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.modern-nav.scrolled {
  background: rgba(15, 15, 21, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.brand-logo:hover {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.1) 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
  transform: translateY(-1px);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  color: var(--text-primary);
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-blue);
  transition: width var(--transition-normal);
}

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

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

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  background: var(--bg-glass);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Hero Section - Enhanced */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding);
  padding-top: 10rem;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    var(--bg-primary);
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: var(--container-max);
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  z-index: 1;
}

.hero-greeting {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: fadeInUp 0.8s ease-out;
  font-family: var(--font-mono);
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(10px);
}

.hero-name {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(59, 130, 246, 0.15);
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  font-weight: 400;
  line-height: 1.6;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1.25rem 2.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  animation: none;
}

.cta-button.secondary {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
  border-color: var(--border-accent);
  backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.cta-button.secondary:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.cta-button::after {
  content: '→';
  transition: transform 0.3s ease;
  display: inline-block;
}

.cta-button.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button.primary:hover::before {
  opacity: 1;
}

.cta-button:hover::after {
  transform: translateX(5px);
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.heritage-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.heritage-badge:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.heritage-badge.usaf:hover {
  border-color: var(--usaf-blue-light);
  box-shadow: var(--shadow-usaf);
}

.heritage-badge.psu:hover {
  border-color: var(--psu-blue-light);
  box-shadow: var(--shadow-psu);
}

.heritage-badge.pittsburgh:hover {
  border-color: var(--pittsburgh-gold);
  box-shadow: var(--shadow-pgh);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.badge-icon img,
.badge-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.heritage-badge:hover .badge-icon {
  background: rgba(255, 255, 255, 0.12);
}

.heritage-badge:hover .badge-icon img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.heritage-visual {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}

.heritage-visual.usaf {
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.heritage-visual.psu {
  bottom: 20%;
  right: 20%;
  width: 180px;
  height: 180px;
  animation-delay: 5s;
}

.heritage-visual.pittsburgh {
  top: 50%;
  left: 5%;
  width: 150px;
  height: 150px;
  animation-delay: 10s;
}

.heritage-visual.flag {
  top: 10%;
  right: 5%;
  width: 380px;
  height: 240px;
  opacity: 0.85;
  z-index: 0;
  animation-delay: 0s;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  transition: all var(--transition-slow);
}

.heritage-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
  transition: filter var(--transition-normal);
}

.heritage-visual.flag img {
  filter: drop-shadow(0 8px 28px rgba(255, 255, 255, 0.35)) brightness(1.35) contrast(1.15) saturate(1.1);
}

.heritage-section:hover .heritage-visual.flag {
  opacity: 0.95;
  transform: translateY(-5px);
}

.heritage-section:hover .heritage-visual.flag img {
  filter: drop-shadow(0 12px 36px rgba(255, 255, 255, 0.45)) brightness(1.4) contrast(1.2) saturate(1.15);
}

.heritage-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.heritage-section .about-container {
  position: relative;
  z-index: 1;
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.heritage-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(24, 24, 32, 0.7) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.heritage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.heritage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.heritage-card > * {
  position: relative;
  z-index: 1;
}

.heritage-card:hover::before {
  transform: scaleX(1);
}

.heritage-card:hover::after {
  opacity: 1;
}

.heritage-card:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  border-color: rgba(59, 130, 246, 0.3);
}

.heritage-card.usaf:hover {
  box-shadow: var(--shadow-usaf);
}

.heritage-card.psu:hover {
  box-shadow: var(--shadow-psu);
}

.heritage-card.pittsburgh:hover {
  box-shadow: var(--shadow-pgh);
}

.heritage-card-image {
  width: 120px;
  height: 120px;
  margin: 0 0 1.5rem 0;
  border-radius: 16px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Solid backgrounds for transparent logo tiles (USAF + PSU) */
.heritage-badge.usaf .badge-icon,
.heritage-badge.psu .badge-icon {
  background: #ffffff;
}

.heritage-badge.usaf:hover .badge-icon,
.heritage-badge.psu:hover .badge-icon {
  background: #ffffff;
}

.heritage-card.usaf .heritage-card-image,
.heritage-card.psu .heritage-card-image {
  background: #ffffff;
}

.heritage-card.usaf:hover .heritage-card-image,
.heritage-card.psu:hover .heritage-card-image {
  background: #ffffff;
}

.heritage-card:hover .heritage-card-image {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 6px 16px rgba(59, 130, 246, 0.2));
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.heritage-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: filter var(--transition-normal);
}

.heritage-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  text-align: center;
  width: 100%;
}

.heritage-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.pittsburgh-skyline {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 
    inset 0 0 40px rgba(0, 0, 0, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pittsburgh-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  opacity: 0.85;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(0px) grayscale(0%) brightness(1.1) contrast(1.2);
  transform: scale(1.05);
  border-radius: 24px;
}

.hero-section:hover .pittsburgh-image {
  opacity: 1;
  filter: blur(0px) grayscale(0%) brightness(1.15) contrast(1.25);
  transform: scale(1.02);
}

.preamble-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.preamble-link:hover {
  color: var(--accent-indigo);
  border-bottom-color: var(--accent-indigo);
}

/* Projects Section - Professional */
.projects-section {
  padding: 8rem 2rem;
  position: relative;
  background: 
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    var(--bg-secondary);
}

.projects-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.projects-header {
  text-align: left;
  margin-bottom: 4rem;
  max-width: 100%;
}

.projects-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(59, 130, 246, 0.1);
  text-align: left;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(24, 24, 32, 0.6) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card.featured {
  grid-column: span 2;
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(31, 31, 40, 0.95) 0%, rgba(24, 24, 32, 0.8) 100%);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.project-card.featured::before {
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-indigo) 100%);
}

.project-card.featured:hover {
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.project-header {
  padding: 2rem 2rem 1rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-status.status-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.project-status.status-in-progress {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.project-status.status-planning {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.project-content {
  padding: 0 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(59, 130, 246, 0.1);
  text-align: left;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  flex: 1;
  text-align: left;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.tech-tag {
  padding: 0.5rem 0.875rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tech-tag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.project-card:hover .tech-tag {
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--accent-blue);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-link {
  padding: 1rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.project-link.primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.project-link.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-link.primary:hover::before {
  opacity: 1;
}

.project-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.project-link.secondary {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(10px);
}

.project-link.secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.project-link::after {
  content: '→';
  transition: transform 0.3s ease;
  display: inline-block;
}

.project-link:hover::after {
  transform: translateX(5px);
}

.project-link span {
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* About Section - Enhanced */
.about-section {
  padding: 8rem 2rem;
  position: relative;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    var(--bg-primary);
}

.about-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.about-header::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.about-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 400;
  text-align: left;
}

.about-text p {
  margin-bottom: 1.75rem;
  text-align: left;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.accent-text {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Consulting Section */
.consulting-section {
  padding: var(--section-padding);
  background: 
    radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    var(--bg-secondary);
  position: relative;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.consulting-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(24, 24, 32, 0.7) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.consulting-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.consulting-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

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

.consulting-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.consulting-card:hover .consulting-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.consulting-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.consulting-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.consulting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.consulting-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.consulting-cta p {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  background: 
    radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    var(--bg-secondary);
}

.contact-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(24, 24, 32, 0.7) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.info-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  transform: translateX(6px) translateY(-2px);
}

.info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

.info-card:hover .info-icon {
  color: var(--accent-indigo);
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: left;
}

.info-content p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-align: left;
}

.info-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.info-link:hover {
  color: var(--accent-indigo);
}

.contact-form {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(24, 24, 32, 0.7) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s ease;
}

.contact-form:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

.form-group input:hover,
.form-group textarea:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

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

.submit-button {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-button:hover:not(:disabled)::before {
  opacity: 1;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.submit-button:active:not(:disabled) {
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.site-footer {
  padding: 4rem 2rem 3rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Smooth image loading + responsive defaults */
img {
  display: block;
  max-width: 100%;
  height: auto;
  animation: fadeIn 0.4s ease-in;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

img[src$=".png"] {
  image-rendering: -webkit-optimize-contrast;
}

img[src$=".jpeg"],
img[src$=".jpg"] {
  image-rendering: auto;
}

/* Identity badges (whoami logos) */
.identity-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 0;
  opacity: 0.92;
}

.identity-badge {
  width: 132px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-glass);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.identity-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.identity-badge img {
  height: 48px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .identity-badge {
    width: 112px;
    height: 64px;
  }
  .identity-badge img {
    height: 40px !important;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-visual {
    order: -1;
    height: 400px;
  }
  
  .hero-name {
    font-size: 4rem;
    text-align: center;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-description {
    text-align: center;
    max-width: 600px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .projects-header h2 {
    font-size: 3.5rem;
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modern-nav {
    padding: 1rem 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right var(--transition-normal);
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }
  
  .nav-actions {
    order: 3;
    margin-left: 0.5rem;
  }
  
  .hero-name {
    font-size: 3.5rem;
    text-align: center;
  }
  
  .hero-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-greeting {
    margin-left: auto;
    margin-right: auto;
  }
  
  .projects-section {
    padding: 6rem 1.5rem;
  }
  
  .projects-header h2 {
    font-size: 3rem;
    text-align: center;
  }
  
  .projects-header {
    margin-bottom: 4rem;
    text-align: center;
    max-width: 100%;
  }
  
  .section-subtitle {
    text-align: center;
  }
  
  .about-header h2,
  .contact-header h2 {
    font-size: 2.5rem;
  }
  
  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .consulting-card {
    padding: 2rem;
  }
  
  .consulting-cta {
    padding: 2rem 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .project-content {
    padding: 0 1.5rem 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .heritage-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 4rem 1rem;
  }
  
  .hero-name {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .hero-description {
    font-size: 1rem;
    text-align: center;
  }
  
  .projects-header h2,
  .about-header h2,
  .contact-header h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .consulting-card {
    padding: 1.5rem;
  }
  
  .consulting-icon {
    width: 56px;
    height: 56px;
  }
  
  .consulting-card h3 {
    font-size: 1.25rem;
  }
  
  .project-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .project-content {
    padding: 0 1.5rem 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.35rem;
  }
  
  .heritage-card {
    padding: 2rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
}

/* Accessibility - Focus States */
*:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.2s ease;
}

.nav-link:focus-visible,
.social-link:focus-visible,
.cta-button:focus-visible,
.project-link:focus-visible,
.info-link:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-blue);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 10000;
}

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

/* Responsive adjustments for background flag image (keeps visuals aligned on all screens) */
@media (max-width: 1024px) {
  .heritage-visual.flag {
    width: 300px;
    height: 190px;
    right: 2%;
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .heritage-visual.flag {
    width: 220px;
    height: 140px;
    right: 0;
    top: 6%;
    opacity: 0.45;
  }
}

@media (max-width: 480px) {
  .heritage-visual.flag {
    width: 180px;
    height: 112px;
    right: -10px;
    top: 8%;
    opacity: 0.35;
  }
}
