:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5b6470;
  --line: #e6e8ee;
  --accent: #2563eb;      /* accessible blue */
  --accent-2: #0ea5e9;    /* soft cyan for subtle accents */
  --shadow: 0 8px 30px rgba(16,24,40,.06);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Containers & layout */
.container{ max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,248,251,.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav{ display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo{
  font-weight: 800; letter-spacing: .5px; text-decoration: none; color: var(--text);
}
.menu-btn{
  display: none; border: 1px solid var(--line); background: var(--card);
  padding: .4rem .6rem; border-radius: 8px; cursor: pointer;
}
.nav-links{ list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-links a{
  text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px;
}
.nav-links a:hover{ background: #eef2ff; color: var(--accent); }

/* Buttons */
.btn{
  background: var(--accent); color: #fff; text-decoration: none;
  border: none; padding: .8rem 1.2rem; border-radius: 10px; font-weight: 600; cursor: pointer;
  display: inline-block;
}
.btn:hover{ background: #1d4ed8; }
.btn--ghost{
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
}
.btn--small{ padding: .5rem .8rem; }

/* Hero */
.hero{ padding: 84px 20px 40px; display: grid; place-items: center; text-align: center; }
.hero__content{ max-width: 750px; }
.hero h1{ font-size: clamp(28px, 5vw, 44px); margin: 0 0 10px; }
.lead{ color: var(--muted); font-size: 1.1rem; }
.hero__actions{ display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

/* Sections */
.section{ padding: 56px 20px; }
.section__title{
  text-align: center; font-size: 1.8rem; margin: 0 0 24px; letter-spacing: .2px;
}

/* About */
.about{
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.about__img{
  width: 180px; height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
}
.about__text{ margin: 0; color: var(--muted); }

/* Skills */
.skills{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.card{
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 10px; }
.list{ margin: 0; padding-left: 18px; }

/* Projects */
.projects{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.project__img{
  width: 100%; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
}
.project__body .meta{ color: var(--muted); font-size: .95rem; }

/* Experience (timeline) */
.timeline{ display: grid; gap: 16px; }
.timeline__item{
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.timeline__head{ display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.timeline__head h3{ margin: 0; }
.timeline__head span{ color: var(--muted); font-size: .95rem; }

/* Education */
.edu li{ margin-bottom: 6px; }

/* Contact */
.form{
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
  max-width: 640px; margin: 0 auto;
}
.form__row{ display: grid; gap: 6px; margin-bottom: 12px; }
.form input, .form textarea{
  width: 100%; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.form input:focus, .form textarea:focus{ outline: 2px solid #bfdbfe; border-color: #bfdbfe; }

.social{
  display: flex; gap: 16px; justify-content: center; margin-top: 14px;
}
.social a{ color: var(--accent); text-decoration: none; }
.social a:hover{ text-decoration: underline; }

/* Footer */
.footer{ text-align: center; padding: 32px 20px; color: var(--muted); }

/* Reveal animations (elements only, not background) */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible{ opacity: 1; transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ transition: none; transform: none; opacity: 1; }
}

/* Responsive */
@media (max-width: 900px){
  .projects{ grid-template-columns: 1fr 1fr; }
  .skills{ grid-template-columns: 1fr; }
}
@media (max-width: 700px){
  .about{ grid-template-columns: 1fr; text-align: center; }
  .about__img{ margin: 0 auto; }
}
@media (max-width: 780px){
  .menu-btn{ display: inline-block; }
  .nav-links{
    position: absolute; right: 20px; top: 64px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 10px; display: none; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
  }
  .nav-links a{ color: var(--text); }
  .nav-links.show{ display: flex; }
}
