/* ===========================
   AfromedX – Global Styles
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --red: #E8131A;
  --red-dark: #c0101b;
  --black: #0d0d0d;
  --dark: #111111;
  --dark-mid: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f8f8f8;
  --gray-text: #555555;
  --gray-muted: #777777;
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ===========================
   NAVBAR
   =========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

.btn-get-started {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-get-started:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('857f6c035c5b78ffa9e452cdb96a207a.avif');
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.5);
  z-index: 0;
}

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

.hero-content h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-content h1 .accent {
  color: var(--red);
}

.hero-content p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-early-access {
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,19,26,0.4);
}

.btn-early-access:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,19,26,0.5);
}

/* ===========================
   ABOUT / FEATURE SECTION
   =========================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 5rem;
  background: var(--white);
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-text h2 .accent {
  color: var(--red);
}

.about-text p {
  font-size: 0.97rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-muted);
  margin-top: 0.15rem;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
  background: var(--dark);
  padding: 5rem 3rem 6rem;
  text-align: center;
}

.services-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.services h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.services-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-icon {
  position: absolute;
  bottom: -18px;
  left: 1.2rem;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(232,19,26,0.5);
  z-index: 2;
}

.card-body {
  padding: 2rem 1.3rem 1.5rem;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.65rem;
}

.card-body p {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.65;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--dark);
  padding: 4rem 5rem 1.5rem;
  color: rgba(255,255,255,0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  max-width: 260px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--red);
}

.social-icons {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}

.social-icon:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about {
    padding: 4rem 3rem;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .about {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  .about-image img {
    height: 300px;
  }
  .services {
    padding: 4rem 1.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .about-stats {
    flex-direction: column;
    gap: 1.2rem;
  }
}
