:root {
  --primary: #3a9ced;
  --primary-dark: #217db6;
  --accent: #ffd100;
  --text: #000000;
  --white: #fff;
  --gray-bg: #f9f9f9;
  --gray-footer: #f1f1f1;
  --border: #ddd;
}

/* General reset and typography */
html, body {
  height: 100%;
}

body {
  background: linear-gradient(135deg, #ffffff 0%, #b4e9f7 100%),
    url('https://www.transparenttextures.com/patterns/noise.png'); /* subtle noise overlay */
  background-blend-mode: overlay;
  background-attachment: fixed;
  /* background: linear-gradient(135deg, #ffffff 0%, #baeaf6 100%); */
  color: var(--text);
  font-family: 'Open Sans', 'Noto Sans Bengali', sans-serif;
  font-size: 14px;
  line-height: 22px;
  overflow-x: hidden;
}
.about-area,
.services-area,
#gallery,
.contact-area {
  background: transparent !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", "Noto Sans Bengali", sans-serif;
  margin-bottom: 15px;
  color: var(--text);
  font-weight: 600;
}
h1 { font-size: 48px; line-height: 50px; }
h2 { font-size: 38px; line-height: 40px; }
h3 { font-size: 30px; line-height: 32px; }
h4 { font-size: 24px; line-height: 26px; }
h5 { font-size: 20px; line-height: 22px; }
h6 { font-size: 16px; line-height: 20px; }

/* Logo highlight */
.logo h1 span {
  color: var(--white);
}

/* Navbar */
.navbar {
  background: #393939b3;
  border-bottom: 0;
}
.navbar .navbar-brand h1 {
  font-size: 32px;
  font-weight: bold;
}
.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

/* Hero Section */
#hero {
  width: 100%;
}
#hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#hero h1 {
  color: var(--accent) !important;
  font-size: 3rem;
  font-weight: 700;
}
#hero p {
  color: var(--white);
  font-size: 1.4rem;
}
.btn-get-started {
  text-decoration: none !important;
  color: var(--white) !important;
}
.btn-get-started:hover,
.btn-get-started:focus {
  color: var(--accent) !important;
  text-decoration: none !important;
}
#hero .btn-get-started {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  border-radius: 2rem;
  min-width: 220px;
  transition: 0.3s;
  border: none;
}
#hero .btn-get-started:hover {
  background: var(--primary);
  color: var(--white);
}

/* Section styles */
.section-headline h2 {
  color: var(--primary);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 50px;
  text-transform: capitalize;
  position: relative;
}
.section-headline h2:after {
  content: "";
  display: block;
  margin: 16px auto 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* About */
.about-area {
  background: var(--white);
  padding: 70px 0 80px;
}
.single-well {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
}
.single-well .btn-get-started {
  margin: 0 8px 8px 0;
  text-decoration: none !important;
  color: var(--primary) !important;
}


.single-well .btn-get-started:hover,
.single-well .btn-get-started:focus {
  color: var(--text) !important;
  text-decoration: none !important;
}
/* Subscribe Section */
.suscribe-area {
  background: var(--primary);
}
.suscribe-text h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: 20px;
}
.sus-btn {
  background: var(--white);
  text-decoration: none;
  color: var(--primary);
  border: 2px solid var(--white);
  border-radius: 30px;
  font-weight: 700;
  padding: 10px 32px;
  margin-left: 24px;
  margin-top: 10px;
  display: inline-block;
  transition: 0.3s;
}
.sus-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--white);
}

/* Services */
#services {
  background: var(--white);
  padding: 70px 0 40px;
}

/* Service Section Subtitles as Buttons */
/* Service Subtitle "Button" Style (Image 2) */
#services .service-subtitle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 64px;
  padding: 0 36px;
  border-radius: 48px;
  font-size: 1.5rem;
  font-weight: 500;
  background: linear-gradient(90deg, #0098ff 0%, #00b5e2 100%);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 152, 255, 0.10);
  border: 4px solid #fff;
  outline: 2px solid #e0e0e0;
  letter-spacing: 1px;
  margin: 32px 0 20px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  gap: 12px;
}
#services .service-subtitle-btn:hover,
#services .service-subtitle-btn:focus {
  background: linear-gradient(90deg, #00b5e2 0%, #0098ff 100%);
  box-shadow: 0 4px 24px 0 rgba(0, 152, 255, 0.18);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
#services .img-fluid {
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(124,58,237,0.10);
  border: 1px solid #eee;
  margin-bottom: 18px;
}

/* Reviews Section */
.reviews-area {
  background: url(../img/hero-carousel/3.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 70px 0 70px;
}
.reviews-area:before {
  content: "";
  background: rgba(0,0,0,0.65);
  position: absolute; left:0; top:0; right:0; bottom:0;
  z-index: 0;
}
.reviews-area .container,
.reviews-area .row,
.reviews-area .col-lg-6,
.reviews-area .px-4 {
  position: relative; z-index: 1;
}
.reviews-area h2,
.reviews-area h5 {
  color: var(--white);
}
.reviews-area .ready-btn {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 30px;
  font-weight: 700;
  padding: 10px 35px;
  border: 1px solid var(--primary-dark);
  margin-top: 18px;
  transition: 0.3s;
  text-decoration: none !important;
}
.reviews-area .ready-btn:hover {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
}
/* Gallery (Video) Section Responsive Layout */
/* Gallery (Video) Section Custom Layout */
#gallery .gallery-custom-layout {
  min-height: 400px;
}

#gallery .gallery-video-stack {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

#gallery .gallery-video {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 320px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  background: #000;
  object-fit: cover;
  display: block;
}

#gallery .gallery-video-tall {
  min-height: 380px;
  height: 100%;
  max-height: 660px;
}

@media (min-width: 768px) {
  #gallery .gallery-custom-layout {
    min-height: 500px;
  }
  #gallery .gallery-video-stack {
    min-height: 48%;
    margin-bottom: 2.5%;
  }
  #gallery .gallery-video-stack:last-child {
    margin-bottom: 0;
  }
  #gallery .gallery-video-tall {
    min-height: 100%;
    max-height: 100%;
  }
}

@media (max-width: 767.98px) {
  #gallery .gallery-custom-layout {
    flex-direction: column;
  }
  #gallery .gallery-video-stack,
  #gallery .gallery-video-tall {
    min-height: 180px;
    max-height: 280px;
  }
  #gallery .gallery-video-tall {
    margin-top: 12px;
  }
}

/* Make right column's two videos stack vertically on desktop, horizontally on mobile */
@media (min-width: 768px) {
  #gallery .col-md-6 .row {
    flex-direction: column !important;
    height: 100%;
  }
  #gallery .col-md-6 .gallery-video {
    height: 49%;
    min-height: 180px;
    max-height: none;
    margin-bottom: 2%;
  }
  #gallery .col-md-6 .gallery-video:last-child {
    margin-bottom: 0;
  }
}
@media (max-width: 767.98px) {
  #gallery .col-md-6 .row {
    flex-direction: row !important;
  }
  #gallery .col-md-6 .gallery-video {
    height: 220px;
    min-height: 120px;
    margin-bottom: 0;
    margin-right: 2%;
  }
  #gallery .col-md-6 .gallery-video:last-child {
    margin-right: 0;
  }
}


/* Contact */
.contact-area {
  background: var(--white);
  padding: 60px 0;
}
.contact-area h3 {
  color: var(--primary-dark);
  font-size: 26px;
  margin-bottom: 24px;
}
.contact-area a {
  color: var(--primary-dark);
  text-decoration: underline;
}
.contact-area a:hover {
  color: var(--primary);
}

/* Footer */
.footer-area-bottom {
  background: var(--gray-footer);
  color: var(--text);
  padding: 20px 0;
  font-size: 15px;
}
.footer-area-bottom a {
  color: var(--primary);
  transition: color 0.3s;
}
.footer-area-bottom a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.credits {
  padding-top: 5px;
  text-align: center;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
}

/* Preloader */
#preloader {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: var(--white) url("../img/preloader.gif") no-repeat center center;
  z-index: 99999;
  display: none; /* Hide by default, show in JS if needed */
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .navbar-brand h1 { font-size: 24px; }
  #hero h1 { font-size: 2rem; }
  .section-headline h2 { font-size: 28px; }
  .single-well { padding: 18px; }
}
@media (max-width: 575.98px) {
  #hero .btn-get-started { min-width: 150px; font-size: 1rem; }
  .sus-btn { padding: 8px 10px; font-size: 1rem; }
}

/* Utility classes */
.shadow {
  box-shadow: 0 2px 16px 0 rgba(124,58,237,0.08) !important;
}
.rounded {
  border-radius: 12px !important;
}