/* ─── Variables ───────────────────────────────────────────── */
:root {
  --bg:       #080d08;
  --surface:  #0e160e;
  --surface2: #162016;
  --border:   rgba(57, 255, 20, 0.15);
  --accent:   #39FF14;
  --accent2:  #2bc910;
  --accent3:  #7fff6a;
  --text:     #f0f5f0;
  --muted:    #7a9a7a;
  --glow-sm:  0 0 12px rgba(57, 255, 20, 0.4);
  --glow-md:  0 0 28px rgba(57, 255, 20, 0.5);
  --glow-lg:  0 0 60px rgba(57, 255, 20, 0.35);
  --radius:   14px;
  --font:     'Inter', sans-serif;
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Scroll Reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1),
              transform 0.7s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }
[data-reveal][data-delay="6"] { transition-delay: 0.6s; }

/* ─── Navbar ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(8, 13, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  image-rendering: pixelated;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.nav__cta { color: #000; }
.nav__links a.nav__cta:hover { color: #000; }

.nav__cta {
  background: var(--accent);
  color: #080d08;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 8px;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav__cta:hover {
  background: var(--accent3);
  box-shadow: var(--glow-sm);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(8, 13, 8, 0.96);
  border-top: 1px solid var(--border);
  padding: 6px 0;
  margin-top: 8px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__mobile a:hover { color: var(--text); background: rgba(57,255,20,0.04); }
.mobile-link--cta {
  color: var(--accent) !important;
  font-weight: 600;
  opacity: 0.75;
}
.mobile-link--cta:hover { opacity: 1; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 130px 0 80px;
}

/* Animated orb background */
.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orbFloat 14s ease-in-out infinite;
}
.orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(43,201,16,0.28) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
.orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(57,255,20,0.22) 0%, transparent 70%);
  top: 30%; right: -80px;
  animation-delay: -4s;
  animation-duration: 18s;
}
.orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(127,255,106,0.15) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -8s;
  animation-duration: 22s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.96); }
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent3);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s 0.25s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 60%, #a0ff80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s cubic-bezier(.22,.61,.36,1) forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s cubic-bezier(.22,.61,.36,1) forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #080d08;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(57,255,20,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(57,255,20,0.55);
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { width: 16px; height: 16px; }

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section Shared ──────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
}
.section__head { margin-bottom: 56px; }

/* ─── Services ────────────────────────────────────────────── */
.services { background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.35s, transform 0.3s, box-shadow 0.35s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 0%, rgba(57,255,20,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  border-color: rgba(57,255,20,0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(57,255,20,0.14);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: background 0.3s, box-shadow 0.3s;
}
.service-card:hover .service-card__icon {
  background: rgba(57,255,20,0.18);
  box-shadow: var(--glow-sm);
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-card__arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  opacity: 0;
  color: var(--accent);
  font-size: 1.1rem;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-6px);
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Contact Card ────────────────────────────────────────── */
.contact-card {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  border-color: rgba(57,255,20,0.4);
  box-shadow: 0 8px 32px rgba(57,255,20,0.1);
}
.contact-card__info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-card__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 10px;
  background: var(--surface2);
  padding: 4px;
  flex-shrink: 0;
}
.contact-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.contact-card__org {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-card__detail {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-card__detail a {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-card__detail a:hover { color: var(--accent3); }
.contact-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #080d08;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 9px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(57,255,20,0.3);
  flex-shrink: 0;
}
.contact-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(57,255,20,0.5);
}
.contact-card__btn svg {
  width: 15px;
  height: 15px;
}

/* ─── About ───────────────────────────────────────────────── */
.about { background: var(--bg); position: relative; }
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.4), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__text p:last-of-type { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 28px 20px;
  text-align: center;
  background: var(--surface);
  position: relative;
}
.stat + .stat { border-left: 1px solid var(--border); }

.stat__value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Decorative panel */
.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__hex-wrap {
  position: relative;
  width: 380px;
  height: 380px;
}

.hex-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spinRing 20s linear infinite;
}
.hex-ring--outer {
  border: 1px dashed rgba(57,255,20,0.3);
  inset: 0;
}
.hex-ring--mid {
  border: 1px solid rgba(57,255,20,0.2);
  inset: 40px;
  animation-direction: reverse;
  animation-duration: 14s;
}
.hex-ring--inner {
  border: 1px dashed rgba(57,255,20,0.25);
  inset: 90px;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hex-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-logo {
  width: 130px; height: 130px;
  background: radial-gradient(135deg, rgba(43,201,16,0.3), rgba(57,255,20,0.12));
  border: 1px solid rgba(57,255,20,0.45);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hex-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  image-rendering: pixelated;
}

.hex-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.hex-dot:nth-child(1) { top: 12px; left: 50%; transform: translateX(-50%); }
.hex-dot:nth-child(2) { bottom: 12px; left: 50%; transform: translateX(-50%); }
.hex-dot:nth-child(3) { left: 12px; top: 50%; transform: translateY(-50%); }
.hex-dot:nth-child(4) { right: 12px; top: 50%; transform: translateY(-50%); }

/* Floating tech tags */
.tech-tag {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(8px);
  animation: tagFloat 6s ease-in-out infinite;
}
.tech-tag--1 { top: 10%;  left: -5%;  animation-delay: 0s; }
.tech-tag--2 { top: 25%;  right: -8%; animation-delay: -2s; }
.tech-tag--3 { bottom: 18%; left: -4%; animation-delay: -4s; }
.tech-tag--4 { bottom: 30%; right: -6%; animation-delay: -1s; }
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
}
.footer__logo-img {
  height: 32px;
  width: auto;
  image-rendering: pixelated;
}
.footer__logo span { color: var(--accent); }
.footer__copy {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid    { grid-template-columns: 1fr; gap: 56px; }
  .about__visual  { display: none; }
  .about__stats   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger        { display: flex; }
  .nav__logo { font-size: 0.92rem; gap: 6px; }
  .nav__logo-img { height: 32px; }
}

@media (max-width: 767px) {
  .hero__content { text-align: center; }
  .hero__sub      { margin-left: auto; margin-right: auto; }
  .hero__actions  { justify-content: center; }

  .section { padding: 72px 0; }

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

  .about__stats {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
}