:root {
  --bg: #061426;
  --bg-soft: #0a1d34;
  --surface: rgba(9, 31, 55, 0.82);
  --surface-strong: #0d2744;
  --ink: #f5f9ff;
  --muted: #9fb4ca;
  --line: rgba(125, 185, 255, 0.2);
  --blue: #1677ff;
  --cyan: #38c7ff;
  --yellow: #ffd84d;
  --gold: #f0ad21;
  --deep: #03101f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(22, 119, 255, 0.34), transparent 32%),
    linear-gradient(135deg, #061426 0%, #08294c 52%, #1c3770 72%, #f0ad21 140%);
}

body.is-locked {
  min-height: 100vh;
  overflow: hidden;
}

body.is-locked .site-shell {
  display: none;
}

body.is-unlocked .maintenance-gate {
  display: none;
}

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

.maintenance-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.92), rgba(6, 20, 38, 0.58)),
    linear-gradient(0deg, rgba(3, 16, 31, 0.74), rgba(3, 16, 31, 0.18)),
    url("assets/hero-gaming-dev.png") center / cover;
}

.maintenance-panel {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 58px);
  background: rgba(3, 16, 31, 0.82);
  border: 1px solid rgba(125, 185, 255, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.maintenance-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  color: #061426;
  background: linear-gradient(135deg, var(--yellow), #fff3a8 44%, var(--cyan));
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(255, 216, 77, 0.28);
}

.maintenance-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.maintenance-copy {
  max-width: 560px;
  color: #c8d8ea;
  font-size: 1.05rem;
  line-height: 1.7;
}

.maintenance-form {
  margin-top: 32px;
}

.maintenance-form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(245, 249, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 900;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.password-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 185, 255, 0.28);
  border-radius: 8px;
  font: inherit;
  outline: none;
}

.password-row input:focus {
  border-color: rgba(255, 216, 77, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.12);
}

.password-row input::placeholder {
  color: rgba(245, 249, 255, 0.48);
}

.maintenance-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #ffd84d;
  font-weight: 800;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(3, 16, 31, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #061426;
  background: linear-gradient(135deg, var(--yellow), #fff3a8 44%, var(--cyan));
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(255, 216, 77, 0.24);
}

.site-nav {
  display: flex;
  gap: 28px;
  color: rgba(245, 249, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 76px) 86px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.94) 0%, rgba(5, 23, 45, 0.82) 38%, rgba(5, 23, 45, 0.18) 72%),
    linear-gradient(0deg, rgba(3, 16, 31, 0.85), rgba(3, 16, 31, 0.14)),
    radial-gradient(circle at 72% 28%, rgba(255, 216, 77, 0.46), transparent 28%);
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h1,
.intro h2,
.section-heading h2,
.skills h2,
.contact h2 {
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  color: #c8d8ea;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid transparent;
}

.button.primary {
  color: #061426;
  background: linear-gradient(135deg, var(--yellow), #ffb629);
  box-shadow: 0 18px 42px rgba(255, 196, 45, 0.24);
}

.button.ghost {
  color: var(--ink);
  background: rgba(13, 39, 68, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.outline {
  color: var(--ink);
  background: transparent;
  border-color: rgba(255, 216, 77, 0.45);
}

.scroll-cue {
  position: absolute;
  left: clamp(20px, 6vw, 76px);
  bottom: 28px;
  width: 32px;
  height: 52px;
  border: 1px solid rgba(255, 216, 77, 0.4);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.7s infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.35;
  }
  50% {
    transform: translate(-50%, 16px);
    opacity: 1;
  }
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 76px);
}

.intro {
  background: linear-gradient(180deg, rgba(6, 20, 38, 0.96), rgba(10, 29, 52, 0.92));
}

.intro-grid,
.section-heading,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.skills h2,
.contact h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.stats div {
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(145deg, rgba(22, 119, 255, 0.22), rgba(255, 216, 77, 0.08)),
    var(--deep);
  color: #fff;
}

.stats strong {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 0.95;
}

.stats span {
  color: rgba(245, 249, 255, 0.76);
  font-weight: 700;
  line-height: 1.55;
}

.projects {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 216, 77, 0.14), transparent 30%),
    linear-gradient(180deg, #07182d 0%, #061426 100%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 216, 77, 0.48);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.project-card.featured {
  border-color: rgba(255, 216, 77, 0.38);
}

.project-link {
  display: block;
  height: 100%;
}

.project-visual {
  min-height: 230px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--blue);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.project-visual::before {
  left: 12%;
  right: 12%;
  top: 18%;
  height: 28%;
  background: rgba(255, 255, 255, 0.72);
}

.project-visual::after {
  left: 12%;
  bottom: 18%;
  width: 46%;
  height: 22%;
  background: rgba(255, 216, 77, 0.82);
}

.visual-highrise {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, #03101f 0%, #1457c8 42%, #ffd84d 120%);
}

.visual-fivem {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, #061426 0%, #1677ff 52%, #38c7ff 100%);
}

.visual-minecraft {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, #07203b 0%, #0e8f75 48%, #ffd84d 116%);
}

.visual-web {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, #0d2744 0%, #2636a8 50%, #f0ad21 118%);
}

.project-body {
  padding: 24px;
}

.project-body span {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 10px 0;
  color: #fff;
  font-size: 1.35rem;
}

.project-body p {
  color: var(--muted);
  line-height: 1.6;
}

.skills {
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.12), rgba(255, 216, 77, 0.08)),
    #081a30;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.skill-list span {
  padding: 12px 16px;
  color: #f8fbff;
  background: rgba(13, 39, 68, 0.84);
  border: 1px solid rgba(125, 185, 255, 0.24);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.contact {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(22, 119, 255, 0.22), rgba(255, 216, 77, 0.18)),
    var(--deep);
  color: #fff;
}

.contact .section-label {
  color: var(--yellow);
}

.contact h2 {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 76px);
  color: rgba(245, 249, 255, 0.72);
  background: #03101f;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

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

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: rgba(3, 16, 31, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 16, 31, 0.96), rgba(3, 16, 31, 0.72)),
      radial-gradient(circle at 75% 20%, rgba(255, 216, 77, 0.28), transparent 34%);
  }

  .intro-grid,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .stats,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

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