:root {
  --bg: #0a0a0f;
  --surface: #11121a;
  --surface-soft: #171927;
  --neon-cyan: #00f5ff;
  --neon-pink: #ff2bd6;
  --violet: #9d4dff;
  --text: #eaeaf0;
  --muted: #9aa0a6;
  --border: rgba(234, 234, 240, 0.16);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, rgba(157, 77, 255, 0.16), transparent 46%),
    radial-gradient(circle at 90% 10%, rgba(0, 245, 255, 0.14), transparent 40%),
    var(--bg);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 4.75rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  margin-bottom: 0.65rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

a {
  color: var(--neon-cyan);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus-visible {
  color: var(--neon-pink);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.55rem 0.8rem;
  background: #fff;
  color: #000;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92vw);
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite;
}

.ambient-cyan {
  top: -120px;
  right: -80px;
  background: rgba(0, 245, 255, 0.22);
}

.ambient-pink {
  bottom: -140px;
  left: -80px;
  background: rgba(255, 43, 214, 0.18);
  animation-delay: 1.7s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.78);
  border-bottom: 1px solid rgba(234, 234, 240, 0.07);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: rgba(23, 25, 39, 0.85);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.16);
}

.nav-links {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  margin: 0;
  padding: 0.65rem 4vw 1rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(10, 10, 15, 0.96);
  border-bottom: 1px solid rgba(234, 234, 240, 0.12);
}

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

.nav-links a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 0.48rem 0;
  font-weight: 600;
}

.nav-links a.is-active,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--neon-cyan);
}

.section {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5.6rem;
}

.hero-inner {
  width: min(760px, 92vw);
}

.eyebrow {
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.subheading {
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  margin-bottom: 1.1rem;
}

.lead,
.section-intro {
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, rgba(0, 245, 255, 0.92), rgba(157, 77, 255, 0.92));
  color: #06070b;
  box-shadow: 0 8px 28px rgba(0, 245, 255, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 10px 30px rgba(255, 43, 214, 0.28);
}

.btn-secondary {
  border-color: rgba(0, 245, 255, 0.45);
  color: var(--text);
  background: rgba(23, 25, 39, 0.7);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 43, 214, 0.65);
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.26);
}

.card-grid {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.card {
  background: linear-gradient(180deg, rgba(23, 25, 39, 0.98), rgba(17, 18, 26, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 245, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.projects-cta {
  margin-top: 1.35rem;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.gallery-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.gallery-item {
  width: 100%;
  min-height: 170px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--surface-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  appearance: none;
}

.gallery-item::before,
.lightbox-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(157, 77, 255, 0.28);
}

.gallery-one::before {
  background: radial-gradient(circle at 15% 20%, rgba(0, 245, 255, 0.9), rgba(157, 77, 255, 0.55) 40%, rgba(10, 10, 15, 0.9) 95%);
}

.gallery-two::before {
  background: linear-gradient(140deg, rgba(17, 18, 26, 0.9), rgba(255, 43, 214, 0.35) 45%, rgba(0, 245, 255, 0.3));
}

.gallery-three::before {
  background: radial-gradient(circle at 80% 10%, rgba(255, 43, 214, 0.75), transparent 34%),
    linear-gradient(120deg, rgba(0, 245, 255, 0.42), rgba(17, 18, 26, 0.9));
}

.gallery-four::before {
  background: radial-gradient(circle at 30% 30%, rgba(157, 77, 255, 0.72), transparent 38%),
    radial-gradient(circle at 70% 70%, rgba(0, 245, 255, 0.5), transparent 36%),
    #12131d;
}

.gallery-five::before {
  background: linear-gradient(45deg, rgba(17, 18, 26, 0.98), rgba(30, 32, 48, 0.95));
}

.gallery-five::after {
  content: "UI MOCKUP";
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
  color: rgba(234, 234, 240, 0.8);
}

.gallery-label {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  font-weight: 700;
  font-size: 0.88rem;
  color: #f6f7fb;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
}

.cta {
  text-align: center;
}

.contact-form {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(23, 25, 39, 0.7);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 245, 255, 0.45);
  outline-offset: 2px;
}

.field-error {
  border-color: rgba(255, 43, 214, 0.85);
}

.form-status {
  margin: 0;
  min-height: 1.2rem;
  color: var(--muted);
}

.form-status.success {
  color: var(--neon-cyan);
}

.form-status.error {
  color: #ff8dcf;
}

.site-footer {
  border-top: 1px solid rgba(234, 234, 240, 0.11);
  margin-top: 2rem;
  padding-top: 2.2rem;
  padding-bottom: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.tagline {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--neon-cyan);
}

.social-links {
  margin-bottom: 0.7rem;
}

.copyright {
  width: min(1100px, 92vw);
  margin: 1.3rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 200;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 11, 0.82);
}

.lightbox-content {
  position: relative;
  width: min(680px, 92vw);
  background: #12131d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.lightbox-image {
  width: 100%;
  min-height: 220px;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  position: relative;
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 1px solid var(--border);
  background: rgba(17, 18, 26, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.68rem;
  font: inherit;
}

.cursor-glow {
  display: none;
}

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

@media (min-width: 700px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

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

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

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

  .gallery-one,
  .gallery-two,
  .gallery-five {
    grid-column: span 3;
  }

  .gallery-three,
  .gallery-four {
    grid-column: span 3;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .section {
    padding: 6rem 0;
  }

  .hero {
    padding-top: 7rem;
  }

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

  .cursor-glow {
    display: block;
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.85), rgba(0, 245, 255, 0));
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    z-index: 160;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
