/* ============================================
   Relfast Solutions & Services — Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: #000;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  height: 72px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #FF6609;
}

.nav-contact {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  transition: color 0.2s;
}

.nav-contact:hover {
  color: #FF6609;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  width: 100%;
  min-height: 732px;
  padding: 170px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 180px;
  right: calc(50% - 520px);
  width: 440px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 38% 38% at 50% 50%,
    #FEE252 0%,
    #EB6B1F 55%,
    #DF3909 100%
  );
  filter: blur(59px);
  opacity: 1;
  z-index: 0;
}

/* Secondary inner glow for vibrancy */
.hero-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    #FEE252 0%,
    #EB6B1F 70%,
    transparent 100%
  );
  filter: blur(25px);
}

/*
 * Fluted glass — CSS recreation of ShaderFlutedGlass
 * Visible but smooth: strong highlights, minimal shadows, wide bands
 */
.hero-glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Layer 1 — frosted base tint across entire glass */
    linear-gradient(
      180deg,
      rgba(255,255,255, 0.07) 0%,
      rgba(255,255,255, 0.04) 100%
    ),
    /* Layer 2 — primary highlight ridges (visible, wide, smooth) */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255, 0.0)   0px,
      rgba(255,255,255, 0.04)  12px,
      rgba(255,255,255, 0.10)  30px,
      rgba(255,255,255, 0.14)  48px,
      rgba(255,255,255, 0.10)  66px,
      rgba(255,255,255, 0.04)  84px,
      rgba(255,255,255, 0.0)   96px
    ),
    /* Layer 3 — secondary offset ridges for depth variation */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255, 0.0)    0px,
      rgba(255,255,255, 0.06)   40px,
      rgba(255,255,255, 0.0)    80px,
      rgba(255,255,255, 0.04)   140px,
      rgba(255,255,255, 0.0)    200px
    ),
    /* Layer 4 — gentle shadow at seams (very subtle) */
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0, 0.025)   0px,
      rgba(0,0,0, 0.008)   10px,
      rgba(0,0,0, 0.0)     22px,
      rgba(0,0,0, 0.0)     74px,
      rgba(0,0,0, 0.008)   86px,
      rgba(0,0,0, 0.025)   96px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.hero-title {
  font-size: 60px;
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000;
  max-width: 500px;
}

.hero-subtitle {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  max-width: 360px;
}

.btn-primary {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 32px;
  background: #FF6609;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

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

/* ---- Tagline ---- */
.tagline {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 80px 40px;
  text-align: center;
}

.tagline-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #000;
  max-width: 900px;
  margin: 0 auto;
}

.highlight-orange {
  background: #FF6609;
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
}

.highlight-blue {
  background: #2379E1;
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
}

.underline-blue {
  text-decoration: underline;
  text-decoration-color: #2379E1;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---- Description ---- */
.description {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 80px 60px;
  text-align: center;
}

.description p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #000;
  max-width: 860px;
  margin: 0 auto;
}

/* ---- Logo Carousel ---- */
.logo-carousel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 80px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.carousel-slide {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
}

.carousel-slide img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.carousel-slide img:hover {
  opacity: 1;
}

.carousel-slide .logo-broadcom {
  height: 36px;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Services ---- */
.services {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 80px 60px;
}

.section-heading {
  font-size: 60px;
  font-weight: 200;
  line-height: 1.2;
  color: #000;
}

.section-heading .fw-regular {
  font-weight: 400;
}

.dot-orange {
  color: #FF6609;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #F0F0F0;
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.service-icon {
  width: 71px;
  height: 71px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

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

.service-title {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  color: #000;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  margin-top: auto;
}

/* ---- About / Mission ---- */
.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 80px 60px;
}

.about-heading {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  max-width: 1100px;
}

.underline-text {
  text-decoration: underline;
  text-decoration-color: #2379E1;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.about-text {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  max-width: 770px;
}

.about .btn-primary {
  margin-top: 40px;
}

/* ---- Images Section ---- */
.images-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 80px 80px;
}

.images-grid {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.img-left {
  width: 375px;
  height: 375px;
  object-fit: cover;
  flex-shrink: 0;
}

.img-right {
  width: 627px;
  height: 550px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---- Key Challenges ---- */
.challenges {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 80px;
}

.challenges-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.challenges-left {
  flex: 1;
  max-width: 540px;
}

.challenges-heading {
  font-size: 60px;
  font-weight: 300;
  line-height: 1.2;
  color: #000;
}

.challenges-sub {
  font-size: 45px;
  font-weight: 300;
  line-height: 1.2;
  color: #000;
  margin-top: 8px;
}

.challenges-text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  margin-top: 24px;
}

.challenges .btn-primary {
  margin-top: 40px;
}

.challenges-right {
  flex: 1;
  position: relative;
  min-height: 800px;
}

.stat-circle {
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  text-align: center;
}

/* >60% — large dark circle, top-right */
.stat-dark {
  width: 391px;
  height: 408px;
  background: #333;
  top: 0;
  right: 40px;
  padding: 60px 50px;
}

/* 5M USD — medium gray circle, middle-left */
.stat-gray {
  width: 272px;
  height: 284px;
  background: #989795;
  top: 384px;
  left: -50px;
  padding: 50px 30px;
}

/* >50% — large mid circle, bottom-right */
.stat-mid {
  width: 346px;
  height: 361px;
  background: #646464;
  top: 424px;
  right: -50px;
  padding: 55px 44px;
}

.stat-number {
  font-size: 75px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.stat-number-sm {
  font-size: 50px;
}

.stat-label {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-top: 4px;
  max-width: 260px;
}

.stat-label-sm {
  font-size: 14px;
  max-width: 215px;
}

/* ---- Footer ---- */
.footer {
  background: #333;
  color: #fff;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 80px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 32px;
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-label {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.footer-block p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
}

.footer-logo-block {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  background: #272727;
  text-align: center;
  padding: 24px 80px;
}

.footer-bottom p {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 40px;
  }

  .hero {
    padding: 150px 0 60px;
  }

  .hero-content {
    padding: 0 40px;
  }

  .hero-title {
    font-size: 44px;
  }

  .tagline, .description, .services, .about, .images-section, .challenges {
    padding-left: 40px;
    padding-right: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-heading {
    font-size: 36px;
  }

  .challenges-content {
    flex-direction: column;
  }

  .challenges-right {
    position: relative;
    min-height: 580px;
    width: 100%;
  }

  .stat-dark {
    width: 280px;
    height: 292px;
    right: 20px;
    top: 0;
    padding: 40px 30px;
  }

  .stat-gray {
    width: 200px;
    height: 210px;
    left: 20px;
    top: 270px;
    padding: 32px 22px;
  }

  .stat-mid {
    width: 250px;
    height: 262px;
    right: 10px;
    top: 300px;
    padding: 38px 30px;
  }

  .stat-number {
    font-size: 58px;
  }

  .stat-number-sm {
    font-size: 38px;
  }

  .stat-label {
    max-width: 200px;
  }

  .stat-label-sm {
    max-width: 170px;
  }

  .images-grid {
    flex-direction: column;
  }

  .img-left, .img-right {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 0 40px;
    min-height: auto;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-glow {
    width: 250px;
    height: 250px;
    top: 140px;
    right: 20px;
    filter: blur(40px);
  }

  .tagline, .description, .services, .about, .images-section, .challenges {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tagline-text, .description p {
    font-size: 16px;
  }

  .section-heading {
    font-size: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .service-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 20px;
    min-height: auto;
    border-radius: 16px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    grid-row: 1 / -1;
    align-self: start;
  }

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

  .service-title {
    font-size: 18px;
    margin-bottom: 0;
    align-self: end;
  }

  .service-desc {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 0;
  }

  .about-heading {
    font-size: 28px;
  }

  .about-text {
    font-size: 16px;
  }

  .challenges-heading {
    font-size: 40px;
  }

  .challenges-sub {
    font-size: 30px;
  }

  .challenges-text {
    font-size: 16px;
  }

  .footer-content {
    padding: 40px 20px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }

  .footer-bottom p {
    font-size: 14px;
  }
}

/* ---- Mobile stat circles (small screens only) ---- */
@media (max-width: 600px) {
  .challenges-right {
    min-height: 560px;
  }

  .stat-dark {
    width: 200px;
    height: 210px;
    left: auto;
    right: 10px;
    top: 0;
    padding: 30px 20px;
  }

  .stat-gray {
    width: 160px;
    height: 168px;
    left: 10px;
    right: auto;
    top: 200px;
    padding: 25px 15px;
  }

  .stat-mid {
    width: 190px;
    height: 200px;
    left: auto;
    right: 10px;
    top: 360px;
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 38px;
  }

  .stat-number-sm {
    font-size: 26px;
  }

  .stat-label {
    font-size: 11px;
    max-width: 150px;
  }

  .stat-label-sm {
    font-size: 10px;
    max-width: 120px;
  }
}
