:root {
  --primary: #2563eb;
  --secondary: #3b82f6;
  --background: #f8fafc;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(37, 99, 235, 0.14);
  --glass: rgba(255, 255, 255, 0.76);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 36px rgba(37, 99, 235, 0.14);
  --radius: 8px;
  --radius-lg: 28px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 35%),
    linear-gradient(180deg, var(--background) 0%, #eef6ff 52%, var(--white) 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--background);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.26);
  animation: loaderSpin 1s linear infinite;
}

.loader__mark::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 4px solid rgba(255, 255, 255, 0.48);
  border-top-color: var(--white);
  border-radius: 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.navbar {
  width: var(--container);
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: rgba(37, 99, 235, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 100px 0;
}

.hero {
  min-height: calc(100vh - 98px);
  display: grid;
  align-items: center;
  padding: 82px 0 112px;
  overflow: hidden;
}

.hero__grid,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 6vw, 82px);
}

.split-layout--reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-copy h2,
.section-heading h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
}

.hero__role {
  min-height: 38px;
  margin: 22px 0 8px;
  color: var(--primary);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 700;
}

.typing-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--primary);
  animation: blink 0.8s steps(2, start) infinite;
}

.hero__school {
  margin: 0 0 20px;
  color: #334155;
  font-weight: 600;
}

.hero__tagline,
.section-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.hero__tagline {
  max-width: 670px;
  font-size: 1.04rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  position: relative;
  isolation: isolate;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.button--ghost {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.button:hover {
  transform: translateY(-3px);
}

.ripple-circle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s ease-out forwards;
  z-index: -1;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.profile-ring {
  position: relative;
  width: min(390px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), #93c5fd, var(--white));
  box-shadow:
    0 28px 80px rgba(37, 99, 235, 0.28),
    0 0 70px rgba(59, 130, 246, 0.28);
  animation: float 5.5s ease-in-out infinite;
}

.profile-ring::before,
.profile-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: -18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  animation: orbitGlow 7s linear infinite;
}

.profile-ring::after {
  inset: 22px;
  border-color: rgba(255, 255, 255, 0.58);
  animation-duration: 9s;
  animation-direction: reverse;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid var(--white);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--primary), var(--shadow);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.7;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.blob--one {
  width: 230px;
  height: 230px;
  top: 13%;
  left: -80px;
  background: rgba(37, 99, 235, 0.2);
}

.blob--two {
  width: 340px;
  height: 340px;
  right: -130px;
  bottom: 9%;
  background: rgba(147, 197, 253, 0.32);
  animation-delay: -4s;
}

.blob--three {
  width: 160px;
  height: 160px;
  left: 48%;
  bottom: 14%;
  background: rgba(14, 165, 233, 0.16);
  animation-delay: -7s;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-copy h2,
.section-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.about {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(248, 250, 252, 0.95));
}

.info-panel,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.info-panel {
  padding: clamp(24px, 4vw, 34px);
}

.computer-illustration {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
}

.monitor {
  position: relative;
  width: min(290px, 100%);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 10px solid #1e293b;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(59, 130, 246, 0.72)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.45), transparent 30%);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.monitor span {
  position: absolute;
  inset: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.monitor code {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 800;
}

.stand {
  width: 104px;
  height: 52px;
  border-bottom: 18px solid #1e293b;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.profile-facts div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.profile-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.hobbies,
.contact {
  background: var(--white);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hobby-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hobby-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.14);
}

.hobby-card--wide {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  grid-column: 1 / -1;
}

.hobby-card--wide .hobby-card__media {
  aspect-ratio: auto;
  min-height: 300px;
}

.hobby-card--wide .hobby-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hobby-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbeafe;
}

.hobby-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hobby-card:hover img {
  transform: scale(1.08);
}

.hobby-card__body {
  padding: 24px;
}

.hobby-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.hobby-card i,
.skill-card i,
.contact-item i {
  color: var(--primary);
}

.hobby-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.skills {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.11), transparent 34%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.13);
}

.skill-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  font-size: 1.45rem;
}

.skill-card span {
  font-weight: 800;
}

.target-illustration {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.target {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.target span {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.16);
}

.target span:nth-child(1) {
  inset: 26px;
}

.target span:nth-child(2) {
  inset: 72px;
  background: rgba(37, 99, 235, 0.08);
}

.target span:nth-child(3) {
  inset: 118px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.target i {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 3rem;
}

.target-chip {
  position: absolute;
  right: 5%;
  bottom: 14%;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  animation: float 4.8s ease-in-out infinite;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 28px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.74);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--white);
}

.contact-item i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(37, 99, 235, 0.1);
  font-size: 1.2rem;
}

.contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.site-footer {
  padding: 34px 20px;
  text-align: center;
  color: #e2e8f0;
  background: #0f172a;
}

.site-footer p {
  margin: 4px 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.26);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes orbitGlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  to {
    transform: translate3d(28px, -24px, 0) scale(1.08);
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
  }

  .hero__grid,
  .split-layout,
  .split-layout--reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero__tagline {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .split-layout--reverse .section-copy {
    order: -1;
  }
}

@media (max-width: 740px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 10px 0;
  }

  .navbar {
    min-height: 64px;
    border-radius: 20px;
  }

  .brand__text {
    max-width: 168px;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 82px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.2rem);
  }

  .hero__role {
    min-height: 68px;
  }

  .hobby-grid,
  .skills-grid,
  .contact-card,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .hobby-card--wide {
    grid-template-columns: 1fr;
  }

  .hobby-card--wide .hobby-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .skill-card,
  .contact-item {
    min-height: 92px;
  }

  .hobby-card__body {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
