

/* Layout spacing */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }

/* Text justification */
#about p {
  text-align: justify;
}

.card p {
  text-align: justify;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -999px; top: -999px; background: #f8f9fa; color: #2d3748; padding: .5rem 1rem;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); z-index: 999; }

body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text); background: linear-gradient(180deg, #f7fafc, #edf2f7 30%);
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { 
  font-size: 1.4rem; 
  margin: 0; 
  letter-spacing: .5px; 
  color: #2d3748;
  font-weight: 700;
  background: linear-gradient(135deg, #4299e1, #3182ce);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.nav { 
  list-style: none; 
  display: flex; 
  gap: 1.5rem; 
  margin: 0; 
  padding: 0; 
  margin-left: auto;
}
.nav a { 
  padding: .6rem 1rem; 
  border-radius: 8px; 
  color: #4a5568;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
.nav a:focus, .nav a:hover { 
  background: #edf2f7; 
  outline: 2px solid transparent; 
  color: #2d3748;
  transform: translateY(-1px);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4299e1, #3182ce);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav a:hover::after {
  width: 80%;
}

/* Hero */
.hero {
  padding: calc(var(--space-6) + 10vh) 0 var(--space-6);
  background: radial-gradient(600px 300px at 20% 0%, rgba(99, 179, 237, 0.15), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: var(--space-4);
  align-items: center;
}
.lead { color: var(--muted); max-width: 55ch; }
.profile figcaption { color: var(--muted); font-size: .9rem; margin-top: .5; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.card-body {
  padding: var(--space-2);
  display: grid;
  gap: .4rem;
}
.card h3 { margin: 0 0 .2rem 0; }
.card p { color: var(--muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #4299e1, #3182ce);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
  transition: all 0.2s ease;
}
.btn:hover { 
  filter: brightness(1.1); 
  text-decoration: none; 
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(66, 153, 225, 0.4);
}
.btn-outline {
  border: 1px solid #4299e1;
  background: transparent;
  color: var(--text);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: rgba(66, 153, 225, 0.08);
  transform: translateY(-1px);
}

/* Chips */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chips li {
  padding: .45rem .7rem;
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  border-radius: 999px;
  color: #4a5568;
  transition: all 0.2s ease;
}
.chips li:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--muted);
  padding: var(--space-4) var(--space-2);
  border-top: 1px solid #e2e8f0;
  background: #f7fafc;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }

}
