:root{
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111111;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

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

a{
  color: inherit;
  text-decoration: none;
}

.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- HEADER ---------- */

.site-header{
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo{
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links{
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

/* ---------- HERO ---------- */

.hero{
  padding: 80px 0 40px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.kicker{
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

h1{
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 16px;
}

.subhead{
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.cta{
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 500;
}

.btn.primary{
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}

/* ---------- HERO CARD ---------- */

.hero-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-wrap{
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.hero-card-body{
  padding: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- SECTIONS ---------- */

.section{
  padding: 60px 0;
}

.section.alt{
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  margin-bottom: 24px;
}

.section-head h2{
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.section-head p{
  margin: 0;
  color: var(--muted);
}

/* ---------- CARDS ---------- */

.grid{
  display: grid;
  gap: 18px;
}

.cards{
  grid-template-columns: repeat(3, 1fr);
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card h3{
  margin: 0 0 6px;
}

.card ul{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.tags{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span{
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
}

/* ---------- SKILLS ---------- */

.skills{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.skill h4{
  margin: 0 0 6px;
}

/* ---------- CONTACT ---------- */

.contact{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ---------- FOOTER ---------- */

.site-footer{
  padding: 32px 0;
  color: var(--muted);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px){
  .hero-grid,
  .cards,
  .skills{
    grid-template-columns: 1fr;
  }

  .contact,
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Education cards: text on left, image on right */
.edu-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: center;
}

.edu-text {
  width: 100%;
}

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

.edu-image img {
  width: 100%;
  max-width: 280px;
  max-height: 200px;
  object-fit: contain;
  opacity: 0.9;
}

/* Mobile: stack image below text */
@media (max-width: 768px) {
  .edu-card {
    grid-template-columns: 1fr;
  }

  .edu-image {
    margin-top: 12px;
  }
}

.coursework {
  margin-top: 28px;   /* push dropdown down */
}

/* Experience cards: text left, logo right */
.exp-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center; /* prevents logo shifting */
}

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

.exp-image img {
  width: 100%;
  max-width: 240px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  .exp-card {
    grid-template-columns: 1fr;
  }

  .exp-image {
    margin-top: 12px;
  }
}


