:root {
  --bg: #030305;
  --panel: rgba(20, 20, 26, 0.72);
  --panel2: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --muted: #a8a8b3;
  --red: #ff1744;
  --red2: #ff0033;
  --green: #25ff4a;
  --line: rgba(255, 23, 68, 0.32);
  --shadow: 0 0 32px rgba(255, 0, 51, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.22;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 0, 51, 0.24), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(255, 0, 51, 0.14), transparent 36%);
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.24), transparent 62%);
  pointer-events: none;
  z-index: 20;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  background: linear-gradient(to bottom, rgba(3, 3, 5, 0.95), rgba(3, 3, 5, 0.55));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border: 1px solid var(--red);
  border-radius: 12px;
  color: var(--red);
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: 0.25s;
}

.nav-links a:hover {
  color: var(--red);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}

.section {
  padding: 120px 6vw;
  scroll-margin-top: 110px;
}

.eyebrow {
  font-family: Orbitron, sans-serif;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: Orbitron, sans-serif;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(255, 0, 51, 0.42);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 span {
  color: var(--green);
  text-shadow: 0 0 20px rgba(37, 255, 74, 0.5);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 150px;
}

.hero-text,
.panel p,
.service-card p,
.project-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: 0.28s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--red), #8b0018);
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
  transform: translateY(-4px);
}

.stats {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stats div {
  padding: 18px 22px;
  min-width: 130px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.stats strong {
  display: block;
  color: var(--red);
  font-family: Orbitron;
  font-size: 1.5rem;
}

.stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.avatar-card {
  position: relative;
  width: min(470px, 82vw);
  aspect-ratio: 1;
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050507;
  box-shadow: 0 0 70px rgba(255, 0, 51, 0.34);
}

.avatar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) saturate(1.08);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: var(--red);
  box-shadow: 0 0 20px var(--red);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  to {
    top: 100%;
  }
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 0, 51, 0.36);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}

.orbit-one {
  width: 560px;
  height: 560px;
}

.orbit-two {
  width: 650px;
  height: 650px;
  animation-duration: 22s;
  animation-direction: reverse;
}

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

.floating-chip {
  position: absolute;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: var(--shadow);
  font-family: Orbitron;
  color: var(--red);
  animation: float 4s ease-in-out infinite;
}

.chip-one {
  top: 16%;
  left: 8%;
}

.chip-two {
  right: 5%;
  top: 34%;
  animation-delay: 0.7s;
}

.chip-three {
  bottom: 18%;
  left: 14%;
  animation-delay: 1.2s;
}

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

.panel,
.contact-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.skills-grid,
.services-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.skill-card,
.service-card,
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 28px;
  transition: 0.3s;
}

.skill-card::before,
.service-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent, rgba(255, 0, 51, 0.25), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.skill-card:hover::before,
.service-card:hover::before,
.project-card:hover::before {
  transform: translateX(100%);
}

.skill-card span,
.icon {
  color: var(--red);
  font-family: Orbitron;
}

.skill-card h3 {
  margin: 18px 0;
}

.bar {
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff7188);
  box-shadow: 0 0 20px var(--red);
}

.icon {
  font-size: 2rem;
  margin-bottom: 22px;
}

.contact-section {
  padding-bottom: 80px;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

body.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

body.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.media-card {
  background: rgba(16, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  transition: 0.3s ease;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(255, 0, 60, 0.16);
}

.media-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 23, 68, 0.75);
  box-shadow: 0 0 38px rgba(255, 23, 68, 0.35);
}

.media-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ffffff;
  padding: 10px;
}

.media-card .media-body {
  padding: 18px 20px 20px;
  text-align: center;
}

.media-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: #ffffff;
}

#satisfactionGallery .media-card img {
  height: 340px;
}

.empty-card {
  padding: 28px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.blog-panel .btn {
  margin-top: 24px;
}

.badges-grid,
#badgesGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 35px;
  align-items: stretch;
}

.badge-card {
  min-height: 340px;
  max-height: 340px;
  background: #1b2636;
  border: 1px solid rgba(255, 0, 0, 0.28);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.18);
  padding: 22px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.badge-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 23, 68, 0.85);
  box-shadow: 0 0 38px rgba(255, 23, 68, 0.45);
}

.badge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 23, 68, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 23, 68, 0.12), transparent 40%, rgba(255, 23, 68, 0.08));
  opacity: 0.7;
  pointer-events: none;
}

.badge-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.badge-top h3 {
  font-size: 24px;
  margin: 0;
  color: #fff;
  letter-spacing: -0.03em;
}

.badge-top p {
  font-size: 13px;
  color: #b8c0cc;
  margin: 6px 0 0;
}

.badge-platform {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.badge-image-wrap {
  width: 100%;
  height: 120px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.badge-image-wrap img {
  max-width: 150px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 23, 68, 0.38));
}

.badge-content {
  text-align: center;
  min-height: 86px;
  position: relative;
  z-index: 2;
}

.badge-content h4 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}

.badge-content p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  color: #cbd5e1;
}

@media (max-width: 1180px) {
  .badges-grid,
  #badgesGrid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 1000px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 18px 6vw;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    gap: 30px;
  }

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

  .avatar-card {
    width: min(360px, 86vw);
  }

  .orbit-one {
    width: 390px;
    height: 390px;
  }

  .orbit-two {
    width: 450px;
    height: 450px;
  }

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

  .nav-links {
    position: fixed;
    top: 78px;
    right: 6vw;
    left: 6vw;
    display: none;
    flex-direction: column;
    background: rgba(8, 8, 10, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
  }

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

  .menu-btn {
    display: block;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 90px 5vw;
    scroll-margin-top: 92px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand span {
    width: 34px;
    height: 34px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats {
    flex-direction: column;
  }

  .media-grid,
  .badges-grid,
  #badgesGrid {
    grid-template-columns: 1fr;
  }

  .media-card img {
    height: 210px;
  }

  #satisfactionGallery .media-card img {
    height: 300px;
  }

  .badge-card {
    max-height: none;
    min-height: 320px;
  }

  .badge-image-wrap {
    height: 135px;
  }

  .badge-image-wrap img {
    max-height: 125px;
  }

  .floating-chip {
    font-size: 0.75rem;
    padding: 9px 12px;
  }
}
