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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #050816;
  color: #e5e7eb;
  line-height: 1.6;
}

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

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

/* ---------- LAYOUT ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 22, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #a5b4fc;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
  opacity: 0.9;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  width: 100%;
}

main {
  padding-bottom: 3rem;
}

section {
  padding: 3.5rem 0;
  scroll-margin-top: 80px;
}

/* ---------- HERO ---------- */
.hero-wrapper {
  padding-top: 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-title span {
  background: linear-gradient(120deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: #9ca3af;
  max-width: 32rem;
  margin-bottom: 1.3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.7rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-outline:hover {
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.hero-right {
  justify-self: center;
}

.hero-card {
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  border-radius: 1.5rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  max-width: 360px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 0.9rem;
}

.hero-metrics {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.87rem;
}

.metric-label {
  color: #9ca3af;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  font-weight: 600;
  color: #e5e7eb;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.stack-badges span {
  font-size: 0.75rem;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.hero-note {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.8rem;
}

.mini-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.about-text {
  font-size: 0.96rem;
  color: #d1d5db;
}

.about-text p + p {
  margin-top: 0.9rem;
}

.about-edu {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-top: 0.4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 0.3rem;
}

.skill-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.86rem;
}

.skill-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.skill-items {
  color: #9ca3af;
  font-size: 0.82rem;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1rem;
  padding: 1rem 1rem 1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

.project-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.project-tagline {
  font-size: 0.83rem;
  color: #9ca3af;
}

.project-desc {
  font-size: 0.87rem;
  color: #d1d5db;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.project-tech span {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.project-links {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.project-links a {
  opacity: 0.85;
}

.project-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.muted-text {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ---------- CONTACT ---------- */
.contact-card {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 65%);
  border-radius: 1.2rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  max-width: 520px;
}

.contact-card p {
  font-size: 0.94rem;
  color: #d1d5db;
  margin-bottom: 0.9rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.contact-label {
  color: #9ca3af;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact-value a {
  color: #38bdf8;
}

/* contact form */
.contact-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
}

.form-group label {
  color: #e5e7eb;
}

.form-group input,
.form-group textarea {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.4rem 0 1.8rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.coming-soon {
  font-size: 0.85rem;
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
  padding: 0px 17px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  /* ----- NAVBAR ----- */
  .nav {
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  /* ----- HERO ----- */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-right {
    order: -1;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tags,
  .hero-actions {
    justify-content: center;
  }

  /* ----- ABOUT ----- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  /* ----- CONTACT ----- */
  .contact-card {
    max-width: 100%;
  }

  /* ----- SECTION SPACING ----- */
  section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* ----- HERO ----- */
  .hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  /* ----- ABOUT ----- */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  /* ----- PROJECTS ----- */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ----- CONTACT ----- */
  .contact-card {
    max-width: 480px;
  }
}

