:root {
  --bg: #07090f;
  --bg-soft: #0d111b;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f6f8fb;
  --muted: #9aa7b8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #31d3ad;
  --accent-2: #6ea8ff;
  --gold: #f3c969;
  --rose: #ff6b9d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(49, 211, 173, 0.18), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(110, 168, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #07090f 0%, #090c14 48%, #05070c 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(49, 211, 173, 0.15), transparent 68%);
  filter: blur(6px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 250ms ease;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - clamp(28px, 6vw, 96px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 24, 0.72);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.button,
.tech-strip span {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.header-photo {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(49, 211, 173, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 34px rgba(49, 211, 173, 0.28);
  object-fit: cover;
  object-position: center 20%;
  padding: 2px;
}

.nav {
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  min-height: calc(100vh - 84px);
  padding: clamp(58px, 9vw, 120px) clamp(20px, 5vw, 70px) clamp(46px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.intro {
  max-width: 710px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button {
  position: relative;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
}

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

.button.primary {
  color: #06120f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 16px 46px rgba(49, 211, 173, 0.22);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.button.secondary:hover {
  border-color: rgba(49, 211, 173, 0.54);
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.tech-strip span {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dce6f4;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  inset: 36px;
  content: "";
  border: 1px solid rgba(49, 211, 173, 0.18);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.hero-visual::after {
  position: absolute;
  inset: 88px;
  content: "";
  border: 1px dashed rgba(243, 201, 105, 0.24);
  border-radius: 50%;
  animation: spin 24s linear infinite reverse;
}

.orbital-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(420px, 88vw);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(8, 12, 20, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translate(-50%, -50%);
}

.avatar {
  width: 94px;
  height: 94px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 54px rgba(49, 211, 173, 0.26);
}

.photo-avatar {
  display: block;
  width: 154px;
  height: 176px;
  padding: 4px;
  border: 1px solid rgba(49, 211, 173, 0.46);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(49, 211, 173, 0.8), rgba(243, 201, 105, 0.82));
  object-fit: cover;
  object-position: center 18%;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #dbe7f5;
  font-size: 0.9rem;
  font-weight: 800;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.quick-stats {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.quick-stats div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quick-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-stats dd {
  margin: 4px 0 0;
  color: #eef4fb;
  font-weight: 800;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  font-weight: 900;
  animation: float 4.8s ease-in-out infinite;
}

.badge-one {
  top: 36px;
  left: 44px;
}

.badge-two {
  right: 14px;
  top: 148px;
  animation-delay: 700ms;
}

.badge-three {
  left: 72px;
  bottom: 58px;
  animation-delay: 1200ms;
}

.section {
  padding: clamp(64px, 8vw, 106px) clamp(20px, 5vw, 70px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.skill-grid,
.gallery {
  display: grid;
  gap: 18px;
}

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

.skill-card,
.project-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.skill-card::before,
.project-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(49, 211, 173, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.skill-card:hover,
.project-card:hover {
  border-color: rgba(49, 211, 173, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(-8px);
}

.skill-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.skill-card {
  min-height: 230px;
  padding: 24px;
}

.skill-number {
  display: inline-flex;
  margin-bottom: 52px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.86rem;
  font-weight: 900;
}

.skill-card h3,
.skill-card p,
.project-body,
.project-image span,
.project-image strong {
  position: relative;
  z-index: 1;
}

.skill-card p,
.project-card p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.projects-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.055));
}

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

.project-card {
  min-height: 370px;
}

.featured-project {
  grid-column: span 2;
}

.project-image {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  color: #fff;
  overflow: hidden;
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.36) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.7;
}

.project-image span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-image strong {
  font-size: 1.6rem;
  line-height: 1.1;
}

.bdf-project {
  min-height: 290px;
  background: #101018;
}

.project-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.82;
  transform: scale(1.02);
  transition: transform 260ms ease, opacity 260ms ease;
}

.project-card:hover .project-screenshot {
  opacity: 0.92;
  transform: scale(1.06);
}

.bdf-logo {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  width: 92px;
  height: 92px;
  padding: 10px;
  border: 1px solid rgba(243, 201, 105, 0.5);
  border-radius: 8px;
  background: rgba(8, 13, 46, 0.9);
  box-shadow: 0 18px 44px rgba(243, 201, 105, 0.2);
  object-fit: contain;
  backdrop-filter: blur(8px);
}

.pl-logo {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  width: 92px;
  height: 92px;
  padding: 10px;
  border: 1px solid rgba(243, 201, 105, 0.5);
  border-radius: 8px;
  background: #ffff;
  box-shadow: 0 18px 44px rgba(243, 201, 105, 0.2);
  object-fit: contain;
  backdrop-filter: blur(8px);
}

.color-one {
  background: radial-gradient(circle at 20% 20%, #56f3cc, transparent 26%), linear-gradient(135deg, #087263, #0e1824);
}

.color-two {
  background: radial-gradient(circle at 80% 12%, #9dc3ff, transparent 28%), linear-gradient(135deg, #234e99, #0c1020);
}

.color-three {
  background: radial-gradient(circle at 25% 15%, #f8d98a, transparent 28%), linear-gradient(135deg, #8d4c20, #101018);
}

.color-four {
  background: radial-gradient(circle at 75% 24%, #61d7ff, transparent 26%), linear-gradient(135deg, #164d73, #0a1320);
}

.color-five {
  background: radial-gradient(circle at 25% 20%, #ff9bc2, transparent 26%), linear-gradient(135deg, #7135a8, #11101d);
}

.color-six {
  background: radial-gradient(circle at 80% 18%, #bcf27a, transparent 25%), linear-gradient(135deg, #2b6b34, #0d1512);
}

.project-body {
  padding: 20px;
}

.project-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #eaf3f8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
}

.project-link:hover {
  color: var(--gold);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  align-items: start;
  gap: 28px;
  margin: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 70px) 0;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(49, 211, 173, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 15%, rgba(49, 211, 173, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}

.contact h2 {
  margin-bottom: 10px;
}

.contact-copy {
  max-width: 520px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 211, 173, 0.28);
  border-radius: 8px;
  color: #eaf3f8;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.48);
  backdrop-filter: blur(16px);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #dce6f4;
  font-size: 0.86rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  outline: none;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-row textarea {
  min-height: 132px;
  resize: vertical;
}

.form-row select {
  cursor: pointer;
}

.form-row option {
  color: #0b1018;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(154, 167, 184, 0.75);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(49, 211, 173, 0.72);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 0 0 4px rgba(49, 211, 173, 0.1);
}

.form-status {
  min-height: 24px;
  font-weight: 800;
}

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

.footer {
  padding: 28px clamp(20px, 5vw, 70px) 36px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

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

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

.delay-one {
  transition-delay: 100ms;
}

.delay-two {
  transition-delay: 180ms;
}

.delay-three {
  transition-delay: 260ms;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

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

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

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

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

  .featured-project {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    top: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 48px;
  }

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

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

  .contact-form {
    width: 100%;
    padding: 18px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .floating-badge {
    width: 58px;
    height: 58px;
    font-size: 0.85rem;
  }

  .badge-one {
    left: 8px;
  }

  .badge-two {
    right: 0;
  }

  .badge-three {
    left: 16px;
  }

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

  .featured-project {
    grid-column: span 1;
  }
}
