@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #061223;
  --bg-2: #0a1c33;
  --panel: rgba(9, 25, 48, 0.72);
  --line: rgba(58, 149, 255, 0.35);
  --text: #f5f8ff;
  --muted: #c6d0e3;
  --blue: #2d9cff;
  --blue-2: #006fe6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);

  background:
    radial-gradient(circle at 72% 25%, rgba(45, 156, 255, 0.16), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(45, 156, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #050b16 0%, #06172c 50%, #050b16 100%);
}

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

/* PAGE */

.page-shell {
  width: min(1500px, calc(100% - 28px));
  margin: 8px auto;

  border: 1px solid rgba(113, 166, 222, 0.22);
  border-radius: 6px;

  overflow: hidden;

  background: rgba(4, 13, 27, 0.78);

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 80px rgba(0, 0, 0, 0.35);
}

/* HEADER */

.site-header {
  height: 105px;

  display: flex;
  align-items: center;

  padding: 0 42px;
  gap: 34px;
}

.brand {
  min-width: 300px;

  display: flex;
  flex-direction: column;

  font-weight: 800;
  font-size: 32px;

  letter-spacing: -1px;
}

.brand small {
  margin-top: 4px;

  color: var(--blue);

  font-size: 16px;
  font-weight: 500;
}

.accent,
.hello,
.eyebrow,
.text-link {
  color: var(--blue);
}

/* NAVIGATION */

.main-nav {
  flex: 1;

  display: flex;
  justify-content: center;

  gap: 38px;
}

.main-nav a {
  position: relative;

  color: #edf3ff;

  font-size: 15px;

  opacity: .92;
}

.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -22px;

  width: 42px;
  height: 2px;

  border-radius: 20px;

  background: var(--blue);
}

/* BUTTONS */

.resume-btn,
.secondary-btn,
.outline-btn {
  border: 1px solid var(--line);
  border-radius: 9px;

  padding: 14px 22px;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  background: rgba(7, 20, 38, 0.42);

  color: #dcecff;
}

.resume-btn {
  color: var(--blue);

  min-width: 130px;

  justify-content: center;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  border-radius: 10px;

  padding: 16px 24px;

  background:
    linear-gradient(135deg, #30a6ff, #0d78ee);

  font-weight: 600;

  box-shadow:
    0 12px 28px rgba(20, 127, 238, .22);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;

  min-height: 620px;

  padding: 50px 80px 38px;

  position: relative;
}

.hero::before {
  content: "";

  position: absolute;

  inset: 60px 0 0 35%;

  opacity: .30;

  background:
    linear-gradient(rgba(45, 156, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 156, 255, .10) 1px, transparent 1px);

  background-size: 42px 42px;

  -webkit-mask-image:
    radial-gradient(circle, #000 0%, transparent 63%);

  mask-image:
    radial-gradient(circle, #000 0%, transparent 63%);

  pointer-events: none;
}

/* HERO CONTENT */

.hero-content {
  position: relative;
  z-index: 2;

  padding-top: 12px;
}

.hello {
  font-size: 24px;

  margin: 0 0 10px;
}

h1 {
  font-size: clamp(44px, 5vw, 64px);

  line-height: 1.02;

  margin: 0 0 14px;

  letter-spacing: -2.4px;
}

h2 {
  margin: 0 0 26px;

  color: #d7deed;

  font-size: 23px;
  font-weight: 500;
}

.summary {
  max-width: 610px;

  color: #d8e0f0;

  font-size: 17px;
  line-height: 1.6;

  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 20px;

  margin-bottom: 48px;
}

/* SKILLS */

.skill-row {
  display: grid;
  grid-template-columns: repeat(4, max-content);

  gap: 30px;

  align-items: center;
}

.skill-item {
  display: flex;
  align-items: center;

  gap: 14px;

  padding-right: 26px;

  border-right:
    1px solid rgba(135, 174, 226, 0.24);
}

.skill-item:last-child {
  border-right: 0;
}

.icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  font-size: 27px;

  color: #dce9ff;
}

.skill-item strong {
  display: block;

  font-size: 14px;
}

.skill-item small {
  display: block;

  margin-top: 4px;

  color: var(--muted);
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;

  padding-bottom: 140px;
}

/* NETWORK BACKGROUND */

.network-bg {
  position: absolute;

  width: 92%;
  height: 75%;

  background:
    radial-gradient(circle at 20% 30%, rgba(45, 156, 255, .55) 0 3px, transparent 4px),
    radial-gradient(circle at 75% 25%, rgba(45, 156, 255, .35) 0 4px, transparent 5px),
    radial-gradient(circle at 90% 65%, rgba(45, 156, 255, .35) 0 4px, transparent 5px),
    radial-gradient(circle at 45% 72%, rgba(45, 156, 255, .45) 0 4px, transparent 5px);

  opacity: .45;
}

/* PROFILE */

.profile-ring {
  position: relative;

  width: 350px;
  height: 350px;

  border:
    1px solid rgba(45, 156, 255, .65);

  border-radius: 50%;

  display: grid;
  place-items: center;
}

.profile-ring::before {
  content: "";

  position: absolute;

  inset: 14px;

  border:
    1px solid rgba(45, 156, 255, .42);

  border-radius: 50%;
}

.profile-ring img {
  width: 310px;
  height: 310px;

  border-radius: 50%;

  object-fit: cover;

  position: relative;
  z-index: 1;
}

.orbit-dot {
  position: absolute;

  right: 34px;
  bottom: 64px;

  width: 12px;
  height: 12px;

  background: var(--blue);

  border-radius: 50%;

  box-shadow:
    0 0 18px var(--blue);
}

/* STATS CARD */

.stats-card {
  position: absolute;

  bottom: 50px;

  width: 530px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border:
    1px solid rgba(113, 166, 222, 0.22);

  border-radius: 10px;

  background:
    rgba(5, 17, 35, .72);

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  padding: 18px 12px;
}

.stats-card div {
  text-align: center;

  border-right:
    1px solid rgba(135, 174, 226, 0.22);
}

.stats-card div:last-child {
  border-right: 0;
}

.stats-card strong {
  display: block;

  font-size: 22px;
}

.stats-card small {
  display: block;

  margin-top: 6px;

  color: var(--muted);

  font-size: 12px;
}

/* FEATURED SECTION */

.featured-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;

  gap: 64px;

  padding: 30px 86px 36px;

  background:
    rgba(8, 18, 34, 0.72);
}

/* PROJECT CARD */

.project-card {
  position: relative;

  min-height: 420px;

  border:
    1px solid rgba(45, 156, 255, .45);

  border-radius: 18px;

  overflow: hidden;

  padding: 60px 48px;

  display: flex;
  align-items: flex-start;

  background:
    radial-gradient(circle at 72% 45%, rgba(45, 156, 255, .22), transparent 34%),
    linear-gradient(135deg, #04152c, #08264a);
}

.project-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(circle at 78% 50%, rgba(45, 156, 255, .22), transparent 38%);

  pointer-events: none;
}

.project-card>div {
  position: relative;
  z-index: 2;

  max-width: 420px;
}

.project-card h3,
.project-details h3 {
  font-size: 30px;

  line-height: 1.22;

  margin: 16px 0 28px;
}

.project-card-text {
  max-width: 260px;

  color: #c9d4e8;

  font-size: 16px;

  line-height: 1.7;

  margin: 0 0 34px;
}

/* ROUTER IMAGE */

.project-card img {
  position: absolute;

  right: -50px;
  bottom: 70px;

  width: 54%;
  max-width: 520px;

  object-fit: contain;

  z-index: 1;

  filter:
    drop-shadow(0 30px 45px rgba(0, 0, 0, .45)) drop-shadow(0 0 35px rgba(45, 156, 255, .12));

  transition: transform .35s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

/* DETAILS */

.project-details {
  padding-top: 18px;
}

.project-details p {
  max-width: 580px;

  color: #d6deee;

  line-height: 1.65;
}

/* CHECK GRID */

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));

  gap: 14px 28px;

  margin: 24px 0 26px;

  color: #dce5f5;

  font-size: 14px;
}

.check-grid span::first-letter {
  color: var(--blue);
}

/* TABLET */

@media (max-width: 1100px) {

  .site-header {
    height: auto;

    padding: 24px;

    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;

    width: 100%;

    justify-content: flex-start;

    overflow-x: auto;

    padding-bottom: 12px;
  }

  .hero,
  .featured-section {
    grid-template-columns: 1fr;

    padding: 36px 28px;
  }

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

  .stats-card {
    position: static;

    width: 100%;

    margin-top: 24px;
  }
}

/* MOBILE */

@media (max-width: 650px) {

  .page-shell {
    width: 100%;

    margin: 0;

    border-radius: 0;
  }

  .brand {
    min-width: auto;

    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .skill-row {
    grid-template-columns: 1fr;
  }

  .skill-item {
    border-right: 0;
  }

  .profile-ring {
    width: 280px;
    height: 280px;
  }

  .profile-ring img {
    width: 245px;
    height: 245px;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 36px 28px 320px;
  }

  .project-card>div {
    width: 100%;
  }

  .project-card img {
    position: absolute;

    right: 50%;
    transform: translateX(50%);

    bottom: 20px;

    width: 82%;
    max-width: 420px;
  }

  .project-card:hover img {
    transform:
      translateX(50%) scale(1.02);
  }

  .project-card-text {
    max-width: 100%;

    font-size: 16px;

    line-height: 1.7;
  }

  /* FOOTER */

}

/* FOOTER */

.site-footer {
  text-align: center;
  padding: 26px 20px;

  border-top:
    1px solid rgba(113, 166, 222, 0.15);

  background:
    rgba(5, 14, 28, 0.82);

  color: #9fb0c9;

  font-size: 14px;

  letter-spacing: .3px;
}


/* CONTACT PAGE */

.contact-page {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 80px 28px;

  background:
    radial-gradient(circle at 20% 25%,
      rgba(45, 156, 255, .16),
      transparent 28%),

    radial-gradient(circle at 80% 75%,
      rgba(45, 156, 255, .10),
      transparent 30%),

    linear-gradient(135deg,
      #050b16 0%,
      #071a31 50%,
      #04101f 100%);
}

.contact-page-content {
  width: min(760px, 100%);

  padding: 56px;

  border:
    1px solid rgba(113, 166, 222, .22);

  border-radius: 22px;

  background:
    rgba(5, 17, 35, .72);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, .35);
}

.contact-page h1 {
  font-size: clamp(42px, 6vw, 72px);

  margin: 14px 0 18px;

  letter-spacing: -2px;
}

.contact-page p {
  max-width: 720px;

  color: #c9d5e8;

  font-size: 18px;

  line-height: 1.8;

  margin-bottom: 36px;
}

/* CONTACT FORM */

.contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  border:
    1px solid rgba(113, 166, 222, .22);

  border-radius: 14px;

  background:
    rgba(8, 22, 42, .86);

  color: #f5f8ff;

  padding: 18px 20px;

  font-family: inherit;

  font-size: 16px;

  outline: none;

  transition: .3s ease;
}

.contact-form textarea {
  min-height: 180px;

  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8da2bf;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color:
    rgba(45, 156, 255, .75);

  box-shadow:
    0 0 0 4px rgba(45, 156, 255, .10);
}

.contact-form button {
  width: fit-content;

  border: none;

  cursor: pointer;
}

.back-home {
  display: inline-block;

  margin-top: 34px;

  color: #b9c7dc;

  transition: .3s ease;
}

.back-home:hover {
  color: var(--blue);

  transform: translateX(-5px);
}

/* MOBILE */

@media (max-width: 768px) {

  .contact-page-content {
    padding: 34px 24px;
  }

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

}


/* POPUP MESSAGE BOX */

.message-box {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 8, 18, 0.72);
  z-index: 99999;
}

.message-box.show {
  display: flex;
}

.message-box-content {
  width: min(430px, calc(100% - 40px));
  padding: 34px 30px;
  border: 1px solid rgba(113,166,222,.28);
  border-radius: 18px;
  background: #061223;
  color: #f5f8ff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.message-box-content h3 {
  margin: 0 0 14px;
  font-size: 28px;
}


.message-box-content p {
  margin: 0 0 24px;
  color: #c9d5e8;
  line-height: 1.6;
  white-space: pre-line;
}

.message-box-content button {
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #30a6ff, #0d78ee);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}