/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.7;
}

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

/* =========================
   HEADER
========================= */

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

nav h1 {
  font-size: 1.3rem;
  font-weight: 700;
}

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

nav a {
  text-decoration: none;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

nav a:hover {
  color: white;
}

/* =========================
   HERO
========================= */

#hero {
  padding: 7rem 0 5rem;
}

#hero h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

#hero p {
  max-width: 700px;
  font-size: 1.1rem;
  color: #94a3b8;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 5rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* =========================
   ABOUT
========================= */

#about p {
  max-width: 800px;
  color: #cbd5e1;
}

/* =========================
   CARDS
========================= */

.job,
.school,
.project-card,
.skills-grid > div {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.job:hover,
.school:hover,
.project-card:hover,
.skills-grid > div:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================
   EDUCATION / EXPERIENCE
========================= */

.school,
.job {
  margin-bottom: 1.5rem;
}

.job h3,
.school h3 {
  margin-bottom: 0.5rem;
}

.job-meta,
.school span {
  display: block;
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.job ul,
.school ul {
  margin-left: 1.2rem;
}

.skills {
  margin-top: 1rem;
  color: #94a3b8;
}

/* =========================
   SKILLS
========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skills-grid h3 {
  margin-bottom: 0.8rem;
}

/* =========================
   PROJECTS
========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-meta {
  display: block;
  margin-bottom: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.tech {
  margin-top: 1rem;
}

.tech span {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  margin: 0.2rem;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #60a5fa;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

/* =========================
   CONTACT
========================= */

#contact p {
  margin-bottom: 0.5rem;
}

#contact a {
  color: #60a5fa;
  text-decoration: none;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 3rem 0;
  text-align: center;
  color: #64748b;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #hero {
    padding-top: 5rem;
  }
}