:root {
  --bg: #0b1020;
  --bg-soft: #121a2d;
  --panel: rgba(17, 24, 39, 0.8);
  --panel-strong: #101827;
  --card: #111b2e;
  --card-alt: #0e1729;
  --text: #ecf2ff;
  --muted: #a5b4cf;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7c9cff;
  --accent-2: #84e5d1;
  --shadow: 0 24px 60px rgba(10, 15, 30, 0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(132, 229, 209, 0.12), transparent 20%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 7rem 0;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.section-heading.center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 32, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
}

.brand img {
  display: block;
  width: 110px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transform: none;
  background: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  color: var(--muted);
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9c8cff);
  color: #fff;
  box-shadow: 0 18px 30px rgba(124, 156, 255, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 320px);
  align-items: center;
  gap: 1.25rem;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.07em;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.typewriter-prefix {
  color: var(--text);
}

.typewriter-text {
  color: var(--accent-2);
  min-height: 1.1em;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  padding-right: 0.1em;
}

.lead {
  margin-top: 1.35rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.hero-metrics strong {
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.profile-card {
  position: relative;
  width: min(100%, 320px);
  flex-shrink: 0;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(19, 30, 52, 0.9), rgba(13, 21, 36, 0.92));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.profile-image {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(10, 15, 24, 0.9);
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  opacity: 1;
  filter: none;
}


.profile-placeholder {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 800;
  background: rgba(7, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: -0.1em;
}

.profile-info {
  padding-top: 0.9rem;
}

.status {
  color: var(--accent-2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.profile-info h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.06em;
}

.profile-info p:last-child {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.about-content {
  display: grid;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.point-card,
.info-card,
.project-card {
  background: linear-gradient(180deg, rgba(17, 27, 46, 0.95), rgba(13, 19, 31, 0.8));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(7, 10, 16, 0.16);
}

.point-card {
  padding: 1.5rem;
}

.point-card span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
}

.point-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.2rem;
}

.point-card p,
.info-card p,
.project-card p,
.timeline-content p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.info-card {
  padding: 2rem 1.5rem;
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(124, 156, 255, 0.14);
  color: var(--accent-2);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.project-card.large {
  grid-column: span 1;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 280px;
  padding: 1.2rem;
  background:
    linear-gradient(140deg, rgba(124, 156, 255, 0.18), rgba(11, 16, 32, 0.9)),
    var(--card);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.project-card.large {
  min-height: 350px;
  grid-column: span 1;
}

.project-badge {
  display: inline-block;
  background: rgba(132, 229, 209, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(132, 229, 209, 0.22);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  gap: 0.5rem;
  padding-top: 0.25rem;
  min-width: 0;
}

.project-card.large .project-body {
  justify-content: flex-end;
}

.project-type {
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-body h3 {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  letter-spacing: -0.05em;
  margin: 0.2rem 0 0.4rem;
}

.project-body ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.project-body li {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline {
  display: grid;
  gap: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 18, 29, 0.7);
}

.year {
  color: var(--accent-2);
  font-weight: 700;
}

.timeline-content h3 {
  margin-bottom: 0.35rem;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.1), rgba(132, 229, 209, 0.05));
}

.contact-box h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-grid,
  .about-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card.large {
    grid-column: 1 / -1;
  }

  .contact-box {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 5rem 0;
  }

  .nav {
    position: relative;
    min-height: 72px;
    justify-content: center;
  }

  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .nav-toggle {
    display: flex;
    order: 3;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-metrics,
  .about-points,
  .card-grid,
  .project-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .project-grid {
    display: grid;
  }

  .project-card,
  .project-card.large {
    min-height: 240px;
  }

  .project-body {
    justify-content: space-between;
  }

  .project-body ul {
    gap: 0.4rem;
  }

  .project-body li {
    font-size: 0.75rem;
  }

  .timeline-item {
    display: grid;
  }

  .contact-box {
    padding: 2rem 1.25rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .profile-card {
    padding: 1rem;
  }

  .profile-image {
    height: 320px;
  }

  .profile-info h2 {
    font-size: 1.6rem;
  }

  .timeline-item {
    padding: 1rem;
  }
}
