/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* ===== Base ===== */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #0b1220;
    color: #e6edf6;
  }

  img {
    display: block;
    max-width: 100%;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  /* ===== Layout ===== */
  .container {
    width: min(1100px, 92%);
    margin: 0 auto;
  }

  .section {
    padding: 70px 0;
  }

  .section.alt {
    background: #0f1a2e;
  }

  .title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .text {
    color: rgba(230, 237, 246, 0.85);
    max-width: 850px;
    font-size: 16px;
    line-height: 1.75;
  }

  .sub-title {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: rgba(230, 237, 246, 0.92);
  }

  /* ===== Header ===== */
  .header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 18, 32, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 237, 246, 0.08);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

  .logo {
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .links {
    display: flex;
    gap: 16px;
  }

  .links a {
    padding: 8px 10px;
    border-radius: 10px;
    color: rgba(230, 237, 246, 0.8);
  }

  .links a:hover {
    background: rgba(230, 237, 246, 0.08);
    color: #ffffff;
  }

  /* ===== Hero ===== */
  .hero {
    padding: 70px 0 40px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: center;
  }

  .tag {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(230, 237, 246, 0.1);
    margin-bottom: 10px;
  }

  .hero-text h1 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .subtitle {
    color: rgba(230, 237, 246, 0.85);
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
  }

  .actions {
    display: flex;
    gap: 12px;
    margin: 18px 0 12px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    background: #2f81f7;
    border: 1px solid #2f81f7;
    color: #0b1220;
  }

  .btn:hover {
    opacity: 0.92;
  }

  .btn.outline {
    background: transparent;
    color: #e6edf6;
    border: 1px solid rgba(230, 237, 246, 0.22);
  }

  .btn.outline:hover {
    background: rgba(230, 237, 246, 0.08);
  }

  .social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .social a {
    font-weight: 800;
    color: rgba(230, 237, 246, 0.8);
  }

  .social a:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  /* ===== Hero Card ===== */
  .hero-card {
    background: rgba(230, 237, 246, 0.04);
    border: 1px solid rgba(230, 237, 246, 0.1);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

.avatar {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 12px;
}
  .hero-card-info h3 {
    margin-bottom: 6px;
  }

  .hero-card-info p {
    color: rgba(230, 237, 246, 0.78);
  }

  /* ===== About Cards ===== */
  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
  }

  .card {
    background: rgba(230, 237, 246, 0.04);
    border: 1px solid rgba(230, 237, 246, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  }

  .card h3 {
    margin-bottom: 6px;
  }

  .card p {
    color: rgba(230, 237, 246, 0.78);
  }

  /* ===== Skills ===== */
  .skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .skills li {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(230, 237, 246, 0.1);
    border: 1px solid rgba(230, 237, 246, 0.12);
    font-weight: 800;
    font-size: 13px;
    color: rgba(230, 237, 246, 0.88);
  }

  /* ===== Projects ===== */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 16px;
    justify-items: stretch;
  }

  .project {
    background: rgba(230, 237, 246, 0.04);
    border: 1px solid rgba(230, 237, 246, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    width: min(760px, 100%);
  }

  .project.featured {
    border: 1px solid rgba(47, 129, 247, 0.35);
    margin: 0;
  }

  .project-image {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #0b1220;
    border: 1px solid rgba(230, 237, 246, 0.1);
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
  }

  .pill {
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(47, 129, 247, 0.15);
    border: 1px solid rgba(47, 129, 247, 0.25);
    color: rgba(230, 237, 246, 0.92);
  }

  .project p {
    color: rgba(230, 237, 246, 0.78);
  }

  .demo-note {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
  }

  .project-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(230, 237, 246, 0.18);
    font-weight: 900;
    color: rgba(230, 237, 246, 0.9);
    background: transparent;
  }

  .link:hover {
    background: rgba(230, 237, 246, 0.08);
    border-color: rgba(230, 237, 246, 0.28);
  }

  /* ===== Contact ===== */
  .contact-links {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    max-width: 520px;
  }

  .contact-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(230, 237, 246, 0.12);
    background: rgba(230, 237, 246, 0.04);
    font-weight: 900;
    color: rgba(230, 237, 246, 0.9);
  }

  .contact-item:hover {
    background: rgba(230, 237, 246, 0.08);
  }

  /* ===== Footer ===== */
  .footer {
    padding: 20px 0;
    border-top: 1px solid rgba(230, 237, 246, 0.08);
    background: #0b1220;
  }

  .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(230, 237, 246, 0.75);
  }

  .to-top {
    font-weight: 900;
    color: rgba(230, 237, 246, 0.85);
  }

  .to-top:hover {
    text-decoration: underline;
  }

  /* ===== Responsive ===== */
  @media (max-width: 900px) {
    .hero-grid {
      grid-template-columns: 1fr;
    }

    .hero-text h1 {
      font-size: 38px;
    }

    .cards {
      grid-template-columns: 1fr;
    }

    .hero-card {
      margin: 0;
    }
  }

  @media (max-width: 520px) {
    .links {
      display: none;
    }

    .hero-text h1 {
      font-size: 34px;
    }

    .actions {
      flex-direction: column;
      align-items: stretch;
    }

    .project-links {
      flex-direction: column;
      align-items: stretch;
    }

    .project-image {
      max-height: 220px;
    }
  }
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #0b1220;
  color: #e6edf6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Layout ===== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: #0f1a2e;
}

.title {
  font-size: 28px;
  margin-bottom: 10px;
}

.text {
  color: rgba(230, 237, 246, 0.85);
  max-width: 850px;
  font-size: 16px;
  line-height: 1.75;
}

.sub-title {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(230, 237, 246, 0.92);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 237, 246, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.links {
  display: flex;
  gap: 16px;
}

.links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(230, 237, 246, 0.8);
}

.links a:hover {
  background: rgba(230, 237, 246, 0.08);
  color: #ffffff;
}

/* ===== Hero ===== */
.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}

.tag {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(230, 237, 246, 0.1);
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.subtitle {
  color: rgba(230, 237, 246, 0.85);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  background: #2f81f7;
  border: 1px solid #2f81f7;
  color: #0b1220;
}

.btn:hover {
  opacity: 0.92;
}

.btn.outline {
  background: transparent;
  color: #e6edf6;
  border: 1px solid rgba(230, 237, 246, 0.22);
}

.btn.outline:hover {
  background: rgba(230, 237, 246, 0.08);
}

.social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social a {
  font-weight: 800;
  color: rgba(230, 237, 246, 0.8);
}

.social a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== Hero Card ===== */
.hero-card {
  background: rgba(230, 237, 246, 0.04);
  border: 1px solid rgba(230, 237, 246, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  max-width: 280px;
  margin: 0 auto;
}

.avatar {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.hero-card-info h3 {
  margin-bottom: 6px;
}

.hero-card-info p {
  color: rgba(230, 237, 246, 0.78);
}

/* ===== About Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: rgba(230, 237, 246, 0.04);
  border: 1px solid rgba(230, 237, 246, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: rgba(230, 237, 246, 0.78);
}

/* ===== Skills ===== */
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.skills li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(230, 237, 246, 0.1);
  border: 1px solid rgba(230, 237, 246, 0.12);
  font-weight: 800;
  font-size: 13px;
  color: rgba(230, 237, 246, 0.88);
}

/* ===== Projects ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 16px;
  justify-items: stretch;
}

.project {
  background: rgba(230, 237, 246, 0.04);
  border: 1px solid rgba(230, 237, 246, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  width: min(760px, 100%);
}

.project.featured {
  border: 1px solid rgba(47, 129, 247, 0.35);
  margin: 0;
}

.project-image {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #0b1220;
  border: 1px solid rgba(230, 237, 246, 0.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.pill {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 129, 247, 0.15);
  border: 1px solid rgba(47, 129, 247, 0.25);
  color: rgba(230, 237, 246, 0.92);
}

.project p {
  color: rgba(230, 237, 246, 0.78);
}

.demo-note {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(230, 237, 246, 0.18);
  font-weight: 900;
  color: rgba(230, 237, 246, 0.9);
  background: transparent;
}

.link:hover {
  background: rgba(230, 237, 246, 0.08);
  border-color: rgba(230, 237, 246, 0.28);
}

/* ===== Contact ===== */
.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  max-width: 520px;
}

.contact-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(230, 237, 246, 0.12);
  background: rgba(230, 237, 246, 0.04);
  font-weight: 900;
  color: rgba(230, 237, 246, 0.9);
}

.contact-item:hover {
  background: rgba(230, 237, 246, 0.08);
}

/* ===== Footer ===== */
.footer {
  padding: 20px 0;
  border-top: 1px solid rgba(230, 237, 246, 0.08);
  background: #0b1220;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(230, 237, 246, 0.75);
}

.to-top {
  font-weight: 900;
  color: rgba(230, 237, 246, 0.85);
}

.to-top:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin: 0;
  }
}

@media (max-width: 520px) {
  .links {
    display: none;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-links {
    flex-direction: column;
    align-items: stretch;
  }

  .project-image {
    max-height: 220px;
  }
}
