/* Reset & base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fafafa;
  --color-text: #222;
  --color-accent: #0a66c2;
  --color-muted: #666;
  --max-width: 960px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Nav */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-social a {
  color: var(--color-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav-social a:hover,
.nav-social a:focus {
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.2s;
}

nav a:hover,
nav a:focus {
  color: var(--color-accent);
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
  scroll-margin-top: 5rem;
}

/* Full-width sections also need scroll offset */
.experience-section,
.volunteering-section {
  scroll-margin-top: 5rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  padding: 4rem 1rem;
}

.hero-card {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-info h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-headline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-summary {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-links a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}

.hero-links a:hover,
.hero-links a:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 600px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hero-links {
    justify-content: center;
  }
  .hero-info h1 {
    font-size: 1.75rem;
  }
}

h1, h2 {
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

/* Cards (experience / education items) */
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-dates {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  transition: background 0.2s;
}

.project-link:hover,
.project-link:focus {
  background: #004182;
}

.card h3 {
  margin-bottom: 0.25rem;
}

.card .meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Education & Organizations */
.edu-subheading {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;
}

.edu-subheading:first-of-type {
  margin-top: 0;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-card {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.edu-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.edu-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.15rem;
}

.edu-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.edu-degree {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 0.75rem;
}

.edu-dates {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.edu-activities {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0.4rem 0;
  font-style: italic;
}

.edu-body p:last-child {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.4rem;
  line-height: 1.6;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.org-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.org-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.org-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.org-role {
  display: inline-block;
  background: #e8eaf6;
  color: #283593;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.org-dates {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.org-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.org-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.org-link:hover,
.org-link:focus {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .edu-card {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Work Experience */
.experience-section {
  background: #f8f5fc;
  border-top: 1px solid #e0d4f0;
  border-bottom: 1px solid #e0d4f0;
  max-width: 100%;
  padding: 3rem 1rem;
}

.experience-section h2 {
  max-width: var(--max-width);
  margin: 0 auto 1rem;
}

.experience-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-card {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0d4f0;
  transition: box-shadow 0.2s;
}

.exp-card:hover {
  box-shadow: 0 4px 16px rgba(106, 27, 154, 0.1);
}

.exp-accent {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #7b1fa2, #ba68c8);
}

.exp-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.exp-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.exp-header h3 {
  font-size: 1.1rem;
}

.exp-company {
  font-size: 0.95rem;
  color: #7b1fa2;
  font-weight: 600;
}

.exp-meta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.exp-location {
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.exp-dates {
  letter-spacing: 0.02em;
}

.exp-body p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.exp-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  background: #7b1fa2;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.exp-link:hover,
.exp-link:focus {
  background: #4a148c;
}

/* Skills */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.skill-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid #7b1fa2;
  color: #7b1fa2;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.skill-badge:hover {
  background: #7b1fa2;
  color: #fff;
}

/* Volunteering */
.volunteering-section {
  background: #f0f7f0;
  border-top: 1px solid #d4e8d4;
  border-bottom: 1px solid #d4e8d4;
  max-width: 100%;
  padding: 3rem 1rem;
}

.volunteering-section h2 {
  max-width: var(--max-width);
  margin: 0 auto 1rem;
}

.volunteer-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.volunteer-card {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d4e8d4;
  transition: box-shadow 0.2s;
}

.volunteer-card:hover {
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}

.volunteer-accent {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #2e7d32, #66bb6a);
}

.volunteer-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.volunteer-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.volunteer-header h3 {
  font-size: 1.1rem;
}

.volunteer-org {
  font-size: 0.95rem;
  color: #2e7d32;
  font-weight: 600;
}

.volunteer-meta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.volunteer-cause {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.volunteer-dates {
  letter-spacing: 0.02em;
}

.volunteer-body p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Footer */
footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
}

.footer-connect {
  margin-bottom: 1.5rem;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.footer-links-row a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}

.footer-links-row a:hover,
.footer-links-row a:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #fff;
  transform: scale(1.15);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-social {
    gap: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  nav ul a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }
  .hero-photo img {
    width: 130px;
    height: 130px;
  }
  .hero-summary {
    font-size: 0.88rem;
  }

  .section {
    padding: 2rem 1rem;
  }

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

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

  .exp-header {
    flex-direction: column;
    gap: 0.2rem;
  }

  .volunteer-header {
    flex-direction: column;
    gap: 0.2rem;
  }

  .volunteer-meta,
  .exp-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .footer-social {
    gap: 1.5rem;
  }
}
