/*====================================================
  FILE: assets/css/style.css
  BRAND: Bitlite Infotech Solutions
====================================================*/

/* === BASE & FONT STYLES === */
:root {
  --bitlite-blue: #1221d9;
  --bitlite-red: #ff0202;
  --bitlite-dark: #0b1220;
  --bitlite-light-blue: #e8ebff;
  --bitlite-footer-grad-a: #1221d9;
  --bitlite-footer-grad-b: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/*====================================================
  TOP BAR
====================================================*/
.top-bar {
  background: var(--bitlite-blue);
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}

.top-bar .left-links a {
  color: #fff;
  text-decoration: none;
  margin-right: 18px;
  transition: color 0.25s ease;
}
.top-bar .left-links a:hover {
  color: var(--bitlite-red);
}

.top-bar .social-icons a {
  color: #fff;
  margin-right: 10px;
  transition: color 0.25s ease, transform 0.15s ease;
}
.top-bar .social-icons a:hover {
  color: var(--bitlite-red);
  transform: translateY(-2px);
}

.top-bar .search-box {
  position: relative;
}
.top-bar .search-box input {
  padding-left: 28px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  padding: 5px 10px 5px 30px;
}
.top-bar .search-box i {
  position: absolute;
  top: 7px;
  left: 10px;
  color: #999;
  font-size: 13px;
}

/*====================================================
  NAVBAR
====================================================*/
.navbar {
  background: linear-gradient(90deg, #fff, #f7f9ff);
  transition: all 0.4s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(6px);
}
.navbar-brand img {
  height: 50px;
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: #333 !important;
  padding: 10px 15px;
  transition: color 0.3s ease, transform 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--bitlite-blue) !important;
  transform: translateY(-2px);
}
.navbar .btn-primary {
  border-radius: 20px;
  padding: 6px 20px;
}

/*====================================================
  HOVER & SHADOW ENHANCEMENTS
====================================================*/
.card, .service-card, .counter-box {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
}
.card:hover, .service-card:hover, .counter-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(18, 33, 217, 0.12);
}

/*====================================================
  SMOOTH FADE ON SCROLL
====================================================*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/*====================================================
  MEDIA QUERIES
====================================================*/
@media (max-width: 768px) {
  .top-bar {
    text-align: center;
  }
  .top-bar .d-flex {
    flex-direction: column;
    gap: 6px;
  }
  .navbar-brand img {
    height: 44px;
  }
}


/*====================================================
  LINKS & BUTTONS
====================================================*/
a {
  color: var(--bitlite-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--bitlite-red); }

.btn-primary {
  background-color: var(--bitlite-blue) !important;
  border-color: var(--bitlite-blue) !important;
  color: #fff !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(18,33,217,0.08);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--bitlite-red) !important;
  border-color: var(--bitlite-red) !important;
  box-shadow: 0 10px 30px rgba(255,2,2,0.12);
}

.btn-outline-primary {
  color: var(--bitlite-blue) !important;
  border-color: var(--bitlite-blue) !important;
}
.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--bitlite-blue) !important;
}

/*====================================================
  HERO SECTION (index page)
====================================================*/
.hero {
  background: linear-gradient(90deg, rgba(240,248,255,1) 0%, rgba(255,255,255,1) 100%);
}
#heroCarousel {
  position: relative;
  overflow: hidden;
}
#heroCarousel .carousel-item {
  transition: opacity 0.6s ease, transform 0.8s ease;
}
.hero-img {
  max-height: 360px;
  width: auto;
  pointer-events: none;
}
#heroCarousel h1, #heroCarousel p {
  animation: fadeInUp 0.9s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  #heroCarousel h1 { font-size: 1.8rem; }
  .hero-img { max-height: 220px; }
}

/*====================================================
  CARDS, TABS & SECTIONS
====================================================*/
.card {
  border: 1px solid rgba(18, 33, 217, 0.08);
  border-radius: 12px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--bitlite-blue);
  box-shadow: 0 10px 30px rgba(18, 33, 217, 0.12);
}
.card-title { color: var(--bitlite-blue); }
.card-text { color: #444; }

.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
  color: var(--bitlite-blue);
  font-weight: 500;
}
.nav-tabs .nav-link:hover { color: var(--bitlite-red); }
.nav-tabs .nav-link.active {
  background-color: var(--bitlite-blue);
  color: #fff;
}

/*====================================================
  SERVICES SECTION
====================================================*/
.services-section {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.service-card {
  background: #fff;
  border-radius: 14px;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  border-top: 3px solid transparent;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.service-card:hover {
  transform: translateY(-8px);
  border-top: 3px solid var(--bitlite-blue);
  box-shadow: 0 18px 50px rgba(18,33,217,0.08);
}
.service-icon {
  font-size: 2.25rem;
  background: rgba(18, 33, 217, 0.08);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  line-height: 70px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: all 0.32s ease;
}
.service-card:hover .service-icon {
  background: var(--bitlite-red);
  color: #fff !important;
  transform: scale(1.06);
}

/* make small action button subtle so card click handles modal */
.service-card .btn {
  pointer-events: none; /* so a click bubbles to the card element */
}

/*====================================================
  ANIMATIONS & SCROLL EFFECTS
====================================================*/
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/*====================================================
  SCROLL TO TOP BUTTON
====================================================*/
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--bitlite-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
  transition: opacity 0.35s, transform 0.28s, background-color 0.2s;
  z-index: 999;
  display: none;
  align-items:center;
  justify-content:center;
}
#scrollTopBtn:hover { background-color: var(--bitlite-red); transform:translateY(-4px); }
#scrollTopBtn.show{ display:flex; opacity:1; transform:scale(1); }
#scrollTopBtn.hide{ opacity:0; transform:scale(0.95); }

/*====================================================
  WHATSAPP FLOAT BUTTON
====================================================*/
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 92px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.whatsapp-float i { line-height: 55px; }
.whatsapp-float:hover {
  transform: scale(1.07);
  background-color: #128C7E;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* subtle pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float { animation: pulse 2.5s infinite; }

/*====================================================
  ALERT & MODAL FIXES
====================================================*/
.alert-success {
  background-color: var(--bitlite-light-blue);
  border-color: var(--bitlite-blue);
  color: var(--bitlite-blue);
  font-weight: 500;
  transition: opacity 0.5s ease;
}
.alert-success.fade-out { opacity: 0; pointer-events:none; }

/* make sure modals appear above everything but below global overlays */
.modal { z-index: 1055 !important; }
.modal-backdrop { z-index: 1050 !important; }

/* ensure key elements stack properly */
#heroCarousel, section, .navbar, header {
  position: relative;
  z-index: 1;
}

/*====================================================
  FOOTER
====================================================*/
footer,
.footer-section {
  background: linear-gradient(135deg, var(--bitlite-footer-grad-a) 0%, var(--bitlite-footer-grad-b) 100%);
  color: #f8f9fa;
  padding-top:2.5rem;
}
.footer-link { color: #ddd; text-decoration:none; transition: color .25s, transform .18s; }
.footer-link:hover { color: var(--bitlite-red); transform: translateX(3px); }
.social-icons a { color: #fff; font-size: 1.2rem; transition: color .25s, transform .25s; }
.social-icons a:hover { color: var(--bitlite-red); transform: scale(1.12); }

/* small screens spacing */
@media (max-width: 576px){
  .top-bar { font-size:13px; padding:6px 0; }
  .service-icon { width:62px; height:62px; line-height:62px; }
  .hero-img { max-height:200px; }
}


/*====================================================
  HERO SECTION (About Us page)
====================================================*/
.about-hero {
  position: relative;
  min-height: 70vh; /* reduced from 85vh */
  background: linear-gradient(to right, rgba(18,33,217,0.85), rgba(10,10,10,0.9)),
              url('../images/hero-bg.webp') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
  z-index: 1;
}

.about-hero .container {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.about-hero h1 {
  font-size: 2.6rem;
  line-height: 1.3;
}

.about-hero p.lead {
  font-size: 1.1rem;
  color: #e9ebff;
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 55vh;
    padding: 40px 0;
  }
  .about-hero h1 {
    font-size: 1.9rem;
  }
  .about-hero p.lead {
    font-size: 1rem;
  }
}

/* Hero Animations */
.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1.2s forwards ease-out;
}
.animate-fade {
  opacity: 0;
  animation: fadeIn 1.5s forwards ease-in-out;
  animation-delay: 0.3s;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #f9faff 0%, #e8ebff 100%);
  border-top: 1px solid rgba(18,33,217,0.08);
  border-bottom: 1px solid rgba(18,33,217,0.08);
  transition: all 0.4s ease;
}
.cta-section:hover {
  background: linear-gradient(135deg, #eaf0ff 0%, #ffffff 100%);
  transform: translateY(-3px);
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: #f8faff;
}
.team-card {
  background: #fff;
  transition: all 0.35s ease;
  border: 1px solid rgba(18,33,217,0.08);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(18,33,217,0.12);
}
.team-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.team-img {
  transition: transform 0.45s ease, filter 0.45s ease;
  width: 100%;
}
.team-card:hover .team-img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.team-info h5 {
  color: var(--bitlite-blue);
}
.team-social a {
  color: var(--bitlite-blue);
  margin: 0 6px;
  font-size: 1rem;
  transition: all 0.25s ease;
}
.team-social a:hover {
  color: var(--bitlite-red);
  transform: scale(1.15);
}

/* ====================================================
   CALL TO ACTION (CTA) SECTION
==================================================== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #f9faff 0%, #e8ebff 100%);
  padding: 80px 0;
  border-top: 1px solid rgba(18, 33, 217, 0.08);
  border-bottom: 1px solid rgba(18, 33, 217, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(18, 33, 217, 0.08), transparent 70%);
  opacity: 0.6;
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.2rem;
  color: #1221d9;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 25px;
}

/* ===== Gradient Button ===== */
.btn-primary-gradient {
  background: linear-gradient(90deg, #1221d9 0%, #5468ff 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 36px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(18, 33, 217, 0.15);
}

.btn-primary-gradient:hover {
  background: linear-gradient(90deg, #0e1cc2 0%, #3548e0 100%);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(18, 33, 217, 0.25);
  color: #fff;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .cta-section {
    padding: 60px 15px;
  }
  .cta-section h2 {
    font-size: 1.8rem;
  }
  .cta-section p {
    font-size: 1rem;
  }
}


/*====================================================
  COUNTERS SECTION
====================================================*/
.counters {
  background: linear-gradient(135deg, #f4f7ff 0%, #e9f0ff 100%);
  transition: all 0.5s ease;
  padding: 70px 0;
}

.counter-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(18, 33, 217, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(18, 33, 217, 0.12);
}

.counter {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--bitlite-blue);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.counter-box:hover .counter {
  color: var(--bitlite-red);
}

.counter-box p {
  font-weight: 500;
  color: #555;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .counter {
    font-size: 2.2rem;
  }
}


/* ===== Projects Hero ===== */
.projects-hero {
  background: linear-gradient(135deg, #1221d9, #4b6fff);
  min-height: 70vh;
  position: relative;
}
.projects-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 40, 0.45);
}
.projects-hero .container {
  z-index: 2;
}

/* ===== Project Cards ===== */
.project-card {
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 1rem;
}
.project-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: all 0.5s ease;
}
.project-card:hover .project-img {
  transform: scale(1.05);
  filter: brightness(70%);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 33, 217, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 1rem;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay h5,
.project-overlay p {
  color: #fff;
}

/* ===== Modal Enhancements ===== */
.modal-content {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.modal-body img {
  max-height: 350px;
  object-fit: cover;
}


/* == Form Control == */

.form-label {
  font-weight: 500;
  color: var(bitlite-dark);
}
.form-control, .form-select {
  border-radius: 8px;
}
@media (max-width: 768px) {
  .card { padding: 20px; }
}