/* Top Contact Bar Styling begins */
.top-contact-bar {
  background: linear-gradient(90deg, #0a1f44, #122b5a); /* Dark blue to navy */
  color: #d1d1d1; /* Shiny grey text */
  font-size: 0.9rem;
}

.top-contact-bar a {
  color: #d1d1d1;
  text-decoration: none;
}

.top-contact-bar a:hover {
  color: #ffdd00; /* Yellow highlight on hover */
}

.top-contact-bar i {
  font-size: 1rem;
}

/* =================== PRELOADER =================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0b3b; /* deep navy background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ffd700; /* gold accent */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#preloader.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ==============PRELOADER END =========*/

/* ---------- Desktop Navbar Styling ---------- */
@media (min-width: 992px) { /* Only for large screens */
  .navbar-nav {
    display: flex;
    gap: 2rem; /* Adjust spacing between links */
    align-items: center;
    justify-content: center; /* Center links in navbar */
  }

  .navbar-nav .nav-link {
    font-size: 1.1rem; /* Increase font size */
    font-weight: 500;  /* Medium weight */
    padding: 0.5rem 0.75rem;
    transition: color 0.3s, transform 0.2s;
  }

  /* Hover / Active effect */
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: #ffd700; /* Yellow accent */
    transform: translateY(-2px); /* Slight lift effect */
  }

  /* Dropdown items on desktop */
  .dropdown-item:hover {
  background-color: #FFD700; /* Yellow background on hover */
  color: #000;
}

  .navbar-nav .dropdown-item {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* Mobile dropdown styling */
@media (max-width: 991px) {
  .navbar .dropdown-menu {
    background-color: #fff; /* white background for mobile dropdowns */
    border: 1px solid #ddd; /* subtle border */
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .navbar .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    border-radius: 4px;
    margin: 0.25rem;
    transition: background 0.3s;
  }

  .navbar .dropdown-item:hover {
    background-color: #ffd700; /* yellow accent on hover */
    color: #000;
  }

  /* Optional: remove bottom border for last item */
  .navbar .dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
  }
}

/* Hover dropdown for large screens */
@media(min-width:992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* optional */
    animation: slideDown 0.3s ease-in-out forwards;
  }
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Add spacing & modern font */
.navbar .nav-link {
  padding: 0.8rem 1.2rem;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 500;
}

/* CONTACT & NAVBAR ENDS */

/* =================== TOP FOOTER =================== */
.footer-top {
  background-color: #0a163a;
  color: #ccc;
  padding: 3rem 0;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Titles */
.footer-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffc107;
  margin-bottom: 1rem;
}

/* Logo + brief */
.footer-logo img {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
  max-width: 250px;
}

/* Quick Links */
.footer-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffc107;
}

/* Contact */
.footer-contact {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  color: #ffc107;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #fff;
}

@media (min-width: 992px) {
  .footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .footer-block {
    width: 30%; /* evenly spaced blocks */
  }

  .footer-logo,
  .footer-logo p,
  .footer-contact li,
  .footer-links li {
    text-align: left;
  }

  .footer-social {
    margin-top: 0.5rem;
  }
}

@media (max-width: 991px) {
  .footer-top .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-block {
    width: 100%;
    margin-bottom: 2rem;
    align-items: center;
    text-align: center;
  }

  /* Logo */
  .footer-logo {
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 0.5rem auto;
  }

  .footer-logo p {
    margin: 0 auto;
  }

  /* Quick Links */
  .footer-links {
    align-items: center;
    text-align: center;
  }

  /* Contact */
  .footer-contact {
    align-items: center;
    text-align: center;
  }

  .footer-contact li {
    justify-content: center; /* centers icon + text */
  }

  /* Social Icons */
  .footer-social {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* =================== TOP FOOTER end =================== */

/* ------- BOTTOM FOOTER BEGIN --------*/

.footer-bottom {
  background-color: #1a1a2e; /* white background */
  color: #0a163a; /* navy blue text color */
  font-size: 0.95rem;
  border-top: 1px solid #ccc;
}

.footer-bottom p {
  margin: 0;
  color: #cbcbcfc8; /* consistent black/navy text */
}

.footer-card img {
  max-height: 40px;
  object-fit: contain;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-card img {
    max-height: 35px;
  }
}

/* ===== BOTTOM FOOTER END =====*/

/* ========================================================= */
/* SERVICES HERO SECTION STYLING */
/* ========================================================= */

.services-hero {
    /* Set a specific height for the hero section */
    height: 30vh;
    min-height: 250px; /* Ensure it looks good on very small screens */
   
    /* 1. Background Image */
    background: url('../images/services-hero-bg.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden; /* Contains the overlay */
}

/* Dark Overlay */
.services-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark overlay (70% opacity black) */
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Content positioning relative to overlay */
.services-hero-content {
    z-index: 2; /* Bring content above the overlay */
}

.services-title {
    /* Set the color to match your branding (e.g., White or Yellow) */
    color: #ffffff;
    font-size: 5rem; /* Large text for desktop */
    font-weight: 600;
    /* This ensures left alignment (as requested) */
    text-transform: capitalize;
     padding-left: 50px;
}

/* 1. Define the Animation Keyframes */
@keyframes slideInFromTop {
    /* Start position: slightly above final spot, completely transparent */
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    /* Final position: fully visible, normal position */
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Apply the Animation to the Title */
.services-title {
    /* (Keep your existing styles like font-size, color, etc.) */
   
    /* Apply the animation */
    animation: slideInFromTop 1s ease-out 0.5s forwards;
   
    /* Ensure it starts off-screen before the animation runs */
    opacity: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .services-hero {
        height: 25vh; /* Slightly smaller height on mobile */
    }
   
    .services-title {
        font-size: 4rem; /* Smaller text on mobile */
        /* Padding adjustment if needed */
        padding-left: 30px;
    }
}

/* HERO SECTION ENDS */

/* ---------- ABOUT US SECTION BEGIN ------*/
/* About Section */
.about-section {
  background-color: #fff;
  color: #1a1a2e;
  padding: 80px 20px;
}

.about-section .section-title {
  font-size: 4rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 20px;
}

.about-section .section-desc {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
  color: #555;
  text-align: center;
}

/* Container for highlights - NOTE: Bootstrap's .row now handles the flex basis for columns */
/* The next block only applies to the dedicated service cards */

/* Individual highlight box */
.highlight-box {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  /* ADDED: Transition for Hover/Touch */
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  /* Ensure a link behaves like a block element */
  display: flex;
  height: 100%;
  color: inherit;
}

/* ADDED: Hover State (for desktop and touch feedback) */
.highlight-box:hover,
.highlight-box:active {
    /* Subtle lift effect */
    transform: translateY(-8px);
    /* Shadow effect for depth */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
}


/* Image at top of box */
.highlight-box img {
  width: 100%;
  height: 250px; /* MODIFIED: Increased height/length */
  object-fit: cover;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

/* Icon Circle just above text */
.icon-circle {
  width: 60px;
  height: 60px;
  background-color: #ffc107;
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: -30px auto 0 auto;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Text section beneath icon */
.highlight-text {
  padding: 15px 20px 25px 20px;
  text-align: center;
  margin-top: 10px;
  flex-grow: 1;
  min-height: 180px; /* ADDED: Min height to increase length/consistency */
}

.highlight-text h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  /* Ensure service titles are readable/styled */
  color: #1a1a2e;
}

.highlight-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Ensure all boxes same height including text for alignment */
/* We rely on the Bootstrap .row and .col structure for this now */

/* Individual highlight box */
.highlight-box {
  /* ... existing styles ... */
  position: relative; /* Ensure pseudo-elements are positioned relative to this */
  overflow: hidden; /* Crucial to clip the overlay */
}

/* Text section beneath icon */
.highlight-text {
  /* ... existing styles ... */
  position: relative; /* Ensure pseudo-element is positioned relative to this */
  z-index: 1; /* Keep text above the pseudo-element overlay */
}

/* NEW: Yellow Overlay Pseudo-element */
.highlight-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 193, 7, 0.05); /* Very subtle yellow (5% opacity) */
  z-index: -1; /* Place it behind the text content */
  transform: scaleY(0); /* Start scaled to 0 height */
  transform-origin: bottom; /* Expand from bottom up */
  transition: transform 0.3s ease-out, background-color 0.3s ease-out; /* Smooth transition */
}

/* NEW: Overlay effect on HOVER (and touch active) */
.highlight-box:hover .highlight-text::before,
.highlight-box:active .highlight-text::before {
  transform: scaleY(1); /* Expand to full height on hover */
  background-color: #ffc107a3; /* Slightly more opaque yellow */
}

/* Ensure text color remains good on hover for readability */
.highlight-box:hover .highlight-text h5,
.highlight-box:active .highlight-text h5 {
  color: #1a1a2e; /* Darker text for better contrast against yellow */
  transition: color 0.3s ease-out;
}

.highlight-box:hover .highlight-text p,
.highlight-box:active .highlight-text p {
  color: #333; /* Darker text for better contrast against yellow */
  transition: color 0.3s ease-out;
}

/* Also ensure the icon changes color on hover for consistency */
.highlight-box:hover .icon-circle,
.highlight-box:active .icon-circle {
  background-color: #1a1a2e; /* Dark background */
  color: #ffc107; /* Yellow icon */
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

/* Image at top of box - existing, but ensure it doesn't interfere */
.highlight-box img {
  /* ... existing styles ... */
  transition: transform 0.3s ease-out; /* Add transition for image as well */
}

.highlight-box:hover img,
.highlight-box:active img {
    transform: scale(1.05); /* Slightly zoom the image on hover */
}


/* Mobile adjustments */
@media (max-width: 991px) {
  /* This targets the columns on small screens */
  .services-highlight-section .col-lg-3,
  .services-highlight-section .col-md-6,
  .services-highlight-section .col-12 {
      /* ADDED: Ensures vertical stacking and centering on mobile */
      max-width: 350px; /* Constrains the width on large phones/tablets */
      width: 100%; /* Ensures it takes up full space within its constraint */
  }
 
  /* Bootstrap's justify-content-center on the .row handles the horizontal centering */
 
  .highlight-box {
    margin-bottom: 3rem; /* Keep margin between vertical stacks */
  }

  .highlight-box img {
    height: 180px;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin: -25px auto 0 auto;
  }

  .highlight-text {
    padding: 10px 15px 20px 15px;
    margin-top: 10px;
    min-height: auto; /* Allow height to adjust on mobile */
  }
}
