:root {
  --yellow-primary: #ffc107;
  --yellow-glow: #ffd54f;
  --deep-black: #0a0a0a;
  --slate-dark: #111418;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text-main: #f6f6f6;
  --text-muted: #b5b7bc;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow-neon: 0 0 25px rgba(255, 197, 7, 0.28);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 10%, #15120a 0%, #0a0a0a 38%, #050505 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img,
svg {
  max-width: 100%;
  display: block;
}

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

.section {
  position: relative;
  padding: 110px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-glow);
  font-size: 0.78rem;
}

.section-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.glass-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.22) 0%, rgba(255, 213, 79, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 15;
  transition: opacity 0.35s ease;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 40;
  padding: 18px 0;
  transition: background 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.brand-mark rect,
.brand-mark path {
  fill: none;
  stroke: var(--yellow-glow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  color: #e9eaec;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.35s var(--ease-smooth);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--yellow-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

.primary-nav a:hover {
  color: #fff;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid rgba(255, 213, 79, 0.45);
  border-radius: 999px;
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--yellow-glow);
  transition: transform 0.35s var(--ease-smooth), opacity 0.35s var(--ease-smooth);
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: calc(var(--header-h) + 60px);
  overflow: hidden;
}

#particleCanvas,
.hero-mesh,
.hero-overlay {
  position: absolute;
  inset: 0;
}

#particleCanvas {
  z-index: 1;
}

.hero-mesh {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 202, 40, 0.35), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(255, 183, 77, 0.3), transparent 38%),
    radial-gradient(circle at 60% 82%, rgba(251, 192, 45, 0.24), transparent 35%),
    linear-gradient(140deg, #070707, #121212 42%, #090909);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  from {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  to {
    transform: scale(1.1) rotate(2deg);
    filter: hue-rotate(8deg);
  }
}

.hero-overlay {
  z-index: 2;
  background: linear-gradient(180deg, transparent 65%, #0a0a0a 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth);
}

.gradient-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 8vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(110deg, #fff6d2 0%, #ffd54f 35%, #ffc107 62%, #fff2b3 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShift 8s ease infinite;
}

@keyframes textShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-sub {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.38s var(--ease-smooth), box-shadow 0.38s var(--ease-smooth), border-color 0.38s var(--ease-smooth);
}

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

.btn-primary {
  color: #111;
  background: linear-gradient(120deg, #ffe082 0%, var(--yellow-primary) 45%, #ffc400 100%);
  box-shadow: var(--shadow-neon);
  animation: pulseGlow 3s ease infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(255, 199, 7, 0.24);
  }
  50% {
    box-shadow: 0 0 42px rgba(255, 213, 79, 0.45);
  }
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.ripple .ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: rippleEffect 0.75s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  z-index: 5;
}

.scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow-glow);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

.floating-shape {
  position: absolute;
  z-index: 3;
  width: min(22vw, 140px);
  fill: none;
  stroke: rgba(255, 213, 79, 0.3);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 12px rgba(255, 213, 79, 0.25));
}

.shape-a {
  top: 20%;
  left: 12%;
  animation: floatY 9s ease-in-out infinite;
}

.shape-b {
  top: 18%;
  right: 8%;
  animation: floatY 11s ease-in-out infinite reverse;
}

.shape-c {
  bottom: 16%;
  right: 18%;
  animation: floatY 8s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.wave-divider {
  line-height: 0;
  margin-top: -1px;
}

.wave-divider path {
  fill: #0e1115;
}

.about {
  background:
    linear-gradient(180deg, #0e1115, #0d1014),
    radial-gradient(circle at 80% 20%, rgba(255, 213, 79, 0.1), transparent 48%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
  max-width: 64ch;
}

.counter-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.counter-card {
  padding: 20px;
  text-align: center;
}

.counter-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--yellow-glow);
  line-height: 1.1;
}

.counter-card p {
  font-size: 0.87rem;
  color: #d0d3d9;
}

.visual-panel {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.22), transparent 70%);
}

.wireframe-svg {
  border-radius: var(--radius-md);
}

.vision {
  background:
    radial-gradient(circle at 50% -30%, rgba(255, 213, 79, 0.2), transparent 40%),
    linear-gradient(180deg, #090a0b 0%, #0b0d10 100%);
  text-align: center;
  overflow: hidden;
}

.vision-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 213, 79, 0.22) 1px, transparent 1px);
  background-size: 100px 100px, 160px 160px;
  background-position: 0 0, 40px 30px;
  opacity: 0.18;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  to {
    transform: translateY(-40px);
  }
}

.vision-inner {
  position: relative;
  z-index: 2;
}

.glow-heading {
  text-shadow: 0 0 12px rgba(255, 213, 79, 0.5);
}

.vision-divider {
  width: min(420px, 65vw);
  height: 2px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--yellow-glow), transparent);
  box-shadow: var(--shadow-neon);
}

.vision-text {
  max-width: 760px;
  margin: 0 auto;
  color: #dbdde2;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.services {
  background: linear-gradient(180deg, #0d1015 0%, #0a0a0a 100%);
}

.service-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 26px;
  transition: transform 0.45s var(--ease-smooth), border-color 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
  transform-style: preserve-3d;
}

.service-card:hover {
  border-color: rgba(255, 213, 79, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 213, 79, 0.5) inset, 0 18px 30px rgba(0, 0, 0, 0.3), 0 0 28px rgba(255, 213, 79, 0.18);
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 1.23rem;
}

.service-card p {
  color: var(--text-muted);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 213, 79, 0.36);
  border-radius: 14px;
  background: rgba(255, 193, 7, 0.07);
  animation: iconPulse 2.8s ease-in-out infinite;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-icon path {
  fill: none;
  stroke: var(--yellow-glow);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 213, 79, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 213, 79, 0.26);
  }
}

.projects {
  background: linear-gradient(180deg, #08090b 0%, #0d1118 100%);
}

.project-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth), border-color 0.45s var(--ease-smooth);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 213, 79, 0.6);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 213, 79, 0.42) inset;
}

.project-art {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-art img {
  width: 100%;
  transition: transform 0.45s var(--ease-smooth);
}

.project-card:hover .project-art img {
  transform: scale(1.04);
}

.project-body {
  padding: 18px 8px 8px;
}

.project-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 79, 0.36);
  color: #fee8a0;
  background: rgba(255, 193, 7, 0.12);
}

.project-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  min-height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fef5cc;
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.3));
  transform: translateY(130%);
  transition: transform 0.42s var(--ease-smooth);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.contact {
  background: linear-gradient(180deg, #0c0f13 0%, #090909 100%);
  overflow: hidden;
}

.contact-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 80%);
  opacity: 0.12;
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-copy p {
  color: var(--text-muted);
}

.contact-copy a {
  color: #ffea9d;
}

.world-map {
  margin-top: 24px;
}

.world-map path,
.world-map circle {
  fill: none;
  stroke: rgba(255, 213, 79, 0.68);
  stroke-width: 2;
  stroke-linecap: round;
}

.world-map circle {
  fill: var(--yellow-primary);
  stroke: none;
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.contact-form {
  padding: 24px;
  border: 1px solid rgba(255, 213, 79, 0.35);
  position: relative;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(110deg, rgba(255, 213, 79, 0.45), transparent, rgba(255, 213, 79, 0.45)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.field {
  position: relative;
  margin-bottom: 18px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(6, 6, 6, 0.45);
  color: #f9fafb;
  padding: 14px;
  font-size: 0.95rem;
  transition: border-color 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 213, 79, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.14);
}

.field label {
  position: absolute;
  top: 13px;
  left: 14px;
  color: #b8bcc2;
  font-size: 0.9rem;
  pointer-events: none;
  transition: transform 0.25s var(--ease-smooth), font-size 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px);
  font-size: 0.72rem;
  color: var(--yellow-glow);
}

.field input:invalid,
.field textarea:invalid {
  box-shadow: none;
}

.error {
  min-height: 16px;
  color: #ffb6b6;
  font-size: 0.78rem;
  display: block;
  margin-top: 6px;
}

.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(20, 20, 20, 0.4);
  border-top-color: #111;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.contact-form.loading .btn-loader {
  display: inline-block;
}

.contact-form.loading .btn-text {
  opacity: 0.8;
}

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

.form-feedback {
  min-height: 22px;
  margin-top: 8px;
  color: #d7ffd2;
}

.site-footer {
  background: linear-gradient(180deg, #08090a 0%, #040404 100%);
  padding-top: 40px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 18px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-layout p {
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #d7d8da;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--yellow-glow);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.social-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 79, 0.64);
  box-shadow: 0 0 20px rgba(255, 213, 79, 0.24);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.social-links path {
  fill: #f2f2f2;
}

.footer-note {
  text-align: center;
  color: #969aa1;
  font-size: 0.84rem;
  padding: 22px 0 28px;
}

.reveal {
  opacity: 0;
  transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}

.reveal-up {
  transform: translate3d(0, 24px, 0);
}

.reveal-left {
  transform: translate3d(-30px, 0, 0);
}

.reveal-right {
  transform: translate3d(30px, 0, 0);
}

.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

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

@media (max-width: 840px) {
  :root {
    --header-h: 74px;
  }

  .cursor-glow {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 5vw;
    width: min(300px, 90vw);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px;
    display: grid;
    gap: 8px;
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(-10px);
    transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  }

  .primary-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .primary-nav a {
    padding: 10px 10px;
    border-radius: 10px;
  }

  .primary-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .service-grid,
  .project-grid,
  .counter-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-actions {
    justify-content: center;
  }

  .floating-shape {
    opacity: 0.55;
  }

  .section {
    padding: 84px 0;
  }
}

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