* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% -10%, rgba(159, 92, 255, 0.21), transparent 36rem), radial-gradient(circle at 85% 12%, rgba(255, 43, 214, 0.17), transparent 28rem), linear-gradient(180deg, #080414 0%, #05030f 52%, #020109 100%);
  color: #f2f7ff;
  font-family: "Archivo", system-ui, sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.11) 50%), linear-gradient(90deg, rgba(255, 43, 214, 0.04), rgba(24, 216, 255, 0.045));
  background-size: 100% 4px, 7px 100%;
  mix-blend-mode: screen;
  opacity: 0.38;
  z-index: 20;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 46vh;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 3, 15, 0.95), transparent 72%), repeating-linear-gradient(to right, transparent 0 5.8rem, rgba(24, 216, 255, 0.18) 5.8rem 5.9rem, transparent 5.9rem 11.8rem), repeating-linear-gradient(to top, transparent 0 2.4rem, rgba(24, 216, 255, 0.18) 2.4rem 2.5rem, transparent 2.5rem 5rem);
  transform: perspective(30rem) rotateX(58deg) scale(1.4);
  transform-origin: bottom;
  opacity: 0.62;
  z-index: -1;
}

#site-viewport {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.circuit-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, rgba(255, 43, 214, 0.07), transparent 24%, rgba(24, 216, 255, 0.075) 58%, transparent 80%), radial-gradient(circle at 20% 18%, rgba(24, 216, 255, 0.13), transparent 18rem), radial-gradient(circle at 78% 30%, rgba(255, 43, 214, 0.13), transparent 22rem);
}

.circuit-background::before,
.circuit-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(24, 216, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 43, 214, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.circuit-background::after {
  background-size: 128px 128px;
  transform: translateY(18px);
  opacity: 0.48;
}

.site-header,
header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 216, 255, 0.28);
  background: rgba(5, 3, 15, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 24px rgba(24, 216, 255, 0.12);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 18px 0;
  gap: 24px;
}

.neon-text,
.site-mark {
  margin: 0;
  color: #f2f7ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(24, 216, 255, 0.95), 0 0 22px rgba(24, 216, 255, 0.7), 0 0 36px rgba(255, 43, 214, 0.55);
  animation: neon-pulse 3s ease-in-out infinite alternate;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  color: #9ff8ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 0 12px rgba(24, 216, 255, 0.85);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ff2bd6;
  outline: none;
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.95);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #ff2bd6, #18d8ff);
  box-shadow: 0 0 10px rgba(24, 216, 255, 0.8);
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.skills-section,
.experience-section,
.projects-section {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0;
}

.hero {
  min-height: auto;
  padding-top: clamp(96px, 10vh, 76px);
  padding-bottom: clamp(96px, 14vh, 150px);
  display: grid;
  place-items: center;
  text-align: center;
}

.panel-corner,
.hero .hero-content {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.hero .hero-content,
.skill-item,
.experience-item,
.post-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 43, 214, 0.46);
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.1), transparent 38%), linear-gradient(215deg, rgba(24, 216, 255, 0.12), transparent 44%), rgba(13, 10, 28, 0.78);
  box-shadow: 0 0 0 1px rgba(24, 216, 255, 0.1) inset, 0 0 24px rgba(255, 43, 214, 0.15), 0 0 32px rgba(24, 216, 255, 0.11);
}

.hero .hero-content::before,
.skill-item::before,
.experience-item::before,
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(159, 248, 255, 0.1), transparent), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 8px);
  opacity: 0.52;
  pointer-events: none;
}

.hero .hero-content {
  width: min(820px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
}

.hero .hero-content h1,
.hero .hero-content h2,
.section-title {
  position: relative;
  margin: 0 0 18px;
  color: #f2f7ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 2px 0 rgba(255, 43, 214, 0.9), -2px 0 rgba(24, 216, 255, 0.9), 0 0 18px rgba(159, 92, 255, 0.55);
}

.hero .hero-content h1,
.hero .hero-content h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  animation: glitchEffect 4s infinite steps(2, end);
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  text-align: center;
}

.hero p,
.experience-item p,
.post-card p,
.site-footer p {
  position: relative;
  color: #aeb7d9;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero .hero-content > p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.button,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(24, 216, 255, 0.5);
  border-radius: 999px;
  color: #9ff8ff;
  background: rgba(255, 255, 255, 0.035);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(24, 216, 255, 0.16);
}

.button:hover,
.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 43, 214, 0.8);
  color: #f2f7ff;
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.28), 0 0 24px rgba(24, 216, 255, 0.16);
}

.button-secondary {
  border-color: rgba(255, 43, 214, 0.5);
  color: #f2f7ff;
  background: rgba(255, 43, 214, 0.08);
}

.section-divider {
  position: relative;
  width: min(1120px, 100% - 32px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #ff2bd6, #18d8ff, transparent);
  box-shadow: 0 0 18px rgba(24, 216, 255, 0.72), 0 0 18px rgba(255, 43, 214, 0.55);
}

.section-divider::before {
  content: "";
  position: absolute;
  inset: -12px 35%;
  background: radial-gradient(circle, rgba(24, 216, 255, 0.34), transparent 68%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding-top: 18px;
}

.skill-item {
  min-height: 86px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #9ff8ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-timeline,
.posts-grid {
  display: grid;
  gap: 22px;
  padding-top: 18px;
}

.posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-item,
.post-card {
  border-radius: 18px;
  padding: clamp(22px, 3vw, 30px);
  color: #f2f7ff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-item {
  background-color: rgba(18, 12, 38, 0.92);
}

.experience-item:hover,
.post-card:hover,
.skill-item:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 216, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.2) inset, 0 0 30px rgba(255, 43, 214, 0.22), 0 0 40px rgba(24, 216, 255, 0.16);
}

.experience-item h3,
.experience-item h4,
.post-card h3,
.post-card h4 {
  position: relative;
  margin: 0 0 10px;
  color: #9ff8ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta {
  margin-top: 0;
  color: #d8ddf1 !important;
}

.site-footer {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 56px 0 34px;
  text-align: center;
  border-top: 1px solid rgba(24, 216, 255, 0.28);
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #f2f7ff;
  font-family: "Orbitron", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.65);
}

.site-footer a {
  color: #9ff8ff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
}

@keyframes neon-pulse {
  from {
    text-shadow: 0 0 8px rgba(24, 216, 255, 0.85), 0 0 22px rgba(24, 216, 255, 0.55), 0 0 36px rgba(255, 43, 214, 0.4);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 43, 214, 0.85), 0 0 28px rgba(24, 216, 255, 0.65), 0 0 46px rgba(159, 92, 255, 0.55);
  }
}
@keyframes glitchEffect {
  0%, 91%, 100% {
    text-shadow: 2px 0 rgba(255, 43, 214, 0.9), -2px 0 rgba(24, 216, 255, 0.9), 0 0 18px rgba(159, 92, 255, 0.55);
  }
  92% {
    text-shadow: -4px 0 rgba(255, 43, 214, 0.9), 4px 0 rgba(24, 216, 255, 0.9), 0 0 22px rgba(255, 255, 255, 0.35);
  }
  94% {
    text-shadow: 4px 0 rgba(255, 43, 214, 0.9), -4px 0 rgba(24, 216, 255, 0.9), 0 0 22px rgba(255, 255, 255, 0.35);
  }
}
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .header-content {
    align-items: flex-start;
    flex-direction: column;
  }
  nav ul {
    justify-content: flex-start;
  }
  .hero {
    min-height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
