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

html,
body {
height: 100%;
}

/* ========== Base typography & body ========== */
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

/* Centered page container used by most sections */
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: block;
}

/* ========== Header / Navigation ========== */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  z-index: 100;
  background: transparent;
}

.site-header .inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-list li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
}

.nav-list li a:hover,
.nav-list li a:focus {
  background: rgba(240, 234, 234, 0.911);
  outline: none;
}

.nav-list li a:active {
  transform: translateY(1px);
}

.nav-list li a.cta {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #fff;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35)
    ),
    url("images/background.png"),
    radial-gradient(
      30% 40% at 10% 20%,
      rgba(255, 255, 255, 0.06),
      transparent 15%
    ),
    radial-gradient(
      40% 50% at 85% 60%,
      rgba(255, 255, 255, 0.05),
      transparent 20%
    ),
    radial-gradient(
      50% 60% at 50% 90%,
      rgba(255, 255, 255, 0.035),
      transparent 25%
    );
  background-size: cover, cover, auto;
  background-position: center center, center center, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  filter: blur(40px) saturate(120%);
  opacity: 0.98;
  mix-blend-mode: screen;
}

.container {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 1rem 10rem;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.hero-title {
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 7vw, 5.2rem);
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

/* Hero CTAs */
.hero-ctas {
  display: inline-flex;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.scroll-hint {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1.25rem;
}

/* Partners row */
.partners {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2.25rem;
  display: flex;
  gap: 2.25rem;
  z-index: 10;
  align-items: center;
}

.partner {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ========== Education ========== */
.education-section {
  padding: 4rem 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25em;
  margin-bottom: 1rem;
}

.education-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.edu-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.edu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.35rem;
}

.edu-degree {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.edu-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
}

.edu-desc {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* ========== Skills ========== */
.skills-section {
  padding: 3rem 0;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.skills-list li {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

/* ========== Projects (cards) ========== */
.projects-section {
  padding: 4rem 0;
}

.cards {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  flex: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.card + .card {
  margin-left: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.85rem;
}

.card-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Author block inside project cards */
.author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.author-name {
  font-weight: 700;
}

.author-role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.project-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-btn:hover,
.project-btn:focus {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Make sure paragraphs inside cards reset margin */
.card p {
  margin: 0;
}

/* ========== Contact form styling ========== */
.contact-section {
  padding: 4rem 0;
}

.contact-section .inner {
  display: flex;
  justify-content: center;
}

.contact-section .section-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

#contact-form {
  max-width: 720px;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) inset;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

button.btn {
  cursor: pointer;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
}

button.btn.primary {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

button.btn.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.form-row.button-row {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== About section ========== */
.about-section {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: center;
}

.about-left {
  padding-right: 1rem;
}

.about-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
  font-style: italic;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.about-desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 54ch;
  margin-bottom: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.work-list {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1rem;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
}

.work-row .role {
  font-weight: 700;
}

.work-row .company {
  opacity: 0.9;
}

.work-row .years {
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
}

.about-right {
  display: flex;
  justify-content: center;
}

.portrait-wrap {
  width: 360px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(20%) contrast(95%);
  transform: scale(1.02);
}

/* ========== Responsive helpers ========== */
@media (max-width: 1100px) {
  .education-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 320px;
  }

  .portrait-wrap {
    width: 320px;
  }
}

@media (max-width: 980px) {
  .cards {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .inner {
    padding: 0 1rem;
  }

  .nav-list {
    display: none;
  }

  .hero-sub {
    padding: 0 1rem;
  }

  .partners {
    gap: 1rem;
  }

  .education-list {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-right {
    order: -1;
  }

  .portrait-wrap {
    width: 100%;
    transform: none;
  }

  .about-title {
    font-size: 2rem;
  }

  #contact-form {
    padding: 1.25rem;
  }

  label {
    font-size: 0.9rem;
  }
}