/* ================================================================
   JEROME HARDAWAY - SENIOR AI ENGINEER PORTFOLIO
   Neural Architecture Design System
   ================================================================ */

/* ================================================================
   CSS VARIABLES - DESIGN TOKENS
   ================================================================ */
:root {
  /* Red, White, and Blue Palette - Patriotic + VWC Brand */
  --navy-950: #050b1a;
  --navy-900: #091f40;  /* VWC Navy */
  --navy-800: #0d2a54;
  --navy-700: #133866;
  --navy-600: #1a4578;
  --navy-500: #2657a0;
  --navy-400: #4a7bc8;
  --navy-300: #7ea0d9;
  --navy-200: #b3c7e8;
  --navy-100: #e3ecf7;

  /* Patriotic Blue Accent */
  --blue-500: #0066cc;
  --blue-400: #3385d6;
  --blue-300: #66a3e0;
  --blue-600: #0052a3;
  --blue-700: #003d7a;

  /* VWC Red Highlight */
  --red-500: #c5203e;  /* VWC Red */
  --red-400: #d64460;
  --red-300: #e26882;
  --red-600: #a01832;
  --red-700: #7a1126;

  /* Semantic Colors - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-tertiary: #e3ecf7;
  --text-primary: #091f40;
  --text-secondary: #133866;
  --text-tertiary: #2657a0;
  --accent-primary: #0066cc;  /* Patriotic Blue */
  --accent-secondary: #c5203e; /* VWC Red */
  --border-color: #b3c7e8;
  --code-bg: #091f40;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 14, 26, 0.1);
  --shadow-md: 0 4px 6px rgba(10, 14, 26, 0.1);
  --shadow-lg: 0 10px 15px rgba(10, 14, 26, 0.1);
  --shadow-xl: 0 20px 25px rgba(10, 14, 26, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-primary: var(--navy-950);
  --bg-secondary: var(--navy-900);
  --bg-tertiary: var(--navy-800);
  --text-primary: var(--navy-100);
  --text-secondary: var(--navy-200);
  --text-tertiary: var(--navy-300);
  --border-color: var(--navy-700);
  --code-bg: var(--navy-900);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
}

/* ================================================================
   BASE STYLES
   ================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  height: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-mono);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

/* Neural Network Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px),
    linear-gradient(180deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

main {
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--cyan-300);
}

.highlight {
  color: var(--accent-primary);
  font-weight: 600;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  display: inline-block;
  position: relative;
}

.title-number {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-right: var(--space-sm);
  font-weight: 400;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: 700px;
  margin-bottom: var(--space-2xl);
}

/* Code-style brackets */
.code-bracket {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Philosophy quote */
.philosophy {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-style: italic;
  padding: var(--space-md);
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  margin: var(--space-lg) 0;
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

body.dark-mode .main-header {
  background-color: rgba(15, 22, 35, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo h1 {
  font-size: 1.25rem;
  margin-bottom: 0;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link::before {
  content: '<';
  color: var(--accent-primary);
  margin-right: 0.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-link::after {
  content: '/>';
  color: var(--accent-primary);
  margin-left: 0.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  opacity: 1;
}

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

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-100);
  transition: all var(--transition-fast);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

body.dark-mode .dark-mode-toggle {
  background: var(--navy-700);
  color: var(--blue-500);
}

.sun-icon,
.moon-icon {
  fill: currentColor;
  transition: opacity var(--transition-base), transform var(--transition-base);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  width: 20px;
  height: 20px;
}

.sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0);
}

body.dark-mode .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

body.dark-mode .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Mobile Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-base);
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--navy-100);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(197, 32, 62, 0.1) 0%, transparent 50%);
  animation: gradientShift 10s ease-in-out infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Two-column layout on desktop */
@media (min-width: 769px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  max-width: 600px;
}

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

.hero-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  border: 3px solid var(--red-500);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-base);
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(197, 32, 62, 0.3);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--blue-500);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--blue-500);
  border-radius: var(--border-radius-sm);
  background: rgba(0, 102, 204, 0.05);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: var(--navy-100);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--red-500);
  font-family: var(--font-display);
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: '█';
  animation: blink 1s infinite;
  margin-left: 5px;
  color: var(--blue-500);
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  color: var(--navy-200);
  font-family: var(--font-mono);
  max-width: 700px;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  max-width: 600px;
}

.stat-item {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 32, 62, 0.3);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--red-500);
  box-shadow: 0 10px 30px rgba(197, 32, 62, 0.3);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red-500);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--navy-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Data flow animation */
.glitch-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
}

.glitch-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 102, 204, 0.03) 2px,
    rgba(0, 102, 204, 0.03) 4px
  );
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-section {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-primary);
  position: relative;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.9;
}

.about-text p:first-child {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Expertise Grid */
.about-expertise {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.about-expertise h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.expertise-item {
  padding: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.expertise-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-500), var(--red-500));
  transform: scaleY(0);
  transition: transform var(--transition-base);
  transform-origin: bottom;
}

.expertise-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.expertise-item:hover {
  transform: translateX(5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.expertise-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.expertise-desc {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ================================================================
   SKILLS SECTION
   ================================================================ */
.skills-section {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.skill-category {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--red-500));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.skill-category:hover::before {
  transform: scaleX(1);
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.skill-icon {
  color: var(--accent-primary);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.skill-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item:hover {
  padding-left: var(--space-sm);
  color: var(--accent-primary);
}

.skill-name {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.skill-item:hover .skill-name {
  color: var(--accent-primary);
}

.skill-level {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.skill-item:hover .skill-level {
  background: var(--accent-primary);
  color: var(--slate-950);
  border-color: var(--accent-primary);
}

.skill-description {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-tertiary);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

/* ================================================================
   FOOTER
   ================================================================ */
.main-footer {
  background: var(--navy-900);
  color: var(--navy-200);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

body.dark-mode .main-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--slate-800);
  margin-bottom: var(--space-lg);
}

.footer-info h3 {
  color: var(--navy-100);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.footer-info p {
  color: var(--navy-300);
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.footer-tagline {
  color: var(--blue-500);
  font-weight: 600;
}

.footer-links h4,
.footer-social h4 {
  color: var(--navy-100);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--navy-300);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  transition: all var(--transition-base);
}

.social-icons a:hover {
  background: var(--red-500);
  border-color: var(--red-500);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 32, 62, 0.3);
}

.social-icons svg {
  stroke: var(--navy-200);
  transition: stroke var(--transition-fast);
}

.social-icons a:hover svg {
  stroke: #ffffff;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: var(--navy-400);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin: 0;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-primary);
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 80px);
    padding: var(--space-xl) var(--space-lg);
    transition: right var(--transition-base);
    z-index: 999;
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    gap: var(--space-md);
  }

  .nav-links.active {
    right: 0;
  }

  .hero-section {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 280px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.hidden {
  display: none !important;
}

.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;
}

/* ================================================================
   ANIMATIONS & INTERACTIONS
   ================================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth scrolling for all anchor links */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
