.menu-btn {
  position: absolute;
  z-index: 3;
  right: 35px;
  top: 35px;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.menu-btn .btn-line {
  width: 28px;
  height: 3px;
  margin: 0 0 5px 0;
  background: #fff;
  transition: all 0.3s ease-out;
}
.menu-btn.close {
  transform: rotate(180deg);
}
.menu-btn.close .btn-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.close .btn-line:nth-child(2) {
  opacity: 0;
}
.menu-btn.close .btn-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu {
  position: fixed;
  top: 0;
  width: 100%;
  opacity: 0.9;
  visibility: hidden;
  overflow: hidden;
}
.menu.show {
  visibility: visible;
}
.menu-branding, .menu-nav {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
  float: left;
  width: 50%;
  height: 100vh;
  overflow: hidden;
}
.menu-nav {
  margin: 0;
  padding: 0;
  background: rgb(3.2507739938%, 4.9845201238%, 9.1021671827%);
  list-style: none;
  transform: translate3d(0, -100%, 0);
  transition: all 0.3s ease-out;
}
.menu-nav.show {
  transform: translate3d(0, 0, 0);
}
.menu-branding {
  background: #0f172a;
  transform: translate3d(0, 100%, 0);
  transition: all 0.3s ease-out;
}
.menu-branding.show {
  transform: translate3d(0, 0, 0);
}
.menu .portrait {
  width: 250px;
  height: 250px;
  background: url("../img/portrait.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: solid 3px #facc15;
}
.menu .nav-item {
  transform: translate3d(600px, 0, 0);
  transition: all 0.3s ease-out;
}
.menu .nav-item.show {
  transform: translate3d(0, 0, 0);
}
.menu .nav-item.current > a {
  color: #facc15;
}
.menu .nav-link {
  display: inline-block;
  position: relative;
  font-size: 30px;
  text-transform: uppercase;
  padding: 1 rem p;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease-out;
}
.menu .nav-link:hover {
  color: #facc15;
}

.nav-item:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-item:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-item:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-item:nth-child(4) {
  transition-delay: 0.4s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body#bg-img {
  background: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.88)), url(../img/background.jpg) center/cover no-repeat fixed;
  background-attachment: fixed;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 1rem;
  color: #cbd5e1;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.text-secondary {
  color: #facc15;
}

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  width: 100%;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-top: 9rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: #facc15;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.intro {
  max-width: 660px;
  font-size: 1.12rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.cta-group,
.social-links,
.meta-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-group {
  margin-bottom: 1.5rem;
}

.cta-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn {
  background: #facc15;
  color: #111827;
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.2);
}

.secondary-btn {
  background: transparent;
  color: #f8fafc;
}

.cta-btn:hover,
.secondary-btn:hover,
.social-links a:hover,
.project-card:hover,
.skill-card:hover,
.stat-card:hover,
.timeline-item:hover,
.info-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.5);
  transition: all 0.3s ease-out;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.94));
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
}

.hero-profile {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.5);
}

.hero-profile img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}

.demo-card {
  background: rgba(12, 18, 32, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.2rem;
  padding: 1rem;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal {
  display: flex;
  gap: 0.35rem;
}

.signal span {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.signal span:nth-child(1) {
  background: #f87171;
}

.signal span:nth-child(2) {
  background: #fbbf24;
}

.signal span:nth-child(3) {
  background: #34d399;
}

.code-window {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.code-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #cbd5e1;
  margin-bottom: 0.7rem;
}

.code-line:last-child {
  margin-bottom: 0;
}

.code-line .tag {
  color: #7dd3fc;
}

.code-line .value {
  color: #fcd34d;
}

.code-line .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  color: #86efac;
  font-size: 0.7rem;
}

.about-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.info-card,
.contact-card,
.skill-card,
.stat-card,
.timeline-item,
.project-card,
.education-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.3rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.info-card,
.contact-card,
.skill-card,
.stat-card,
.education-card {
  padding: 1.5rem;
}

.story {
  font-size: 1.05rem;
}

.meta-list {
  margin-top: 1.5rem;
  row-gap: 0.75rem;
}

.meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 0.9rem;
}

.meta-list li i {
  color: #facc15;
}

.stats-grid,
.skill-grid,
.project-grid,
.education-grid {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  text-align: left;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #facc15;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(148, 163, 184, 0.28);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.82rem;
  top: 1.5rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.12);
}

.job-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.job-company {
  color: #fff;
  font-weight: 700;
}

.job-role {
  color: #facc15;
  font-weight: 600;
}

.job-duration,
.job-location,
.job-type {
  color: #cbd5e1;
  font-size: 0.82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  color: #cbd5e1;
  font-size: 0.76rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-body {
  padding: 1.4rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.project-title-main {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.project-app-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  object-fit: cover;
  background: rgba(15, 23, 42, 0.85);
}

.project-category {
  color: #facc15;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.project-links a {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.project-links a i {
  font-size: 0.95rem;
}

.project-links a:hover {
  color: #fff;
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.08);
}

.skill-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skill-card h3 {
  margin-bottom: 1rem;
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-card li {
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  color: #cbd5e1;
  font-size: 0.76rem;
}

.education-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-card h3 {
  margin-bottom: 0.35rem;
}

.education-card .school {
  color: #facc15;
  font-weight: 700;
}

.education-card .date {
  color: #cbd5e1;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}

.contact-card .contact-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #cbd5e1;
}

.contact-item i {
  color: #facc15;
  width: 20px;
  margin-top: 0.2rem;
}

.contact-item a {
  color: #fff;
}

.contact-card .cta-group {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  color: #cbd5e1;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1170px) {
  .section {
    padding: 5rem 2rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .menu-branding, .menu-nav {
    float: none;
    width: 100%;
    min-height: 0;
  }
  .menu-nav {
    height: 75vh;
    transform: translate3d(-100%, 0, 0);
  }
  .menu-branding {
    height: 25vh;
    transform: translate3d(100%, 0, 0);
  }
  .menu-branding .portrait {
    width: 150px;
    height: 150px;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }
  .hero .hero-copy {
    text-align: center;
  }
  .hero .cta-group,
  .hero .social-links {
    justify-content: center;
  }
  .hero-panel {
    max-width: 520px;
    margin: 0 auto;
  }
  .about-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-grid,
  .project-grid,
  .skill-grid,
  .education-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 500px) {
  body {
    font-size: 15px;
  }
  .menu-btn {
    right: 20px;
    top: 20px;
  }
  .hero {
    min-height: 100vh;
    padding-top: 5rem;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 11vw, 4.1rem);
    line-height: 1.05;
  }
  .hero-copy,
  .hero-panel {
    width: 100%;
    max-width: 100%;
  }
  .section {
    padding: 3.5rem 1.1rem;
  }
  .stat-card,
  .project-card,
  .skill-card,
  .timeline-item,
  .info-card,
  .contact-card {
    padding: 1.2rem;
  }
  .cta-btn,
  .secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .cta-group,
  .social-links {
    flex-wrap: wrap;
  }
}
