/* =============================================
   SPARKBOT TECHNOLOGIES — styles.css
   ============================================= */

/* ───── CUSTOM FONT ───── */
@font-face {
  font-family: "Ethnocentric";
  src: url("../fonts/Ethnocentric-Regular.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #2ecc71;
  --dark-green: #27ae60;
  --deeper-green: #1e8449;
  --light-green: #eafaf1;
  --text-dark: #1a1a2e;
  --text-gray: #6c757d;
  --text-light: #999;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ───── NAVBAR ───── */
.navbar {
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo .logo-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.brand-logo .brand-name {
  font-size: 2rem;
  font-weight: 900;
  line-height: 0;
  color: #111;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Ethnocentric", "Poppins", sans-serif;
  position: relative;
  top: 4px;
}
.brand-logo .brand-name span {
  color: var(--green);
}
.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: #444 !important;
  padding: 6px 12px !important;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green) !important;
}
.btn-nav-contact {
  background: var(--green);
  color: #fff !important;
  border-radius: 20px;
  padding: 7px 20px !important;
  font-weight: 600;
  font-size: 0.82rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-nav-contact:hover {
  background: var(--dark-green);
  transform: translateY(-1px);
}

/* ───── HERO ───── */
#home {
  background: linear-gradient(130deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  min-height: 88vh;
  position: relative;
  overflow: hidden;
  padding: 70px 0 50px;
}
#home::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -150px;
  right: -100px;
  pointer-events: none;
}
#home::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-h1 .highlight {
  color: #1a1a2e;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 2px 10px;
  display: inline-block;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 20px 0 30px;
  max-width: 440px;
}
.btn-hero-white {
  background: #fff;
  color: var(--green) !important;
  border-radius: 30px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-hero-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-hero-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  margin-left: 12px;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Stats */
.hero-stats {
  margin-top: 45px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-box {
  padding-right: 28px;
}
.stat-box:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 28px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

/* Robot Animation */
.robot-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.robot-svg {
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

.float-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 3s ease-in-out infinite alternate;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}
.fc1 {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 20px;
  animation-delay: 0.5s;
}
.fc2 {
  width: 52px;
  height: 52px;
  bottom: 40px;
  left: 10px;
  animation-delay: 1s;
}
.fc3 {
  width: 38px;
  height: 38px;
  top: 45%;
  left: 0px;
  animation-delay: 1.5s;
}

/* Social Sidebar */
.social-fixed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.social-fixed a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: width 0.25s;
}
.social-fixed a:hover {
  width: 44px;
}
.sf-fb {
  background: #1877f2;
}
.sf-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.sf-li {
  background: #0077b5;
}
.sf-yt {
  background: #ff0000;
}

/* ───── SECTION COMMONS ───── */
.sec-title {
  font-size: 1.75rem;
  font-weight: 800;
}
.sec-title span {
  color: var(--green);
}
.sec-sub {
  color: var(--text-gray);
  font-size: 0.88rem;
  max-width: 520px;
  margin: 10px auto 0;
  line-height: 1.7;
}
.py-section {
  padding: 80px 0;
}

/* ───── ABOUT CARDS ───── */
.about-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 18px;
  transition: all 0.3s;
}
.about-card:hover {
  box-shadow: 0 15px 40px rgba(46, 204, 113, 0.15);
  transform: translateY(-5px);
}
.a-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: var(--light-green);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a-icon i {
  font-size: 30px;
  color: var(--green);
}
.about-card h5 {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.about-card p {
  font-size: 0.84rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
}

/* ───── OFFER BANNER ───── */
.offer-banner {
  background: var(--green);
  padding: 55px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.offer-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -100px;
  left: -80px;
  pointer-events: none;
}
.offer-banner h2 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
}
.offer-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin-top: 8px;
}

/* ───── SERVICE CARDS ───── */
.service-card {
  border: 1.5px solid #e8f8f0;
  border-radius: 20px;
  padding: 32px 24px;
  height: 100%;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: 0 15px 40px rgba(46, 204, 113, 0.13);
  transform: translateY(-5px);
}
.s-icon {
  width: 60px;
  height: 60px;
  background: var(--light-green);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.s-icon i {
  font-size: 26px;
  color: var(--green);
}
.service-card h5 {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.83rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-card ul li {
  font-size: 0.82rem;
  color: var(--text-gray);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.service-card ul li .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ───── GALLERY CAROUSEL ───── */
#galleryCarousel .carousel-item {
  border-radius: 18px;
  overflow: hidden;
}
#galleryCarousel .carousel-inner {
  border-radius: 18px;
}

.gallery-slide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px;
}
@media (max-width: 767px) {
  .gallery-slide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.g-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.g-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.g-thumb:hover img {
  transform: scale(1.08);
}
.g-thumb .g-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 18px 10px 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.g-thumb:hover .g-label {
  opacity: 1;
}

/* Carousel Controls */
.gallery-carousel-wrap {
  position: relative;
}
.gallery-carousel-wrap .carousel-control-prev,
.gallery-carousel-wrap .carousel-control-next {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.35);
  transition: background 0.2s;
}
.gallery-carousel-wrap .carousel-control-prev {
  left: -22px;
}
.gallery-carousel-wrap .carousel-control-next {
  right: -22px;
}
.gallery-carousel-wrap .carousel-control-prev:hover,
.gallery-carousel-wrap .carousel-control-next:hover {
  background: var(--dark-green);
}
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  opacity: 1;
}
.carousel-indicators .active {
  background: var(--green);
}

/* ───── CONTACT ───── */
.contact-card {
  background: var(--green);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  color: #fff;
  height: 100%;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(46, 204, 113, 0.3);
}
.c-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.c-icon i {
  font-size: 28px;
}
.contact-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 0.84rem;
  opacity: 0.88;
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn-c-action {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 25px;
  padding: 8px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-c-action:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* ───── FOOTER ───── */
footer {
  background: #0d1b2a;
  padding: 55px 0 0;
}
.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Ethnocentric", "Poppins", sans-serif;
}
.footer-brand-name span {
  color: var(--green);
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  line-height: 1.7;
}
footer h6 {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.84rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--green);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  margin-bottom: 10px;
}
.footer-contact-item i {
  color: var(--green);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-right: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.footer-social a:hover {
  background: var(--green);
  color: #fff;
}
.footer-bottom {
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  margin-top: 40px;
}

/* ───── BACK TO TOP ───── */
#btt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.4);
}
#btt.show {
  opacity: 1;
  pointer-events: auto;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
  .hero-h1 {
    font-size: 2rem;
  }
  .robot-svg {
    width: 200px;
  }
  .social-fixed {
    display: none;
  }
  .stat-num {
    font-size: 1.5rem;
  }
}
