:root {
  --bg: #08141f;
  --bg-soft: #0d1f2f;
  --card: rgba(255, 255, 255, 0.06);
  --text: #e9f1f7;
  --muted: #b8c7d3;
  --primary: #19b8a6;
  --primary-dark: #129687;
  --accent: #f5a524;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(500px 500px at 85% 10%, rgba(25, 184, 166, 0.2), transparent 60%),
    radial-gradient(420px 420px at 10% 80%, rgba(245, 165, 36, 0.16), transparent 60%),
    linear-gradient(160deg, #08141f 0%, #0b1e2e 45%, #0b1825 100%);
  min-height: 100vh;
}

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

main section {
  padding: 8rem 9% 6rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 20, 31, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.logo {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
}

.logo span {
  color: var(--accent);
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  width: 2.8rem;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

nav {
  display: flex;
  gap: 2.4rem;
}

.nav-link {
  font-size: 1.55rem;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.home {
  min-height: 100vh;
  display: flex;
  gap: 5.2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 11rem;
}

.home-left,
.home-right {
  flex: 1 1 36rem;
}

.pfp-wrap {
  width: min(34rem, 78vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
}

.pfp-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: #0b1a28;
  border: 3px solid rgba(25, 184, 166, 0.5);
  box-shadow: 0 0 0 10px rgba(25, 184, 166, 0.12), var(--shadow);
}

.eyebrow {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.home-right h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.home-right h1 span {
  color: var(--accent);
}

.intro {
  font-size: 1.85rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.home-actions {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.1rem 2.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #062826;
  box-shadow: 0 8px 24px rgba(25, 184, 166, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #eafffc;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.socials-inline {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.2rem;
}

.socials-inline a,
.contact-socials a {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.8rem;
  transition: all 0.2s ease;
}

.socials-inline a:hover,
.contact-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.section-head {
  text-align: center;
  margin-bottom: 3.6rem;
}

.section-head p {
  font-size: 1.4rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
}

.projects,
.contact {
  background: linear-gradient(180deg, rgba(13, 31, 47, 0.45), rgba(13, 31, 47, 0.2));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--card);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1.7;
}

.view-btn {
  margin-top: 1.8rem;
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #062826;
  background: var(--accent);
}

.view-btn:hover {
  filter: brightness(0.95);
}

.timeline {
  max-width: 95rem;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}

.timeline-item a {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: stretch;
  gap: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--card);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-item a:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 184, 166, 0.6);
}

.timeline-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  background: rgba(25, 184, 166, 0.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-top: 0.4rem;
}

.timeline-content h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.timeline-content .year {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.timeline-content p {
  color: var(--muted);
  font-size: 1.55rem;
}

.contact-container {
  max-width: 105rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.contact-form,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-form {
  padding: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(5, 15, 23, 0.65);
  color: var(--text);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(25, 184, 166, 0.35);
  border-color: var(--primary);
}

.contact-form button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1.1rem;
  background: var(--primary);
  color: #062826;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--primary-dark);
  color: #ecfffd;
}

.contact-card {
  padding: 2rem;
}

.contact-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.4rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-socials {
  margin-top: 1.4rem;
  display: flex;
  gap: 1rem;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 1.4rem;
}

.scroll-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #062826;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 25;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 920px) {
  .menu-icon {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 22rem;
    padding: 1.2rem;
    background: rgba(8, 20, 31, 0.96);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  #menu-toggle:checked + .menu-icon + nav {
    display: flex;
  }

  .home {
    text-align: center;
  }

  .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .home-actions,
  .socials-inline {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  html {
    font-size: 56.25%;
  }

  main section,
  .site-header {
    padding-left: 5%;
    padding-right: 5%;
  }

  .timeline-item a {
    grid-template-columns: 1fr;
  }

  .timeline-icon {
    margin-top: 0;
  }
}
