/* =========================================================================
   CENTRON STYLESHEET
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #1b3655; /* Centron Dark Blue */
  --accent-color: #3391b4; /* Centron Teal/Cyan */
  --accent-hover: #267592;
  --bg-light: #f8fbff;
  --text-main: #333333;
  --text-muted: #6c757d;
  --font-family: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px rgba(27, 54, 85, 0.05);
  --shadow-md: 0 10px 20px rgba(27, 54, 85, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
}

.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

.btn-custom {
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 400;
  border: 3px solid white;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-custom:hover {
  background-color: #002432;
  color: #8de0ff;
  border-color: var(--accent-color);
}
.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.section-padding { padding: 40px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* =========================================================================
   [HEADER COMPONENT START]
   (Reusable Header CSS)
   ========================================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1050;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.site-header .navbar-brand img {
  height: 30px;
  transition: var(--transition);
}
.site-header .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 10px 15px !important;
  transition: var(--transition);
  position: relative;
}
.site-header .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--accent-color);
}
.site-header .nav-link:hover::before,
.site-header .nav-link.active::before {
  width: calc(100% - 30px);
}
.site-header .navbar-toggler {
  border: none;
  background: transparent;
  padding: 0;
}
.site-header .navbar-toggler:focus {
  box-shadow: none;
}
/* Hamburger Icon Animation */
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Side Menu Customizations */
@media (max-width: 991.98px) {
  .site-header {
    backdrop-filter: none; /* prevent containing block issue for fixed position */
  }
  .navbar-collapse {
    position: fixed !important;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100% !important; /* Full screen */
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 1045 !important; /* Below the hamburger menu */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease-in-out !important;
    padding: 20px;
    visibility: hidden; /* Hide to prevent clicking when closed */
  }
  
  .navbar-collapse.active {
    left: 0 !important;
    visibility: visible;
  }
  
  .navbar-collapse .navbar-nav {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
  }
  .navbar-collapse .nav-link {
    font-size: 1.5rem !important; /* Large, visible menu names */
    padding: 15px 0 !important;
    font-weight: 600;
  }
  
  /* Keep the toggler and search above the menu */
  .site-header .d-flex.order-lg-3,
  .site-header .navbar-brand {
    position: relative;
    z-index: 1080 !important;
  }
}

/* Search Overlay */
.search-icon-responsive {
  font-size: 1.5rem;
  transition: var(--transition);
}
@media (min-width: 992px) {
  .search-icon-responsive {
    font-size: 1.2rem;
  }
}

.search-toggler:focus {
  outline: none;
}
.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1090;
  display: flex;
  align-items: center;
  padding: 0 15px;
}
@media (min-width: 992px) {
  .search-overlay {
    width: 50%;
    left: auto;
    right: 0;
  }
}
.search-overlay.active {
  display: flex !important;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.search-form {
  border-radius: 50px;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: 45px;
}
.search-form input:focus {
  outline: none;
  background: #f8fbff;
}
/* [HEADER COMPONENT END] */

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: url('../images/hero/hero_bg.png') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(27,54,85,0.9) 0%, rgba(51,145,180,0.8) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeUp 1s ease both;
}
.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.2s both;
}
.hero-content p {
  color: #e2e8f0;
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
  animation: fadeUp 1s ease 0.4s both;
}
.hero-buttons {
  animation: fadeUp 1s ease 0.6s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   BRAND CAROUSEL
   ========================================================================= */
.brand-carousel-section {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 40px 0;
  overflow: hidden;
}
.brand-carousel {
  display: flex;
  align-items: center;
  width: calc(250px * 18); /* 9 brands * 2 for seamless loop */
  animation: scrollBrands 35s linear infinite;
}
.brand-carousel:hover {
  animation-play-state: paused;
}
.brand-item {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-item img {
  max-height: 50px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  filter: opacity(70%);
  transition: var(--transition);
  user-select: none;
}
.brand-item:hover img {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.1);
}
@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 9)); }
}

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */
.services-section {
  background-color: var(--bg-light);
}
.service-card {
  background: #0dcaf012;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent-color);
}
.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(51, 145, 180, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent-color);
  color: #fff;
}

/* =========================================================================
   Access Control Services SECTION
   ========================================================================= */
.card {
  border-bottom: 6px solid #0dcaf012 !important;
}
.card:hover {
    transform: translateY(-20px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--accent-color)!important;
  }
.card-body {
  background:#0dcaf012;
}
/* =========================================================================
   WHY CHOOSE US
   ========================================================================= */
.why-us {
  position: relative;
}
.why-us-img {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}
.feature-list li i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 3px;
}

/* =========================================================================
   PRODUCTS CAROUSEL (Custom CSS for responsive cards)
   ========================================================================= */
.products-section {
  background-color: var(--primary-color);
  color: #fff;
}
.products-section .section-title h2 { color: #fff; }
.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin: 15px;
  color: var(--text-main);
  transition: var(--transition);
}
.product-card:hover {
  transform: scale(1.03);
}
.product-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.product-info {
  padding: 20px;
}
.product-info h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Custom styles to handle 4 items on desktop, 1.5 on mobile via CSS flex/scroll */
.product-slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding-bottom: 20px;
}
.product-slider-container::-webkit-scrollbar {
  display: none;
}
.product-slide {
  flex: 0 0 25%; /* 4 cards per row on desktop */
  max-width: 25%;
  scroll-snap-align: start;
}
@media (max-width: 992px) {
  .product-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 768px) {
  /* 1.5 cards on mobile */
  .product-slide {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
}

/* =========================================================================
   PROJECTS SHOWCASE
   ========================================================================= */
.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
}
.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(27,54,85,0.9), transparent);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: opacity 0.3s ease;
}
.project-card:hover img {
  transform: scale(1.1);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay h4 {
  color: #fff;
  margin-bottom: 5px;
}
.project-overlay p {
  color: var(--accent-color);
  margin-bottom: 0;
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 15px;
  margin: 15px;
  position: relative;
}
.testimonial-card i.fa-quote-left {
  font-size: 40px;
  color: rgba(51, 145, 180, 0.2);
  position: absolute;
  top: 20px;
  left: 30px;
}
.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-section {
  background: #fff;
}
.contact-info-box {
  background: var(--primary-color);
  color: #fff;
  padding: 40px;
  border-radius: 15px;
  height: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.contact-info-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-right: 15px;
  margin-top: 5px;
}
.form-control {
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(51, 145, 180, 0.25);
}

/* =========================================================================
   [FOOTER COMPONENT START]
   (Reusable Footer CSS)
   ========================================================================= */
.site-footer {
  background-color: #122439; /* Darker than primary */
  color: #a0aec0;
  padding-top: 80px;
  padding-bottom: 20px;
}
.site-footer h5 {
  color: #fff;
  margin-bottom: 25px;
  font-weight: 600;
}
.footer-logo img {
  height: 30px;
  margin-bottom: 20px;
  filter: grayscale(100%) invert(1);
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 15px;
}
.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
/* [FOOTER COMPONENT END] */

/* =========================================================================
   [REGION PAGE SPECIFIC CSS START]
   ========================================================================= */

/* FAQ Accordion Styling */
.faq-section {
  background-color: #ffffff;
}
.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
  border-radius: 0;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--primary-color);
  background-color: transparent;
  box-shadow: none;
  padding: 20px 10px;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-color);
  background-color: transparent;
}
.faq-accordion .accordion-button::after {
  filter: grayscale(100%) opacity(50%);
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(47%) sepia(59%) saturate(488%) hue-rotate(152deg) brightness(89%) contrast(92%);
}
.faq-accordion .accordion-body {
  color: var(--text-muted);
  padding: 0 10px 20px 10px;
}

/* Region Hero Styling */
.region-hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, rgba(27,54,85,0.95) 0%, rgba(51,145,180,0.85) 100%);
  color: #fff;
  text-align: center;
}
.region-hero h1 {
  color: #fff;
  font-size: 3.0rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.region-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Interactive City Section */
.interactive-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.interactive-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(27, 54, 85, 0.9);
  color: #fff;
  padding: 30px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.interactive-image-card:hover .interactive-overlay {
  transform: translateY(0);
}
.interactive-overlay h4 {
  color: #fff;
  margin-bottom: 10px;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  font-size: 20px;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.prev-btn { left: -20px; }
.next-btn { right: -20px; }
@media (max-width: 768px) {
  .prev-btn { left: 0; }
  .next-btn { right: 0; }
}

/* Signature Projects */
.noida-project-card img {
  height: 250px;
}
/* Key Focus Areas */
.focus-area-card {
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.focus-area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
  border-bottom-color: var(--accent-color);
}
.focus-area-card:hover .focus-icon {
  color: var(--primary-color) !important;
}

/* =========================================================================
   [REGION PAGE SPECIFIC CSS END]
   ========================================================================= */

/* =========================================================================
   [FLOATING WHATSAPP BUTTON]
   ========================================================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366; /* WhatsApp Official Green */
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  color: #fff;
  transform: scale(1.1);
  animation: none; /* Stop pulsing on hover */
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
  }
}

