/* =====================================================
GLOBAL
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background: #fff;
  color: white;
}


/* =====================================================
HERO SECTION
===================================================== */
.hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
}


/* welcome box */
.welcome-box {
  width: 600px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.welcome-box h1 {
  font-size: 38px;
  margin-bottom: 16px;
  text-align: center;
}

.welcome-box h4 {
  text-align: center;
  color: #ffff00;
  font-weight: normal;
}

.welcome-box p {
  line-height: 1.6;
  color: #ddd;
  text-align: center;
}


/* animated logo pulse */
.hero-logo img {
  width: 320px;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}



/* =====================================================
SERVICES SECTION
===================================================== */
.services {
  position: relative;
}


/* smooth flowing gradient */
.gradient-bg {
  position: absolute;
  inset: 0;
  z-index: -2;

  background: linear-gradient(
    180deg,
    #9b0000 0%,      /* red start */
    #9b0000 25%,

    #ffd800 30%,    /* blend into yellow */
    #ffd800 50%,

    #00b140 55%,    /* blend into green */
    #00b140 75%,

    #ffffff 85%,    /* blend into white */
    #ffffff 100%
  );

  opacity: 1;
}


/* each service block */
.service {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 80px 10%;
  position: relative;
}


/* video */
.service video {
  width: 45%;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}


/* text */
.text {
  width: 420px;
}

.text h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.text p {
  line-height: 1.6;
  color: #eee;
}

.text.dark p {
  color: #333;
}

.white {
  color: #111;
  gap: 70px;
}

.yellow .text h2,
.yellow .text p {
  color: #000;
}

.learn-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;

  border-radius: 8px;
  text-decoration: none;

  background: rgba(0,0,0,0.75);
  color: white;

  font-weight: 600;
  letter-spacing: 0.5px;

  transition: 0.25s ease;
}

.learn-btn:hover {
  background: #ffd800;
  color: #000;
  transform: translateY(-3px) scale(1.05);
}



/* =====================================================
FLOATING IMAGES (animated)
===================================================== */
.float {
  position: absolute;
  width: 140px;
  opacity: 0.85;
  animation: float 8s infinite ease-in-out alternate;
}

.f1 { top: 10%; left: 1%; }
.f2 { bottom: 15%; right: 20%; }
.f3 { top: 40%; right: 5%; }

@keyframes float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-30px); }
}



/* =====================================================
WHITE SECTION GRID (ordered, NOT animated)
===================================================== */
.grid-links {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  gap: 28px;
}

.grid-links img {
  width: 100px;
  height: 100px;          /* forces same size */
  object-fit: cover;      /* crops nicely instead of stretching */
  border-radius: 12px;
  cursor: pointer;

  transition: 0.25s;
}



@media (max-width: 900px) {

  /* =========================
     HERO FIX (CENTER PROPERLY)
  ========================= */
  .hero {
    height: 100vh;
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;   /* vertical center */
    align-items: center;       /* horizontal center */
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .welcome-box {
    width: 100%;
    max-width: 95%;
    padding: 24px;
  }

  /* hide hero logo (cleaner mobile) */
  .hero-logo {
    display: none;
  }


  /* =========================
     SERVICES STACK
  ========================= */
  .service {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .service video {
    width: 100%;
  }

  .text {
    width: 100%;
  }


  /* =========================
     REMOVE FLOATING IMAGES
  ========================= */
  .float,
  .f1,
  .f2,
  .f3 {
    display: none !important;
  }


    .grid-links {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 18px;
  }

  .grid-links img {
    width: 90px;
    height: 90px;
  }

}
