/* style.css — Home page styles
   Color palette: blue #007BFF and red #FF3131
   Mobile-first, responsive
*/

/* Reset + base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.45;
}

/* Utility */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* HEADER (video) */
.header-video {
  position: relative;
  height: 78vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(0.95);
}

.nav-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  z-index: 1;
}

/* nav-inner centers content */
.nav-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 30px 18px;
}

/* logo and title */
.nav-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.08);
}

.site-title {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  font-weight: 700;
  text-transform: uppercase;
}

/* center panel with CTAs */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  max-width: 920px;
  margin-top: 6px;
}

.intro {
  color: #fff;
  font-weight: 600;
  font-size: 1.6rem;
  text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

/* CTA buttons */
.primary-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* blue, red, and outlined variants */
.btn-blue {background: #520606;  color: #fff; border: 2px solid rgba(248, 246, 246, 0.06); }
.btn-red  { background: #520606; color: #fff; border: 2px solid rgba(0,0,0,0.06); }
.btn-blue-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.54); }

/* hover/tap */
.cta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }

/* little scroll down button */
.scroll-down {
  margin-top: 6px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s;
}
.scroll-down:hover { transform: translateY(-6px); }

/* SECTIONS */
.section { padding: 48px 10px; }
.section h2 { font-size: 1.45rem; margin-bottom: 8px; color: #071133; }
.section .lead { color: #334155; margin-bottom: 18px; }

/* services grid */
/* 🌐 OUR CORE SERVICES SECTION */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

/* Title */
.container h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #520606; /* or #007BFF if you prefer blue theme */
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Decorative underline */
.container h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #007BFF, #FF3131);
}

/* Lead paragraph */
.container .lead {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  margin-top: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Subtle animation */
.container h2,
.container .lead {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.container h2 {
  animation-delay: 0.1s;
}
.container .lead {
  animation-delay: 0.3s;
}

/* Keyframe animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background style (optional) */
.services-section {
  background: #f9fafc;
  background: linear-gradient(180deg, rgba(249,250,252,1) 0%, rgba(255,255,255,1) 100%);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 60px 15px;
  }

  .container h2 {
    font-size: 1.8rem;
  }

  .container .lead {
    font-size: 1rem;
  }
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}
.service-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 6px solid #1c1559;
  box-shadow: 0 8px 30px rgba(2,6,23,0.06);
  transition: transform .28s ease, box-shadow .28s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(2,6,23,0.12); }

/* portfolio teaser */
.teaser-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}
.teaser-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.teaser-item:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(2,6,23,0.12); }
.teaser-media {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: #007BFF;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.teaser-body h4 { margin-bottom: 6px; font-size: 1rem; color: #071133; }



#testimonials h2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #efeded; /* Change to #007BFF for blue or #FF3131 for coral theme */
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}


#testimonials h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #007BFF, #FF3131);
}

/* Subtext */
#testimonials .lead {
  font-size: 1.1rem;
  color: #f7f1f1;
  max-width: 650px;
  margin: 25px auto 50px;
  line-height: 1.7;
  opacity: 0.9;
}
/* FAQ layout */
.faq-row {
  display: grid;
  grid-template-columns: 2fr;
  gap: 18px;
  align-items: start;
  margin-top: 10px;
}

/* robot area */
.robot-wrap { display: grid; place-items: center; gap: 12px; background: linear-gradient(180deg,#ffffff,#f7fbff); padding: 16px; border-radius: 12px; box-shadow: 0 8px 26px rgba(2,6,23,0.06); }
.robot-btn { margin-top: 6px; padding: 8px 12px; border-radius: 999px; border: none; background:#007BFF; color:#fff; font-weight:700; cursor:pointer; }

/* styling the FAQ column and items */
.faq-right .faq-item { margin-bottom: 12px; border-radius: 10px; overflow: hidden; border: 1px solid #e6eefb; }
.faq-question { width: 100%; padding: 12px 14px; text-align: left; background:#f8fafc; border:none; cursor:pointer; font-weight:600; }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 14px; transition: max-height .34s ease; background: #ffffff; }
.faq-item.active .faq-answer { max-height: 160px; padding: 12px 14px; }

/* Footer */
.footer {  background:rgb(15, 15, 70); color: #fff; padding: 20px; text-align:center; }
.footer-logo { width:56px; height:auto; margin-bottom:10px; }

/* REVEAL ANIMATIONS (initially hidden -> reveal via JS) */
.reveal { opacity: 0; transform: translateY(18px) scale(0.995); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* Robot hand bend animation (applied via js toggled class "wave") */
#left-arm, #right-arm { transform-origin: center top; transition: transform 350ms cubic-bezier(.2,.9,.3,1); }
svg.wave #left-arm { transform: translate(50px,80px) rotate(-35deg) translate(-50px,-80px); }
svg.wave #right-arm { transform: translate(150px,80px) rotate(35deg) translate(-150px,-80px); }

/* Desktop layout: two-column grids */
@media (min-width: 820px) {
  .service-grid { grid-template-columns: repeat(3,1fr); }
  .teaser-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-row { grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
  .robot-wrap { width: 260px; }
}

/* Smaller desktop tweaks */
@media (min-width: 1100px) {
  .header-video { height: 84vh; }
  .intro { font-size: 2rem; }
}

/* Accessibility focus */
a:focus, button:focus { outline: 3px solid rgba(0,123,255,0.18); outline-offset: 3px; }

/* ensure images don't overflow */
img { max-width: 100%; display: block; }
/* ===== TESTIMONIALS ===== */
.testimonials {
  background:rgb(15, 15, 70);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 30px 10px;
  margin: 30px auto;
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
  max-width: 750px;
  margin: 30px auto 0;
}

.testimonial {
  opacity: 0;
  transform: translateY(30px);
  position: absolute;
  inset: 0;
  transition: all 0.8s ease-in-out;
  padding: 25px;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
}

.author {
  margin-top: 10px;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
