/* 2025 glassmorphism-forward theme */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: hsla(var(--accent), 0.9);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, hsla(var(--accent), 0.9), hsla(var(--accent-2), 0.9));
  z-index: 1000;
  transition: width 0.1s ease;
}

:root {
  --bg-color: #0b0f14;
  --text-color: #e6e9ef;
  --muted-color: #a8b1c0;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.18);
  --frost-bg: rgba(255, 255, 255, 0.06);
  --frost-border: rgba(255, 255, 255, 0.22);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.28);
  --radius-lg: 16px;
  --radius-md: 12px;
  --blur-strong: 18px;
  --blur-soft: 12px;
  --accent: 210 100% 60%; /* vivid blue */
  --accent-2: 275 100% 70%; /* violet */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient mesh background */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% -10% -10%;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 10% 10%, hsla(210, 100%, 60%, 0.25), transparent 55%),
    radial-gradient(900px 700px at 90% 0%, hsla(275, 100%, 70%, 0.2), transparent 55%),
    radial-gradient(900px 700px at 20% 100%, hsla(160, 100%, 60%, 0.16), transparent 55%),
    radial-gradient(1000px 600px at 100% 90%, hsla(15, 100%, 60%, 0.14), transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #0a0e13 50%, #0b0f14 100%);
  filter: saturate(120%);
}

/* Subtle glass noise sheen using layered gradients (no images) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 2px);
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 517px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(15, 18, 26, 0.55), rgba(15, 18, 26, 0.35));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-strong));
  backdrop-filter: saturate(180%) blur(var(--blur-strong));
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-md);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 700; 
  letter-spacing: 0.3px; 
  color: var(--text-color); 
}

.site-logo {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  background: transparent;
  border-radius: 6px;
  overflow: visible;
}

/* Subtle lava lamp animation keyframes */
@keyframes lavaFloat1 {
  0%, 100% {
    transform: rotate(-15deg) translate(-2px, -2px);
  }
  33% {
    transform: rotate(-12deg) translate(-1px, -3px);
  }
  66% {
    transform: rotate(-18deg) translate(-3px, -1px);
  }
}

@keyframes lavaFloat2 {
  0%, 100% {
    transform: translate(6px, -6px) rotate(15deg);
  }
  50% {
    transform: translate(7px, -5px) rotate(17deg);
  }
}

@keyframes lavaGlow {
  0%, 100% {
    filter: saturate(1.2) brightness(1.1);
    box-shadow: 
      0 0 20px rgba(59, 130, 246, 0.4),
      0 0 40px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(255,255,255,0.3);
  }
  50% {
    filter: saturate(1.3) brightness(1.15);
    box-shadow: 
      0 0 25px rgba(59, 130, 246, 0.5),
      0 0 45px rgba(139, 92, 246, 0.25),
      inset 0 1px 0 rgba(255,255,255,0.35);
  }
}

@keyframes lavaGlow2 {
  0%, 100% {
    filter: saturate(1.2) brightness(1.1);
    box-shadow: 
      0 0 15px rgba(236, 72, 153, 0.4),
      0 0 30px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(255,255,255,0.3);
  }
  50% {
    filter: saturate(1.3) brightness(1.15);
    box-shadow: 
      0 0 20px rgba(236, 72, 153, 0.5),
      0 0 35px rgba(139, 92, 246, 0.25),
      inset 0 1px 0 rgba(255,255,255,0.35);
  }
}

/* Abstract geometric shape 1 - modern glassmorphic with 90s boldness */
.site-logo::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: 
    linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 6px;
  transform: rotate(-15deg) translate(-2px, -2px);
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: saturate(1.2) brightness(1.1);
  animation: lavaFloat1 8s ease-in-out infinite, lavaGlow 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Abstract geometric shape 2 - overlapping with 90s aesthetic */
.site-logo::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: 
    linear-gradient(225deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
  border-radius: 4px;
  transform: translate(6px, -6px) rotate(15deg);
  box-shadow: 
    0 0 15px rgba(236, 72, 153, 0.4),
    0 0 30px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: saturate(1.2) brightness(1.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 90s-inspired geometric cut */
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 100%, 0% 100%);
  animation: lavaFloat2 10s ease-in-out infinite, lavaGlow2 7s ease-in-out infinite;
}

.site-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.site-logo::before,
.site-logo::after {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-logo:hover::before {
  animation-play-state: paused;
  transform: rotate(-20deg) scale(1.1) translate(-3px, -3px);
  box-shadow: 
    0 0 30px rgba(59, 130, 246, 0.6),
    0 0 60px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  filter: saturate(1.4) brightness(1.2);
}

.site-logo:hover::after {
  animation-play-state: paused;
  transform: translate(8px, -8px) rotate(20deg) scale(1.1);
  box-shadow: 
    0 0 25px rgba(236, 72, 153, 0.6),
    0 0 50px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  filter: saturate(1.4) brightness(1.2);
}

.linkedin-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 150ms ease;
}

.nav-link:hover .linkedin-icon {
  transform: scale(1.1);
}
.site-nav { 
  display: flex; 
  gap: 10px; 
  align-items: center;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted-color);
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  height: fit-content;
  position: relative;
  z-index: 1;
}
.nav-link:hover { color: var(--text-color); background: rgba(255,255,255,0.06); }
.nav-link.is-active { background: rgba(255,255,255,0.10); color: var(--text-color); }

.site-main { 
  display: block; 
  padding-top: 0;
}

.hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.hero-text {
  max-width: 100%;
  color: #E2E8F0;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  max-height: 480px;
  background: #0c1117;
  transition: all 0.4s ease;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, hsla(var(--accent), 0.3), hsla(var(--accent-2), 0.3));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 300ms ease;
  filter: blur(12px);
}

.hero-image:hover::after {
  opacity: 1;
}

/* Hero h1 styles consolidated above */
.lead { color: var(--muted-color); max-width: 60ch; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--frost-border);
  border-radius: 12px;
  color: var(--text-color);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(150%);
  backdrop-filter: blur(var(--blur-soft)) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), var(--shadow-md);
  transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease;
  position: relative;
  overflow: hidden;
}

/* Ripple effect for buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.button.primary {
  background:
    linear-gradient(180deg, hsla(var(--accent), 0.9), hsla(var(--accent-2), 0.85));
  border-color: hsla(var(--accent), 0.65);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 10px 30px hsla(var(--accent), 0.35),
    var(--shadow-md);
}
.button.primary:hover { box-shadow: 0 12px 40px hsla(var(--accent), 0.45), var(--shadow-lg); }

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

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

.button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(255,255,255,0.3) inset;
}

.button:active {
  transform: translateY(0);
  transition: transform 50ms ease;
}

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

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsla(var(--accent), 0.5), transparent);
}

.section h2 { margin-top: 0; }



.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-color);
  font-size: 14px;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(var(--accent), 0.1), hsla(var(--accent-2), 0.1));
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
  pointer-events: none;
}

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.3s ease;
  opacity: 0;
}

.card-image img.loaded {
  opacity: 1;
}

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

/* Card image now uses case-study-placeholder content */

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.skill-category {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.skill-category h3 {
  margin: 0 0 16px 0;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.skill-tag {
  position: relative;
  background: linear-gradient(135deg, hsla(var(--accent), 0.2), hsla(var(--accent-2), 0.15));
  border: 1px solid hsla(var(--accent), 0.3);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-color);
  transition: all 200ms ease;
  overflow: hidden;
  z-index: 0;
}

.skill-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(var(--accent), 0.3), hsla(var(--accent-2), 0.25));
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: -1;
}

.skill-tag:hover::before {
  opacity: 1;
}

.skill-tag:hover {
  border-color: hsla(var(--accent), 0.5);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px hsla(var(--accent), 0.3);
}

/* Case Study Structure */
.case-study-header {
  margin-bottom: 16px;
}

.case-study-header h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
}

.case-study-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-tag {
  background: linear-gradient(135deg, hsla(var(--accent), 0.15), hsla(var(--accent-2), 0.12));
  border: 1px solid hsla(var(--accent), 0.3);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color);
  transition: all 200ms ease;
}

.meta-tag:hover {
  background: linear-gradient(135deg, hsla(var(--accent), 0.2), hsla(var(--accent-2), 0.17));
  border-color: hsla(var(--accent), 0.4);
  transform: translateY(-1px);
}

.case-study-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: var(--muted-color);
}

.duration, .role {
  background: rgba(255,255,255,0.06);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}




/* About Page */
.about-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero-text {
  max-width: 100%;
}

.about-hero-image {
  width: 100%;
  height: 384px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.about-hero-image img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1) contrast(1.05);
}

.about-hero-image img {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-content {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

.about-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.about-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.about-section h2 {
  margin: 0 0 16px 0;
  color: var(--text-color);
  font-size: 24px;
  font-weight: 600;
}

.about-section p {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.7;
}

/* Card Metrics */
.card-metrics {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  background: linear-gradient(135deg, hsla(var(--accent), 0.95), hsla(var(--accent-2), 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content { padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 10px; color: var(--muted-color); }

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 32px;
  color: var(--muted-color);
  background: linear-gradient(180deg, transparent, rgba(15, 18, 26, 0.4));
  -webkit-backdrop-filter: saturate(160%) blur(var(--blur-strong));
  backdrop-filter: saturate(160%) blur(var(--blur-strong));
}

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

.footer-content p {
  margin: 0;
  color: var(--text-color);
}

.footer-note {
  font-size: 14px;
  opacity: 0.7;
}


.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact p {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 16px;
}

.site-footer p:first-child {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

/* Typography */
h1, h2, h3 { font-weight: 700; }
h2 { font-size: 24px; }

/* Micro-interactions */
* { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }

/* Accessibility & selection */
:focus-visible { outline: 2px solid hsla(var(--accent), 0.9); outline-offset: 2px; border-radius: 10px; }
::selection { background: hsla(var(--accent), 0.35); color: #fff; }

.card:focus-visible {
  outline: 3px solid hsla(var(--accent), 0.9);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.nav-link:focus-visible {
  outline: 2px solid hsla(var(--accent), 0.9);
  outline-offset: 2px;
}

/* Floating particles background */
@keyframes float {
  0% { 
    transform: translateX(0px) translateY(0px) rotate(0deg); 
    opacity: 0;
  }
  10% { 
    opacity: 1;
  }
  90% { 
    opacity: 1;
  }
  100% { 
    transform: translateX(100px) translateY(-50px) rotate(360deg); 
    opacity: 0;
  }
}

@keyframes drift {
  0% { transform: translateX(0px) translateY(0px); }
  50% { transform: translateX(100px) translateY(-50px); }
  100% { transform: translateX(0px) translateY(0px); }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: linear-gradient(45deg, hsla(var(--accent), 0.8), hsla(var(--accent-2), 0.6));
  border-radius: 50%;
  filter: blur(0.5px);
  animation: float 20s infinite linear;
  opacity: 0;
}

.particle:nth-child(1) { 
  width: 3px; height: 3px; top: 20%; left: 10%; 
  animation-delay: 0s; animation-duration: 25s; 
}
.particle:nth-child(2) { 
  width: 2px; height: 2px; top: 60%; left: 80%; 
  animation-delay: 5s; animation-duration: 30s; 
}
.particle:nth-child(3) { 
  width: 4px; height: 4px; top: 80%; left: 20%; 
  animation-delay: 10s; animation-duration: 20s; 
}
.particle:nth-child(4) { 
  width: 2px; height: 2px; top: 30%; left: 70%; 
  animation-delay: 15s; animation-duration: 35s; 
}
.particle:nth-child(5) { 
  width: 3px; height: 3px; top: 70%; left: 40%; 
  animation-delay: 20s; animation-duration: 25s; 
}

/* Enhanced card interactions */
.card {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, var(--shadow-lg);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 100% 0%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
  transition: opacity 200ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.card:hover::after { opacity: 1; }
.card:hover { 
  transform: translateY(-8px) scale(1.03); 
  box-shadow: 0 2px 0 rgba(255,255,255,0.10) inset, var(--shadow-xl); 
  border-color: rgba(255,255,255,0.28); 
}

/* Card pulse animation for enhanced hover */
@keyframes cardPulse {
  0%, 100% {
    box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, var(--shadow-lg);
  }
  50% {
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, var(--shadow-xl);
  }
}

/* Enhanced hero section */
.hero h1 {
  font-size: 48px; 
  line-height: 1.05; 
  margin: 0 0 12px; 
  letter-spacing: -0.02em;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(135deg, var(--text-color) 0%, hsla(var(--accent), 0.9) 50%, var(--text-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

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

.hero h1::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, hsla(var(--accent), 0.9), hsla(var(--accent-2), 0.8));
  border-radius: 2px;
}

.hero h2 {
  font-size: 20px;
  font-weight: 500;
  color: hsla(var(--accent), 0.8);
  margin-bottom: 16px;
}

/* Scroll-triggered animations */
@keyframes heroTitleSlide {
  0% { 
    opacity: 0; 
    transform: translateX(-60px) translateY(20px); 
    filter: blur(4px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0) translateY(0); 
    filter: blur(0);
  }
}

@keyframes heroLeadSlide {
  0% { 
    opacity: 0; 
    transform: translateX(-40px) translateY(15px); 
    filter: blur(2px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0) translateY(0); 
    filter: blur(0);
  }
}

@keyframes heroImageReveal {
  0% { 
    opacity: 0; 
    transform: scale(0.8) translateX(40px); 
    filter: blur(3px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateX(0); 
    filter: blur(0);
  }
}

@keyframes skillCardReveal {
  0% { 
    opacity: 0; 
    transform: translateY(40px) scale(0.9); 
    filter: blur(2px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0);
  }
}

@keyframes cardReveal {
  0% { 
    opacity: 0; 
    transform: translateY(50px) scale(0.95); 
    filter: blur(3px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0);
  }
}

/* Consolidated hero h1 styles */

/* Enhanced Initial Animations */
.card:nth-child(1) { 
  animation: cardReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both; 
}
.card:nth-child(2) { 
  animation: cardReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both; 
}
.card:nth-child(3) { 
  animation: cardReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both; 
}

/* Revealed state for enhanced animations */
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Enhanced Hero Animations */
.hero h1 { 
  animation: heroTitleSlide 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; 
  animation-fill-mode: both;
}

.hero .lead { 
  animation: heroLeadSlide 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both; 
  animation-fill-mode: both;
}

.hero .hero-image { 
  animation: heroImageReveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both; 
  animation-fill-mode: both;
}

.hero-image img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  opacity: 0;
}

.hero-image img.loaded {
  opacity: 1;
}

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

/* Enhanced Skills Section Animations */
.skill-category:nth-child(1) { 
  animation: skillCardReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both; 
}
.skill-category:nth-child(2) { 
  animation: skillCardReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both; 
}
.skill-category:nth-child(3) { 
  animation: skillCardReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both; 
}

.skill-category {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.skill-tag {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px hsla(var(--accent), 0.3);
}

/* Enhanced navigation */
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(var(--accent), 0.2), hsla(var(--accent-2), 0.2));
  opacity: 0;
  transition: opacity 200ms ease;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.nav-link:hover::before { opacity: 1; }
.nav-link:hover { 
  color: var(--text-color); 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.nav-link.is-active {
  background: linear-gradient(135deg, hsla(var(--accent), 0.2), hsla(var(--accent-2), 0.15));
  border: 1px solid hsla(var(--accent), 0.3);
  box-shadow: 0 0 20px hsla(var(--accent), 0.2);
}

/* Prominent resume link styling - matching logo color scheme */
.nav-link[href*="Resume"] {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.12));
  border: 2px solid rgba(59, 130, 246, 0.5);
  color: var(--text-color);
  font-weight: 600;
  padding: 6px 20px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 4px 16px rgba(59, 130, 246, 0.3),
    0 0 30px rgba(139, 92, 246, 0.2),
    var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-link[href*="Resume"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}


.nav-link[href*="Resume"]:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.16));
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15) inset,
    0 6px 24px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.3),
    0 0 20px rgba(236, 72, 153, 0.2),
    var(--shadow-lg);
  transform: translateY(-2px);
}

.nav-link[href*="Resume"]:hover::before {
  opacity: 1;
}

.nav-link[href*="Resume"]:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 2px 8px rgba(59, 130, 246, 0.3),
    0 0 20px rgba(139, 92, 246, 0.2);
}

/* Glow effects */
.site-brand {
  font-weight: 700; 
  letter-spacing: 0.3px; 
  color: var(--text-color);
  text-shadow: 0 0 20px hsla(var(--accent), 0.3);
  transition: text-shadow 200ms ease;
}

.site-brand:hover {
  text-shadow: 0 0 30px hsla(var(--accent), 0.5);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image {
    height: 300px;
  }
  .cards { grid-template-columns: 1fr; }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .about-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-hero-image {
    height: 300px;
  }
  
  .about-section {
    padding: 24px;
  }
  
  .case-study-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .duration, .role {
    text-align: center;
  }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, hsla(var(--accent), 0.6), hsla(var(--accent-2), 0.6));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { 
  background: linear-gradient(180deg, hsla(var(--accent), 0.8), hsla(var(--accent-2), 0.8));
}

/* Card link styling */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link:hover {
  color: inherit;
}

.card-link:focus {
  outline: none;
}

.card-link:focus .card {
  outline: 2px solid hsla(var(--accent), 0.9);
  outline-offset: 2px;
}


/* === Case Study TL;DR scaffolding (scoped) === */
.case-study {
  /* fallback container spacing even if not wrapped in .container */
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  padding-top: 64px;
  padding-bottom: 64px;
}

/* TL;DR header spacing */
.case-study .tldr {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 48px;
}
.case-study .tldr :where(h1, h2, h3, p, ul, ol, dl, figure) {
  margin-block: 0;
}
.case-study .tldr h1 { 
  margin-block: 0 16px; 
  letter-spacing: -0.03em;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--muted-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-study .tldr .subtitle {
  margin-block: 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-color);
  font-weight: 500;
  opacity: 0.9;
}

.case-study .tldr .lead { 
  margin-block: 0 32px; 
  line-height: 1.7; 
  font-size: 20px;
  color: var(--muted-color);
  max-width: 80ch;
}

/* KPI list - enhanced as cards */
.case-study ul.kpis {
  list-style: none;
  padding-left: 0;
  margin-block: 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.case-study ul.kpis li { 
  margin: 0;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-md);
  transition: all 0.3s ease;
}

.case-study ul.kpis li:hover {
  transform: translateY(-2px);
  border-color: hsla(var(--accent), 0.3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, var(--shadow-lg);
}

.case-study ul.kpis li strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: hsla(var(--accent), 0.95);
  margin-bottom: 4px;
  line-height: 1.2;
}

.case-study ul.kpis li .note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-color);
  opacity: 0.7;
  margin-top: 4px;
  font-style: italic;
}

/* Definition list used for "My role / Timeline / Constraints" */
.case-study dl.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin-block: 32px 40px;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  box-shadow: var(--shadow-md);
}
.case-study dl.meta dt {
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.case-study dl.meta dd {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.6;
}

/* General section rhythm for the rest of the page */
.case-study section { 
  margin-block: 56px; 
}
.case-study section:first-of-type {
  margin-top: 48px;
}

.case-study section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 12px;
}

.case-study section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, hsla(var(--accent), 0.9), hsla(var(--accent-2), 0.8));
  border-radius: 2px;
}

.case-study section h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-color);
}

.case-study section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted-color);
  margin-bottom: 20px;
  max-width: 70ch;
}

.case-study section ul,
.case-study section ol {
  padding-left: 1.5rem;
  margin-bottom: 24px;
}

.case-study section li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted-color);
  margin-bottom: 12px;
}

.case-study section li strong {
  color: var(--text-color);
  font-weight: 600;
}

.case-study section li em {
  color: var(--text-color);
  font-style: italic;
}

.case-study figure { 
  margin-block: 40px; 
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--card-border);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.case-study figure:hover {
  border-color: hsla(var(--accent), 0.3);
  box-shadow: var(--shadow-lg);
}

.case-study figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  background: rgba(0,0,0,0.2);
}

.case-study figure:hover img {
  transform: scale(1.01);
}

/* Multiple images in figure */
.case-study figure img + img {
  margin-top: 0;
}

.case-study figure img:first-child:last-child {
  margin-bottom: 0;
}

.case-study figcaption { 
  margin-top: 16px; 
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-color);
  opacity: 0.9;
  font-style: italic;
  text-align: center;
}

.case-study .insight-cards {
  margin-top: 32px;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  border-left: 4px solid hsla(var(--accent), 0.5);
  -webkit-backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  backdrop-filter: blur(var(--blur-soft)) saturate(140%);
  box-shadow: var(--shadow-md);
}

.case-study .insight-cards h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
}

.case-study .insight-cards ol {
  padding-left: 1.5rem;
}

.case-study .insight-cards li {
  margin-bottom: 16px;
}

.case-study .validation-metrics {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.case-study .validation-metrics li {
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* Optional: keep bullets for any other lists within the case study */
.case-study :where(ul:not(.kpis):not(.validation-metrics), ol) { 
  padding-left: 1.5rem; 
}

.dh-track {
  overflow-y: hidden;
  transition: height 0.25s ease;
}

.journey-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-insights h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-color);
  margin: 0 0 8px 0;
}

.journey-insights ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journey-insights li {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
}

.journey-insights li strong {
  color: var(--text-color);
  font-weight: 600;
}

.journey-hmw {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, hsla(var(--accent), 0.15), hsla(var(--accent-2), 0.12));
  border: 2px solid hsla(var(--accent), 0.3);
  border-radius: var(--radius-lg);
  position: relative;
  min-width: 280px;
}

.journey-hmw::before,
.journey-hmw::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, hsla(var(--accent), 0.4), transparent);
}

.journey-hmw::before {
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
}

.journey-hmw::after {
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, hsla(var(--accent), 0.4));
}

.journey-hmw h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsla(var(--accent), 0.9);
  margin: 0 0 12px 0;
}

.journey-hmw p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
}

.journey-solutions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-solutions h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-color);
  margin: 0 0 8px 0;
}

.journey-solutions ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journey-solutions li {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
}

/* Responsive journey map */
@media (max-width: 768px) {
  .journey-hmw {
    min-width: auto;
    width: 100%;
  }
  
  .journey-hmw::before,
  .journey-hmw::after {
    display: none;
  }
  
  .case-study .tldr h1 {
    font-size: 36px;
  }
  
  .case-study .tldr .lead {
    font-size: 18px;
  }
  
  .case-study section h2 {
    font-size: 28px;
  }
  
  .case-study ul.kpis {
    grid-template-columns: 1fr;
  }
  
  .case-study dl.meta {
    grid-template-columns: 1fr;
    gap: 8px 16px;
  }
  
  .case-study dl.meta dt {
    margin-bottom: 4px;
  }
}

/* Breadcrumbs */
.breadcrumb {
  padding: 16px 198px;
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: var(--muted-color);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--muted-color);
  text-decoration: none;
  transition: color 200ms ease;
}

.breadcrumb a:hover {
  color: var(--text-color);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-color);
  font-weight: 500;
}

/* Print styles */
@media print {
  .particles,
  .scroll-progress,
  .site-header,
  .site-footer,
  .button,
  .skip-link,
  .breadcrumb {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  .card-image img {
    max-height: 200px;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Enhanced reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .particles {
    display: none;
  }
  
  .hero h1 {
    animation: none !important;
  }
  
  .hero .lead,
  .hero .hero-image {
    animation: none !important;
  }
}

/* 2-column layout for hero + about */
.hero-layout,
.about-layout {
  display: flex;
  align-items: center;
  gap: 3rem; /* space between text and image */
}

/* Text columns */
.hero-copy,
.about-copy {
  flex: 1 1 0;
}

/* Shared image column styles */
.photos,
.photo {
  flex: 1 1 0;
  max-width: 440px;      /* same max width for both images */
  margin-left: auto;     /* keeps image aligned toward the right */
}

/* Shared image formatting */
.photos img,
.photo img {
  width: 100%;
  display: block;
  border-radius: 24px;   /* rounded corners */
  object-fit: cover;
}

/* Optional: some breathing room for sections */
.section-hero,
.section-about {
  padding: 80px 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .hero-layout,
  .about-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .photos,
  .photo {
    max-width: 100%;
    margin-left: 0;
  }
}

/* Shared 2-column layout */
.hero-layout,
.about-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Keep content from stretching too wide on large screens */
.section-hero .container,
.section-about .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Text columns */
.hero-copy,
.about-copy {
  flex: 1 1 0;
  max-width: 640px;          /* keeps line length + hero height under control */
}

/* Image columns (right-aligned) */
.photos,
.photo {
  flex: 0 0 auto;
  margin-left: auto;
}

/* HERO image — slightly smaller so it feels lighter next to big headline */
.photos img {
  width: 328px;              /* adjust this number until it feels right */
  height: auto;              /* keeps aspect ratio */
  display: block;
  border-radius: 24px;
  object-fit: cover;
}

/* ABOUT image — a bit larger, but same styling */
.photo img {
  width: 328px;              /* can match 220px if you want them identical */
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: cover;
}

/* Vertical padding for sections */
.section-hero,
.section-about {
  padding: 80px 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .hero-layout,
  .about-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .photos,
  .photo {
    margin-left: 0;
  }

  .photos img,
  .photo img {
    width: 100%;
    max-width: 360px;        /* cap so they don’t explode on mobile */
  }
}

/* Hero button layout */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;              /* 16px between buttons */
  margin-top: 24px;
}

/* Base button styles */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;   /* pill shape */
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    color 0.2s ease;
}

/* PRIMARY: matches nav "Resume" button */
.button-primary {
  color: #ffffff;
  background:
    linear-gradient(#080b15, #080b15) padding-box,          /* inner fill */
    linear-gradient(135deg, #8a5bff, #3aa9ff) border-box;   /* gradient ring */
  box-shadow:
    0 0 0 1px rgba(110, 130, 255, 0.45),
    0 12px 30px rgba(0, 0, 0, 0.45);
}

.button-primary:hover {
  background:
    linear-gradient(#080b15, #080b15) padding-box,
    linear-gradient(135deg, #4f7dff, #63d2ff) border-box;
  box-shadow:
    0 0 0 1px #4f7dff,
    0 16px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

/* SECONDARY: softer, subtle border */
.button-secondary {
  color: #f5f7fb;
  background:
    linear-gradient(#11151f, #11151f) padding-box,
    linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06)) border-box;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 20px rgba(0,0,0,0.35);
}

.button-secondary:hover {
  background:
    linear-gradient(#151a25, #151a25) padding-box,
    linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.12)) border-box;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),
    0 10px 24px rgba(0,0,0,0.45);
}

/* Optional: keyboard focus style */
.button:focus-visible {
  outline: 2px solid #63d2ff;
  outline-offset: 2px;
}
