
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b1120;
  --bg-alt: #0f1728;
  --surface: #121c30;
  --border: #233149;
  --text: #edf3ff;
  --muted: #9aa9bf;
  --accent: #62e6d0;
  --blue: #7ca8ff;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(35, 49, 73, 0.7);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font: 700 1.6rem 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover,
.footer a:hover {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text) !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-block: 80px;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 12px rgba(98, 230, 208, 0.7);
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 5.8vw, 5.1rem);
  letter-spacing: -3px;
}

.hero-description {
  color: var(--muted);
  max-width: 530px;
  margin-top: 24px;
  font-size: 1.04rem;
}

.hero-actions, .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--accent);
  color: #07151b;
}

.button-primary:hover {
  background: #8df2e2;
}

.button-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 40px;
}

/* Abstract developer illustration */
.hero-visual {
  min-height: 400px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 270px;
  height: 270px;
  background: rgba(98, 230, 208, 0.1);
  filter: blur(75px);
  z-index: -1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(124, 168, 255, 0.3);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 340px;
  height: 180px;
}

.orbit-two {
  width: 280px;
  height: 340px;
  transform: rotate(35deg);
}

.visual-core {
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 230, 208, 0.6);
  border-radius: 32px;
  background: linear-gradient(145deg, #172941, #101b2d);
  box-shadow: 0 0 70px rgba(98, 230, 208, 0.13);
  font: 700 3rem 'Space Grotesk', sans-serif;
  color: var(--accent);
  transform: rotate(-5deg);
}

.floating-tag {
  position: absolute;
  background: #142238;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 0.8rem;
  box-shadow: 0 8px 30px #0003;
}

.tag-one { top: 50px; left: 12%; }
.tag-two { top: 115px; right: 0; }
.tag-three { bottom: 95px; left: 0; }
.tag-four { bottom: 45px; right: 8%; }

.section {
  padding-block: 105px;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid rgba(35, 49, 73, 0.6);
  padding-block: 100px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 45px;
}

.section-heading h2,
.contact-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -1.5px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 65px;
  align-items: start;
}

.about-copy {
  color: var(--muted);
}

.about-copy p + p {
  margin-top: 18px;
}

.education-card, .experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-icon {
  font-size: 1.6rem;
}

.card-label {
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.education-card h3, .experience-card h3 {
  font-size: 1.3rem;
  margin-block: 8px;
}

.muted {
  color: var(--muted);
}

.card-footer {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  color: var(--accent);
  font-size: 0.84rem;
}

.skills {
  margin-top: 60px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-list span {
  display: inline-block;
  background: rgba(124, 168, 255, 0.07);
  color: #c7d8f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.small {
  font-size: 0.78rem;
  margin-top: 16px;
}

.experience-card {
  max-width: 850px;
}

.experience-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.company {
  color: var(--accent);
  margin-top: 8px;
}

.work-type {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.date {
  margin-block: 18px;
  font-size: 0.88rem;
}

.experience-card > p:not(.eyebrow):not(.company):not(.date) {
  color: var(--muted);
}

.experience-list, .project-features {
  padding-left: 20px;
  margin-block: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-list li, .project-features li {
  padding-left: 5px;
  margin-bottom: 8px;
}

.experience-list li::marker,
.project-features li::marker {
  color: var(--accent);
}

.section-intro {
  margin-top: 18px;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(98, 230, 208, 0.6);
}

.project-visual {
  height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-reserve {
  background: linear-gradient(135deg, #142d42, #142139);
}

.visual-ai {
  background: linear-gradient(135deg, #252443, #17273c);
}

.visual-epaper {
  background: linear-gradient(135deg, #263448, #152536);
}

.project-number {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: #b2c6dd;
}

.mini-window {
  width: 220px;
  background: #0e192a;
  border: 1px solid #3b526b;
  padding: 15px;
  border-radius: 10px;
  transform: rotate(-4deg);
}

.mini-dots {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
}

.mini-line {
  height: 6px;
  background: #3b526b;
  border-radius: 5px;
  margin-bottom: 10px;
}

.mini-line.short {
  width: 65%;
  margin-top: 13px;
}

.mini-blocks {
  display: flex;
  gap: 8px;
}

.mini-blocks i {
  flex: 1;
  height: 45px;
  border-radius: 4px;
  background: rgba(98, 230, 208, 0.2);
  border: 1px solid rgba(98, 230, 208, 0.3);
}

.scan-frame {
  width: 150px;
  height: 165px;
  border: 1px solid rgba(98, 230, 208, 0.65);
  border-radius: 14px;
  padding: 17px;
  position: relative;
  background: rgba(11, 17, 32, 0.55);
  color: var(--accent);
  font-size: 0.65rem;
  transform: rotate(4deg);
}

.scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 64px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.text-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.text-lines i {
  height: 4px;
  background: #667b99;
  border-radius: 4px;
}

.text-lines i:nth-child(even) {
  width: 75%;
}

.scan-result {
  display: block;
  margin-top: 20px;
  font-size: 0.55rem;
}

.paper-preview {
  width: 190px;
  height: 170px;
  background: #e6e6dc;
  color: #1b2938;
  padding: 13px;
  transform: rotate(-3deg);
  box-shadow: 0 15px 35px #0004;
}

.paper-masthead {
  font: 700 0.75rem Georgia, serif;
  text-align: center;
  border-bottom: 2px solid #1b2938;
  padding-bottom: 6px;
}

.paper-title {
  height: 10px;
  background: #24364b;
  margin-top: 10px;
  width: 90%;
}

.paper-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.paper-content i {
  height: 24px;
  background: #a9b2ba;
}

.paper-footer {
  font-size: 0.5rem;
  margin-top: 9px;
  text-align: center;
}

.project-body {
  padding: 26px;
}

.project-category {
  color: var(--accent);
  letter-spacing: 1.5px;
  font-size: 0.68rem;
  font-weight: 700;
}

.project-body h3 {
  font-size: 1.55rem;
  margin-block: 10px 14px;
}

.project-body > p:not(.project-category):not(.project-note) {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-body h4 {
  font-size: 0.83rem;
  margin-top: 22px;
}

.project-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.project-links {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.project-links a {
  color: var(--accent);
  font-weight: 700;
}

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

.link-placeholder {
  color: var(--muted);
}

.contact-content {
  text-align: center;
  max-width: 720px;
}

.contact-content > p:not(.eyebrow):not(.small) {
  color: var(--muted);
  margin-top: 20px;
}

.contact-links {
  justify-content: center;
}

.placeholder-warning {
  color: #a8b7cb;
}

.footer {
  border-top: 1px solid var(--border);
  padding-block: 25px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer p, .footer-inner > a:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Responsive layouts */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 75px;
    gap: 10px;
  }

  .hero-visual {
    min-height: 340px;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 75px;
  }

  .section-alt {
    padding-block: 75px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav {
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
    letter-spacing: -2px;
  }

  .hero {
    min-height: auto;
    padding-block: 70px 30px;
  }

  .hero-meta {
    gap: 12px;
  }

  .hero-visual {
    min-height: 300px;
    transform: scale(0.9);
  }

  .experience-top {
    flex-direction: column;
  }

  .experience-card, .project-body {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Personal photo in the hero section */
.hero-visual {
  min-height: 400px;
}


/* Circular profile photo */
.profile-frame {
  width: 280px;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 2px solid rgba(98, 230, 208, 0.65);
  border-radius: 50%;
  background: linear-gradient(145deg, #193047, #101827);
  box-shadow: 0 0 45px rgba(98, 230, 208, 0.12);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
}

/* Keep the surrounding technology labels */
.hero-visual {
  min-height: 400px;
  position: relative;
}

@media (max-width: 800px) {
  .profile-frame {
    width: 230px;
  }

  .hero-visual {
    min-height: 340px;
  }
}
