:root {
  --bg: #080b16;
  --panel: #101525;
  --panel2: #0d1220;
  --text: #eef2ff;
  --muted: #a7afc5;
  --line: #252c40;
  --accent: #8b7cff;
  --accent2: #5eead4;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

/* =========================
   NAVIGATION
========================= */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 22, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand span,
.hero h1 span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 24px;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent2);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 0 0 24px;
}

.hero-text {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.btn {
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.primary {
  background: var(--text);
  color: #090c17;
}

.secondary {
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.quick-links a:hover {
  color: var(--text);
}

/* =========================
   PROFILE
========================= */

.hero-profile {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.profile-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #a89fff, transparent 35%),
    radial-gradient(circle at 70% 70%, #36d8c1, transparent 32%),
    #151a31;
  filter: blur(0.2px);
  box-shadow: 0 0 100px rgba(139, 124, 255, 0.18);
}

.profile-frame {
  position: relative;
  width: 315px;
  height: 315px;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(
    145deg,
    rgba(139, 124, 255, 0.9),
    rgba(94, 234, 212, 0.75)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--bg);
  filter: saturate(0.9);
}

.profile-badge {
  position: absolute;
  bottom: 52px;
  right: 4%;
  background: rgba(13, 17, 32, 0.92);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbe2f8;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 100px 0;
}

.alt {
  background: #0b0f1d;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -1.8px;
  margin: 0;
}

.section-subtext {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 700px;
  font-size: 15px;
}

/* =========================
   ABOUT
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  color: var(--muted);
  font-size: 17px;
}

/* =========================
   SKILLS
========================= */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-grid-visual {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 24px;
}

.skill-card {
  min-height: 170px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px !important;
  background: #141d31 !important;
  border: 1px solid #2b3b58 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-5px) !important;
  border-color: #405777 !important;
}

.skill-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 14px;
}

.skill-icon i {
  font-size: 48px;
}

.skill-card h3 {
  font-size: 16px !important;
  margin: 0 0 4px !important;
}

.skill-card p {
  font-size: 12px !important;
  color: #8f9ab3 !important;
  margin: 0 !important;
}

.icon-java {
  font-size: 38px;
}

.icon-kotlin {
  font-size: 38px;
  font-weight: 900;
  color: #a98bff;
}

.icon-db {
  font-size: 20px;
  font-weight: 800;
  border: 2px solid #5e8cff;
  border-radius: 12px;
  color: #79a1ff;
}

/* =========================
   PROJECTS
========================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: #3b4560;
}

.project h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-number {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 24px;
}

.project .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  font-size: 11px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7cee3;
}

.project a,
.project-link {
  margin-top: auto;
  color: var(--accent2);
  font-size: 13px;
  font-weight: 700;
}

.coming {
  opacity: 0.85;
}

.secondary-projects {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

/* =========================
   FEATURED PROJECT
========================= */

.project-feature {
  border: 1px solid #3b3569;
  background: linear-gradient(145deg, #11172a, #0d1220);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.16);
}

.project-feature-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.project-feature h3 {
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.project-lead {
  color: var(--muted);
  max-width: 800px;
  margin: 0;
  font-size: 15px;
}

.project-feature-head .tags {
  max-width: 280px;
  justify-content: flex-end;
}

.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0 18px;
}

.project-details > div {
  border: 1px solid var(--line);
  background: rgba(16, 21, 37, 0.72);
  border-radius: 13px;
  padding: 20px;
}

.project-details h4,
.screenshots h4 {
  margin: 0 0 7px;
  font-size: 15px;
}

.project-details p,
.screenshots p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   ARCHITECTURE
========================= */

.architecture {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 17px;
  border: 1px dashed #39415a;
  border-radius: 12px;
  color: #d9e0f5;
  font-size: 12px;
}

.architecture span {
  padding: 7px 9px;
  background: #151c2f;
  border: 1px solid #2a334a;
  border-radius: 8px;
}

.architecture i {
  color: var(--accent2);
  font-style: normal;
}

/* ==================================================
   QR TOKEN APP SCREENSHOTS
   Desktop = 4 columns
   Tablet  = 2 columns
   Mobile  = 1 column
================================================== */

.screenshots {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.screenshots-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.screenshot-size {
  font-size: 11px;
  color: var(--accent2);
  border: 1px solid #2a334a;
  border-radius: 999px;
  padding: 6px 9px;
  white-space: nowrap;
}

/* DESKTOP - 4 COLUMNS */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  width: 100%;
}

.screenshot-card {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.screenshot-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1220 / 2712;
  object-fit: contain;
  border-radius: 10px;
}

.screenshot-card figcaption {
  padding: 10px 4px 2px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7cedd;
}

.project-link {
  display: inline-block;
  margin-top: 22px;
}

/* =========================
   TIMELINE
========================= */

.timeline {
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 0 0 34px 28px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item > span {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0;
  font-size: 17px;
}

.timeline-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   CONTACT
========================= */

.contact {
  padding-bottom: 110px;
}

.contact-box {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #12182a, #0d1220);
  padding: 55px;
  border-radius: 20px;
}

.contact-box h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 15px;
}

.contact-box > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
}

/* =========================
   FOOTER
========================= */

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: #747d94;
  font-size: 12px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {
  .skill-grid-visual {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   TABLET / SMALL LAPTOP
   Screenshots = 2 columns
========================= */

@media (max-width: 900px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0;
  }

  .hero-profile {
    min-height: 350px;
  }

  .profile-glow {
    width: 270px;
    height: 270px;
  }

  .profile-frame {
    width: 245px;
    height: 245px;
  }

  .profile-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 20px;
    background: #0a0e1a;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 14px;
  }

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

  .menu-btn {
    display: block;
  }

  .about-grid,
  .skill-grid,
  .project-grid,
  .project-details {
    grid-template-columns: 1fr;
  }

  .skill-grid-visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-feature-head,
  .screenshots-head {
    flex-direction: column;
  }

  .project-feature-head .tags {
    justify-content: flex-start;
  }

  .hero h1 {
    letter-spacing: -2px;
  }
}

/* =========================
   MOBILE SCREENSHOTS
   1 COLUMN
========================= */

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .screenshot-card {
    padding: 10px;
  }

  .skill-grid-visual {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .skill-card {
    min-height: 145px !important;
    padding: 16px !important;
  }

  .skill-icon {
    width: 52px;
    height: 52px;
    font-size: 38px;
    margin-bottom: 10px;
  }

  .skill-icon i {
    font-size: 38px;
  }

  .skill-card h3 {
    font-size: 14px !important;
  }

  .architecture {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .architecture i {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 70px 1fr;
  }

  .project-feature {
    padding: 22px;
  }

  .hero {
    padding-top: 45px;
  }

  .contact-box {
    padding: 35px 25px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.2s;
  }

  .project,
  .skill-grid article {
    transition:
      transform 0.2s,
      border-color 0.2s;
  }
}
