/* =========================================================
   Bluegarden Techsoft Pvt. Ltd. — Main Stylesheet
   Author: Bluegarden Web Team
   Sections:
     1.  Root / Variables & Base
     2.  Topbar
     3.  Header / Navigation
     4.  Buttons & Utilities
     5.  Hero Slider (Carousel)
     6.  Page Banner (inner pages)
     7.  About Section
     8.  Services Section
     9.  Testimonials + Enquiry Form
     10. Stats / Counter
     11. Footer
     12. Scroll-to-top & Animations
     13. Responsive Tweaks
   ========================================================= */

/* ---------- 1. Root / Variables & Base ---------- */
:root {
  --bg-primary: #1e5fe6;        /* bright corporate blue */
  --bg-primary-dark: #1546b3;
  --bg-accent: #3b9dff;         /* light blue accent     */
  --bg-navy: #0a1535;           /* deep navy             */
  --bg-navy-2: #0d1c47;
  --bg-dark-text: #0a1f54;
  --bg-body-text: #4a5573;
  --bg-light: #f4f7ff;
  --bg-white: #ffffff;
  --bg-shadow: 0 10px 40px rgba(13, 28, 71, .08);
  --bg-shadow-hover: 0 18px 50px rgba(30, 95, 230, .22);
  --bg-radius: 14px;
  --bg-transition: all .35s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--bg-body-text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--bg-dark-text);
  line-height: 1.25;
}

a { text-decoration: none; transition: var(--bg-transition); }

img { max-width: 100%; height: auto; }

.section-padding { padding: 90px 0; }

.text-blue { color: var(--bg-primary) !important; }

/* Section title helper */
.section-head { margin-bottom: 50px; }
.section-head .subtitle {
  color: var(--bg-primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 8px;
  display: inline-block;
}
.section-head h2 { font-size: clamp(1.0rem, 3vw, 1.6rem); }
.section-head .head-line {
  width: 70px; height: 4px; border-radius: 4px;
  background: var(--bg-primary); margin: 14px 0 0;
}
.section-head.text-center .head-line { margin: 14px auto 0; }

/* ---------- 2. Topbar ---------- */
.topbar {
  background: var(--bg-navy);
  color: #d7e0f5;
  font-size: .9rem;
  padding: 9px 0;
}
.topbar a { color: #d7e0f5; }
.topbar a:hover { color: var(--bg-accent); }
.topbar .topbar-info span { margin-right: 22px; }
.topbar .topbar-info i { color: var(--bg-accent); margin-right: 7px; }
.topbar .social a {
  width: 30px; height: 30px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%; margin-left: 6px; font-size: .85rem;
}
.topbar .social a:hover { background: var(--bg-primary); color: #fff; transform: translateY(-2px); }

/* ---------- 3. Header / Navigation ---------- */
.main-header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(13, 28, 71, .06);
  position: sticky; top: 0; z-index: 1030;
  transition: var(--bg-transition);
}
.navbar-brand img { height: 70px; }
.navbar .nav-link {
  color: var(--bg-dark-text);
  font-weight: 600;
  margin: 0 6px;
  position: relative;
  padding: 10px 8px !important;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: 8px; bottom: 4px;
  width: 0; height: 2px; background: var(--bg-primary);
  transition: var(--bg-transition);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: calc(100% - 16px); }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--bg-primary); }
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- 4. Buttons & Utilities ---------- */
.btn {
  font-weight: 600; border-radius: 8px;
  padding: 12px 26px; transition: var(--bg-transition);
}
.btn-primary {
  background: var(--bg-primary); border-color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--bg-primary-dark); border-color: var(--bg-primary-dark);
  transform: translateY(-3px); box-shadow: var(--bg-shadow-hover);
}
.btn-outline-light:hover { color: var(--bg-primary); transform: translateY(-3px); }
.btn-get {
  background: var(--bg-primary); color: #fff !important;
  border-radius: 8px; padding: 10px 22px;
}
.btn-get:hover { background: var(--bg-primary-dark); transform: translateY(-2px); }

/* ---------- 5. Hero Slider ---------- */
.hero-carousel .carousel-item {
  height: 88vh; min-height: 560px;
  background-size: cover; background-position: center;
  position: relative;
}
.hero-carousel .carousel-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(7,16,46,.92) 0%, rgba(10,21,53,.78) 45%, rgba(13,28,71,.45) 100%);
}
.hero-carousel .carousel-caption {
  position: absolute; top: 50%; left: 0; right: auto;
  transform: translateY(-50%);
  text-align: left; max-width: 640px;
  padding: 0 12px;
}
.hero-carousel .hero-tag {
  color: var(--bg-accent); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .9rem; display: block; margin-bottom: 14px;
}
.hero-carousel h1 {
  color: #fff; font-size: clamp(1rem, 4.5vw, 1.9rem);
  font-weight: 800; margin-bottom: 18px;
}
.hero-carousel h1 span { color: var(--bg-accent); }
.hero-carousel p {
  color: #d7e0f5; font-size: 1.1rem; margin-bottom: 30px; max-width: 540px;
}
.hero-carousel .carousel-indicators { bottom: 30px; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 5%; opacity: .7; }
/* Smooth fade between slides */
.carousel-fade .carousel-item { transition: opacity 1s ease; }

/* ---------- 6. Page Banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(110deg, rgba(7,16,46,.93), rgba(13,28,71,.8)),
              url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  padding: 90px 0;
  color: #fff;
}
.page-banner h1 { color: #fff; font-size: clamp(1rem, 4vw, 2rem); }
.page-banner h1 span { color: var(--bg-accent); }
.page-banner .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-banner .breadcrumb a { color: #d7e0f5; }
.page-banner .breadcrumb-item.active { color: var(--bg-accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #8ea4d6; }

/* ---------- 7. About Section ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--bg-radius); box-shadow: var(--bg-shadow); }
.about-img-wrap .exp-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--bg-primary); color: #fff;
  border-radius: var(--bg-radius); padding: 18px 26px;
  box-shadow: var(--bg-shadow-hover);
}
.about-img-wrap .exp-badge strong { font-size: 2rem; display: block; line-height: 1; }
.about-feature { display: flex; gap: 14px; margin-bottom: 18px; }
.about-feature i {
  color: var(--bg-primary); font-size: 1.3rem; margin-top: 4px;
}

/* ---------- 8. Services Section ---------- */
.services-section { background: var(--bg-light); }
.service-card {
  background: #fff; border-radius: var(--bg-radius);
  padding: 36px 28px; height: 100%;
  border: 1px solid #eef2fb;
  box-shadow: var(--bg-shadow);
  transition: var(--bg-transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 100%; height: 4px; background: var(--bg-primary);
  transform: scaleX(0); transform-origin: left; transition: var(--bg-transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--bg-shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 70px; height: 70px; border-radius: 16px;
  background: linear-gradient(135deg, #eaf2ff, #d8e6ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--bg-primary);
  margin-bottom: 22px; transition: var(--bg-transition);
}
.service-card:hover .service-icon {
  background: var(--bg-primary); color: #fff; transform: rotateY(360deg);
}
.service-card h4 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card .learn {
  color: var(--bg-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.service-card .learn:hover { gap: 12px; }

/* ---------- 9. Testimonials + Enquiry ---------- */
.testi-enquiry-section { background: var(--bg-light); }
.testimonial-card {
  background: #fff; border-radius: var(--bg-radius);
  padding: 32px; box-shadow: var(--bg-shadow); height: 100%;
}
.testimonial-card .quote-icon { color: var(--bg-accent); font-size: 2rem; }
.testimonial-card .stars { color: #ffb400; }
.testimonial-card .client {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  border-top: 1px solid #eef2fb; padding-top: 18px;
}
.testimonial-card .client img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
}
.testimonial-card .client h6 { margin: 0; }
.testimonial-card .client small { color: var(--bg-primary); }

.enquiry-box {
  background: #fff; border-radius: var(--bg-radius);
  padding: 40px; box-shadow: var(--bg-shadow);
}
.enquiry-box .form-control, .enquiry-box .form-select {
  border-radius: 8px; padding: 12px 14px; border: 1px solid #dfe6f5;
  margin-bottom: 4px;
}
.enquiry-box .form-control:focus, .enquiry-box .form-select:focus {
  border-color: var(--bg-primary); box-shadow: 0 0 0 .2rem rgba(30,95,230,.12);
}
.enquiry-box label { font-weight: 600; color: var(--bg-dark-text); margin-bottom: 6px; }
.form-message { font-size: .92rem; margin-top: 14px; }

/* ---------- 10. Stats / Counter ---------- */
.stats-section {
  background: linear-gradient(120deg, var(--bg-navy) 0%, var(--bg-navy-2) 100%);
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59,157,255,.18), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(30,95,230,.18), transparent 40%);
}
.stat-item { text-align: center; color: #fff; position: relative; z-index: 1; }
.stat-item .stat-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.stat-item .counter { font-size: 2.6rem; font-weight: 800; color: #fff; }
.stat-item .counter-label { color: #b9c6e8; font-weight: 500; }

/* ---------- 11. Footer ---------- */
.footer {
  background: var(--bg-navy); color: #b9c6e8; padding-top: 70px;
}
.footer h5 { color: #fff; margin-bottom: 22px; font-size: 1.15rem; }
.footer .footer-logo { height: 100px; margin-bottom: 18px; background:#fff; padding:8px 10px; border-radius:8px;}
.footer a { color: #b9c6e8; }
.footer a:hover { color: var(--bg-accent); padding-left: 4px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { display: inline-flex; align-items: center; gap: 8px; }
.footer ul li i { color: var(--bg-primary); font-size: .8rem; }
.footer .contact-line { display: flex; gap: 12px; margin-bottom: 16px; }
.footer .contact-line i { color: var(--bg-accent); margin-top: 5px; }
.footer .social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
}
.footer .social a:hover { background: var(--bg-primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 50px; padding: 22px 0; text-align: center; font-size: .92rem;
}

/* ---------- 12. Scroll-to-top & Animations ---------- */
#scrollTop {
  position: fixed; right: 26px; bottom: 26px; z-index: 1040;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-primary); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--bg-shadow-hover); cursor: pointer; transition: var(--bg-transition);
}
#scrollTop:hover { background: var(--bg-primary-dark); transform: translateY(-3px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- 13. Responsive Tweaks ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff; padding: 16px; margin-top: 12px;
    border-radius: var(--bg-radius); box-shadow: var(--bg-shadow);
  }
  .navbar .nav-link { margin: 4px 0; }
  .hero-carousel .carousel-caption { text-align: center; margin: 0 auto; right: 0; }
  .hero-carousel .carousel-item { height: auto; min-height: 70vh; }
  .btn-get { margin-top: 10px; }
}
@media (max-width: 767.98px) {
  .section-padding { padding: 60px 0; }
  .topbar { text-align: center; }
  .topbar .topbar-info span { display: inline-block; margin: 0 10px; }
  .topbar .social { margin-top: 6px; }
  .about-img-wrap .exp-badge { left: 10px; }
  .stat-item { margin-bottom: 30px; }
}
