:root {
  --bg: #090b12;
  --bg-soft: #101426;
  --card: #121a2f;
  --text: #f3f6ff;
  --muted: #a8b0c5;
  --accent: #7c8dff;
  --accent-2: #56d4ff;
  --border: #26314f;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans,
    sans-serif;
  background: radial-gradient(circle at top right, #182449 0%, var(--bg) 45%) fixed;
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 12, 22, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 5rem 0 3.5rem;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.accent {
  color: var(--accent);
}

.hero-text {
  color: var(--muted);
  max-width: 60ch;
  margin: 1rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #050812;
  box-shadow: 0 10px 28px rgba(89, 153, 255, 0.28);
}

.btn-outline {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.socials {
  margin-top: 1.1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.email-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.socials a,
.project-links a,
.footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.email-chooser {
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(165deg, var(--card), #0f172b);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.email-chooser.show {
  display: flex;
}

.btn-small {
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.hero-card {
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  align-self: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero-card-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 2.2rem 0;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.8rem;
}

.section p {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chips span {
  border: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #d8def2;
  background: rgba(124, 141, 255, 0.08);
  font-weight: 500;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: linear-gradient(165deg, var(--card), #0f172b);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.project-card h3 {
  margin: 0 0 0.5rem;
}

.project-card p {
  min-height: 84px;
}

.project-links {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

/* Work Experience Timeline */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.timeline-item {
  background: linear-gradient(165deg, var(--card), #0f172b);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-color: var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.timeline-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: var(--text);
}

.timeline-header .company {
  font-weight: 700;
  color: var(--accent-2);
}

.timeline-header .location {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-header .date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(124, 141, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 141, 255, 0.2);
}

.experience-bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.experience-bullets li {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.experience-bullets li:last-child {
  margin-bottom: 0;
}

.contact-form {
  max-width: 680px;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: #dce3f8;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #0c1223;
}

input:focus,
textarea:focus {
  outline: 2px solid #4c71ff;
  outline-offset: 1px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0b1020;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.2rem;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .email-chooser {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 0.25rem;
    width: 100%;
    max-width: 280px;
  }
}
