/* Modern, vibrant, professional styling with green theme. */
:root {
  --bg: #f8fafc;
  --bg-light: #f1f5f9;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-2: rgba(255, 255, 255, 0.95);
  --text: rgba(15, 23, 42, 0.95);
  --muted: rgba(15, 23, 42, 0.70);
  --faint: rgba(15, 23, 42, 0.55);
  --border: rgba(15, 23, 42, 0.12);
  
  /* Green color palette */
  --accent-primary: #16a34a; /* Green */
  --accent-secondary: #22c55e; /* Lighter green */
  --accent-tertiary: #10b981; /* Emerald */
  --accent-dark: #15803d; /* Dark green */
  --accent-light: #4ade80; /* Light green */
  
  --accent-primary-light: rgba(22, 163, 74, 0.12);
  --accent-secondary-light: rgba(34, 197, 94, 0.12);
  --accent-tertiary-light: rgba(16, 185, 129, 0.12);
  
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.12);
  --shadow-colored: 0 20px 50px rgba(22, 163, 74, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Smooth fade-in animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: 
    /* Animated gradient overlays */
    radial-gradient(ellipse 1200px 800px at 15% 20%, rgba(22, 163, 74, 0.12), transparent 50%),
    radial-gradient(ellipse 1000px 700px at 85% 30%, rgba(34, 197, 94, 0.10), transparent 50%),
    radial-gradient(ellipse 900px 600px at 50% 80%, rgba(16, 185, 129, 0.08), transparent 50%),
    radial-gradient(ellipse 800px 500px at 70% 60%, rgba(74, 222, 128, 0.06), transparent 50%),
    /* Subtle mesh gradient */
    linear-gradient(135deg, rgba(22, 163, 74, 0.03) 0%, transparent 25%, transparent 75%, rgba(34, 197, 94, 0.03) 100%),
    linear-gradient(45deg, rgba(16, 185, 129, 0.02) 0%, transparent 50%, rgba(74, 222, 128, 0.02) 100%),
    /* Base gradient */
    linear-gradient(180deg, #f0fdf4 0%, #f8fafc 30%, #f0fdf4 60%, #f8fafc 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Add subtle decorative elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(22, 163, 74, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(22, 163, 74, 0.01) 2px,
      rgba(22, 163, 74, 0.01) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(34, 197, 94, 0.01) 2px,
      rgba(34, 197, 94, 0.01) 4px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}
.brand-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
  transition: all 0.3s ease;
}
.header-photo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand strong { 
  font-weight: 700; 
  letter-spacing: 0.01em; 
  color: var(--text);
  display: block;
}
.brand span { color: var(--muted); font-size: 13px; }

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

main { 
  padding: 40px 0 100px; 
  position: relative;
  z-index: 1;
}
section { 
  padding: 50px 0; 
  position: relative;
  z-index: 1;
}
.section-title {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
}
.section-kicker {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.7;
}

.hero {
  padding-top: 32px;
  padding-bottom: 20px;
}
.hero-profile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
  transition: all 0.3s ease;
}
.hero-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.35);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
  border-color: rgba(22, 163, 74, 0.2);
}
.panel-inner { 
  padding: 28px; 
  flex: 1;
  display: flex;
  flex-direction: column;
}

.headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.subhead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 70ch;
  line-height: 1.7;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.pill {
  font-size: 13px;
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 999px;
  background: var(--accent-primary-light);
  transition: all 0.3s ease;
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.18);
}
.pill strong { color: var(--accent-primary); font-weight: 700; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover { 
  text-decoration: none; 
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.2);
  border-color: rgba(22, 163, 74, 0.3);
}
.btn.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.btn.primary:hover { 
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
  transform: translateY(-2px);
}
.btn.ghost { 
  background: transparent; 
  border-color: var(--border);
}
.btn.ghost:hover {
  background: var(--accent-primary-light);
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--accent-primary);
}

.mini-card {
  background: var(--accent-primary-light);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.3s ease;
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.18);
}
.mini-card h3 { 
  margin: 0 0 8px; 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--accent-primary);
}
.mini-card p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.mini-card a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}
.mini-card a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.25);
}
.card:hover::before {
  opacity: 1;
}
.card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }
.card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent-secondary), var(--accent-tertiary)); }
.card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary)); }
.card h3 { 
  margin: 0 0 12px; 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--text);
}
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

.xp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.xp-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  transition: all 0.3s ease;
  position: relative;
}
.xp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.xp-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.25);
}
.xp-item:hover::before {
  opacity: 1;
}
.xp-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.xp-head .role { 
  font-weight: 750; 
  letter-spacing: 0.01em; 
  color: var(--text);
  font-size: 18px;
}
.xp-head .org { 
  color: var(--accent-primary); 
  font-weight: 650; 
  font-size: 16px;
}
.xp-head .meta { 
  color: var(--faint); 
  font-size: 13px; 
  background: var(--accent-primary-light);
  padding: 4px 10px;
  border-radius: 999px;
}
.xp-bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.xp-bullets li { margin: 8px 0; }
.xp-bullets li::marker {
  color: var(--accent-primary);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; } }

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}
.list li { margin: 8px 0; }
.list li strong {
  color: var(--accent-primary);
  font-weight: 650;
}

.competencies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 920px) { .competencies { grid-template-columns: 1fr; } }
.comp {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  transition: all 0.3s ease;
}
.comp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.25);
}
.comp h3 { 
  margin: 0 0 16px; 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--text);
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-primary-light);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}
.tag:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }

form .field { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-size: 14px; color: var(--text); font-weight: 500; }
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
  font-size: 15px;
}
input:hover, textarea:hover {
  border-color: rgba(22, 163, 74, 0.4);
}
input:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-light), 0 4px 12px rgba(22, 163, 74, 0.15);
  transform: translateY(-1px);
}
textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.status {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  display: none;
  font-weight: 500;
}
.status[aria-hidden="false"] { display: block; }
.status.success { 
  border-color: rgba(22, 163, 74, 0.4); 
  background: var(--accent-primary-light);
  color: var(--accent-dark);
}
.status.error { 
  border-color: rgba(239, 68, 68, 0.4); 
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

footer {
  padding: 32px 0 48px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.8);
  margin-top: 60px;
}

.fineprint { color: var(--faint); font-size: 13px; }
.fineprint a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}
.fineprint a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
