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

:root {
  --bg: #141517;
  --accent: #ff4d4d;
  --accent2: #3d8bff;
  --text: #e8eaf0;
  --muted: #6b7280;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
}

html {
  scroll-behavior: smooth;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: linear-gradient(to bottom, rgba(8, 12, 16, 0.95) 0%, transparent 100%);
  backdrop-filter: blur(6px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  padding-top: 18vh;
  overflow: hidden;
  background: url('images/bg3.png') center / cover no-repeat;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem;
  max-width: 1000px;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: #fff;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SERVICES ── */
#services {
  position: relative;
  padding: clamp(4rem, 7vw, 10rem) clamp(2rem, 5vw, 8rem);
  background: var(--bg);
  margin-top: 8rem;
}

.section-grid {
  display: flex;
  gap: clamp(2rem, 4vw, 6rem);
  justify-content: center;
  align-items: stretch;
}

.section-left {
  position: relative;
  flex: 0 0 clamp(260px, 29vw, 520px);
  padding: clamp(1.5rem, 2vw, 3rem);
  background: url('images/bg2.png') center / cover no-repeat;
  overflow: hidden;
}

.section-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 23, 0.55);
  pointer-events: none;
}

.section-left>* {
  position: relative;
  z-index: 1;
}

.section-title {
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-body {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.btn-primary {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #ff3333;
  transform: translateY(-2px);
}

/* ── CARDS ── */
.cards-right {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.cards-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 1.8vw, 2.2rem);
  width: clamp(180px, 18vw, 300px);
  flex-shrink: 0;
}

.cards-col--offset {
  margin-top: 4rem;
}

.card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.card-icon {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0 auto 1.1rem;
  color: var(--accent);
}

.card-title {
  flex-shrink: 0;
  font-weight: 400;
  font-size: 0.95rem;
  color: #879de6;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.card-body {
  flex: 1;
  font-size: clamp(0.82rem, 1vw, 1.05rem);
  line-height: 2;
  color: var(--muted);
}

.card-divider {
  flex-shrink: 0;
  width: 80%;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  margin: 1.4rem auto 0;
  border-radius: 1px;
}

/* ── STATS ── */
#stats {
  position: relative;
  padding: 7rem 4rem;
  background: var(--bg);
  margin-top: 3rem;
}

.stats-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stats-heading {
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 6rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-line {
  width: 120px;
  height: 1px;
  background: var(--card-border);
  margin: 0.8rem auto 0;
}

/* ── BG STRIP ── */
.bg-strip {
  position: relative;
  height: 420px;
  background: url('images/bg1.png') center / cover no-repeat;
}

.bg-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}

.bg-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ── FOOTER ── */
footer {
  padding: 3rem 4rem;
  background: var(--bg);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-details {
  margin-top: 1.2rem;
}

.footer-email {
  height: 1.6em;
  width: auto;
  vertical-align: middle;
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--card-border);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── HAMBURGER NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  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-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8, 12, 16, 0.97);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.2rem;
  border-bottom: 1px solid var(--card-border);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-link {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile-link:hover {
  color: var(--accent);
}

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-link {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  #hero {
    padding-top: 22vh;
  }

  .hero-content {
    padding: 0 2rem;
  }

  #services {
    padding: 4rem 2rem;
    margin-top: 4rem;
  }

  .section-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .section-left {
    flex: 0 0 auto;
    width: 100%;
  }

  .cards-right {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-col {
    width: 100%;
  }

  .cards-col--offset {
    margin-top: 0;
  }

  .bg-strip {
    height: 260px;
  }

  #stats {
    padding: 5rem 2rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {
  nav {
    padding: 0.9rem 1.2rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .hero-sub {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
  }

  #services {
    padding: 3rem 1.2rem;
    margin-top: 2rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-body {
    font-size: 0.88rem;
  }

  .card {
    padding: 1.4rem 1.2rem;
  }

  .card-body {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .stats-heading {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    margin-bottom: 3rem;
  }

  .stat-num {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  #stats {
    padding: 3.5rem 1.2rem;
  }

  .bg-strip {
    height: 180px;
  }

  footer {
    padding: 1.8rem 1.2rem;
    font-size: 0.72rem;
  }
}