@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


body {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #1f1f1f !important;
  color: #ffd700; /* Goldish text color */
  height: 100%;
  overflow: auto;
  font-size: 0.9rem; /* Reduce font size */
  -webkit-text-size-adjust: none; 
}


/* Preloader container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10000;  /* Higher than atomic particles */
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeOut 1.5s ease-out forwards, slideIn 1.5s ease-out forwards;
    font-family: 'Poppins', sans-serif;
}
/* Section container */
#container {
    display: flex;
    flex-direction: column;
    height: auto; /* Adjust height dynamically */
    width: 100%;
}
/* Section styling */
section {
  padding: 40px 5%;
  margin: 0; 
  background-color: #1f1f1f; /* Solid dark color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
  position: relative;
  scroll-snap-align: start; /* Ensures snap for each section */
  overflow: hidden; /* Prevents blur overflow */
  color: white; /* Ensure text color is white */
}

/* Adjust text styles for sections */
section h2 {
  font-size: 2rem; /* Reduce font size */
  color: white; /* Ensure text color is white */
  margin-bottom: 15px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

section p {
  font-size: 1rem; /* Reduce font size */
  color: white; /* Ensure text color is white */
  line-height: 1.6; /* Adjust line height for better readability */
  transition: color 0.3s ease;
}

/* Section overlay (blurred background) */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark background */
  z-index: 0;
  transition: backdrop-filter 0.3s ease, background-color 0.3s ease; /* Smooth transition for blur and color */
  backdrop-filter: blur(5px); /* Initial blur */
}

/* Elegant hover effect */
section:hover {
  transform: scale(1.02); /* Slightly scale up the section */
  background-color: #2a2a2a; /* Slightly lighter background color */
}

section:hover::before {
  backdrop-filter: blur(0px); /* No blur when hovering */
  background-color: rgba(0, 0, 0, 0.3); /* Slightly lighter overlay */
}

/* Container for each section's content */
.container {
    position: relative;
    z-index: 1; /* Ensures text is above other elements */
    width: 80%;
    margin: 0 auto;
}

/* Span styling */
span {
    font-weight: normal;  /* Removed bold, now the text is normal weight */
    color: #2c64fc;
}

/* Highlighted text for metallic gold */
.highlight {
    color: #d4af37; /* Metallic gold highlight */
    text-shadow: 0 0 3px #d4af37, 0 0 5px #d4af37; /* Reduced glow effect */
}

/* Hover effect for text */
section:hover h2, section:hover p {
    color: #fff;
    text-shadow: 0 0 10px #d4af37, 0 0 15px #d4af37; /* Slightly reduced hover glow */
}

/* Section-specific background effects */
#what-we-do {
    background-color: #2e2e2e; /* Darker shade */
}

#our-partners {
    background-color: #2e2e2e; /* Darker shade */
}

#where-we-are-located {
    background-color: #2e2e2e; /* Darker shade */
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10; /* Ensure it stays above other elements */
  transition: background-color 0.0s ease-in-out, background-image 0.0s ease-in-out; /* Reduce transition duration */
  background-size: cover;
  background-position: center;
  margin-bottom: 0; /* Remove any margin */
  padding-bottom: 0; /* Remove any padding */
}

.navbar.image-bg {
  background-color: transparent; /* Transparent background when image is set */
}

.navbar.black-bg {
  background-color: #1f1f1f !important; /* Change to page background color */
}

.navbar-nav .nav-item .nav-link {
  color: white !important; /* Ensures text color is white */
}

.body-content {
  margin-top: 0; /* Remove any margin */
  padding-top: 0; /* Remove any padding */
}

.carousel {
  margin-top: 0; /* Remove any margin */
  padding-top: 0; /* Remove padding */
}

.carousel-inner img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  padding: 5px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 25px;
  width: auto;
  margin-right: 10px;
}

nav .logo h1 {
  font-size: 1.1rem;
  background: linear-gradient(to right, #b927fc 0%, #2c64fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #d4af37; /* Default color */
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a.active {
  color: white; /* Font color when a slide is in focus */
}

nav ul li a:hover {
  background-color: #2a2a2a; /* Slightly lighter background color */
  color: white; /* Ensure text color is white */
  text-shadow: 0 0 10px #d4af37, 0 0 15px #d4af37; /* Slightly reduced hover glow */
}

/* Submenu styling */
.dropdown-menu {
  background-color: transparent; /* Transparent background */
  border: none; /* Remove border */
  transition: background-color 0.5s ease-in-out; /* Smooth transition for background color */
}

.dropdown-menu .dropdown-item {
  color: #d4af37; /* Default color */
}

.dropdown-menu .dropdown-item:hover {
  background-color: #2a2a2a; /* Slightly lighter background color */
  color: white; /* Ensure text color is white */
  text-shadow: 0 0 10px #d4af37, 0 0 15px #d4af37; /* Slightly reduced hover glow */
}

.navbar.image-bg .dropdown-menu .dropdown-item {
  color: white; /* White text color when background image is set */
}

.navbar.black-bg .dropdown-menu .dropdown-item {
  color: black; /* Black text color when no background image */
}

.navbar.black-bg .dropdown-menu {
  background-color: white; /* White background when no background image */
}

/* Add styles for submenu background color based on navbar background */
.navbar.image-bg .dropdown-menu {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background when image is set */
}

.navbar.black-bg .dropdown-menu {
  background-color: #1f1f1f; /* Match page background color */
}

/* Menubar for mobile */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column; /* Ensure items are stacked vertically */
  justify-content: flex-start; /* Align items to the start */
  align-items: flex-start; /* Align items to the left */
  width: 100%;
  height: 100vh;
  padding: 20% 0;
  background: #1f1f1f; /* Match background page color */
  transition: transform 0.5s ease-in-out; /* Smooth transition for opening and closing */
  transform: translateX(-100%); /* Start off-screen to the left */
  z-index: 1000; /* Ensure it stays above other elements */
  margin-bottom: 0; /* Remove any margin */
  overflow-y: auto; /* Allow scrolling if the list is big */
}

.menubar.active {
  transform: translateX(0); /* Slide in from the left */
  width: 100%; /* Ensure it covers the whole screen */
  height: 100vh; /* Ensure it covers the whole screen */
  padding: 0; /* Remove padding */
}

.menubar.closing {
  transform: translateX(-100%); /* Slide out to the left */
}

.menubar .logo {
  display: flex;
  align-items: center;
  padding: 20px; /* Add padding for spacing */
  margin-left: 20px; /* Add margin to the left */
}

.menubar .logo::after {
  content: ''; /* Remove the line */
  display: none; /* Ensure it is not displayed */
}

.menubar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%; /* Ensure the menu items take full width */
}

.menubar ul li {
  width: 100%; /* Ensure each menu item takes full width */
  margin-left: 20px; /* Add margin to the left */
}

.menubar ul li a {
  display: block;
  width: 100%; /* Ensure each link takes full width */
  padding: 10px 20px; /* Add padding for better touch targets */
  color: white; /* Change text color to white */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 132.25%; /* Increase font size by an additional 15% (115% * 1.15) */
}

.menubar ul li:first-child a::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #ffd700; /* Goldish color to match the theme */
  margin-top: 10px; /* Add some space below the text */
}

.menubar ul .submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.menubar ul li:hover > .submenu {
  display: block;
}

.menubar ul .submenu li a {
  font-size: 1rem; /* Slightly smaller font size for submenu items */
  padding: 8px 12px; /* Adjust padding for submenu items */
}

/* Ensure submenu dropdown is displayed on click */
.menubar ul li a.dropdown-toggle::after {
  content: '\25BC'; /* Down arrow */
  margin-left: 10px;
}

.menubar ul li a.dropdown-toggle[aria-expanded="true"]::after {
  content: '\25B2'; /* Up arrow */
}

.menubar ul li a.dropdown-toggle {
  cursor: pointer;
}

.menubar ul li a.dropdown-toggle[aria-expanded="true"] + .submenu {
  display: block;
}

.hamburger {
  display: flex; /* Show hamburger button on all mobile screens */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 35px;
  height: 30px;
  position: relative;
  justify-content: space-between;
  flex-direction: column;
}

/* Hamburger lines */
.hamburger .line {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #ffffff; 
  border-radius: 2px;
  transition: all 0.3s ease; /* Smooth transition */
  position: absolute;
}

/* Line 1 (top) */
.hamburger .line:nth-child(1) {
  top: 0;
}

/* Line 2 (middle) */
.hamburger .line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

/* Line 3 (bottom) */
.hamburger .line:nth-child(3) {
  bottom: 0;
}

/* When hamburger is active (menu is opened), animate the lines */
.hamburger-active .line:nth-child(1) {
  transform: translateY(12px) rotate(45deg); /* Move down and rotate top line */
}

.hamburger-active .line:nth-child(2) {
  opacity: 0; /* Hide middle line */
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg); /* Move up and rotate bottom line */
}

/* Show the hamburger button only on small screens (max-width: 991px) */
@media screen and (max-width: 991px) {
  .container {
    width: 90%;
}

section h2 {
    font-size: rem;
}

section p {
    font-size: 0.9rem;
}
.hamburger {
  display: flex; /* Show hamburger button on small screens */
}
  nav ul {
    display: none; /* Hide the regular navbar items on smaller screens */
  } 

  .btn-menu {
    display: flex; /* Show button on small screens */
  }

  nav ul {
    display: none; /* Hide the regular menu */
  }

  .menubar {
    height: 100%; /* Ensure it covers the whole screen */
    padding: 0; /* Remove padding */
  }

  .hamburger {
    display: flex; /* Ensure hamburger button is visible on screens up to 991px */
  }

  nav ul {
    display: none; /* Hide the regular menu on smaller screens */
  }
}

@media screen and (min-width: 992px) {
  .hamburger {
    display: none; /* Hide hamburger button on larger screens */
  }

  nav ul {
    display: flex; /* Show the regular menu on larger screens */
  }
}

@media screen and (min-width: 792px) and (max-width: 991px) {
  .hamburger {
    display: flex; /* Show hamburger button on medium screens */
  }

  nav ul {
    display: none; /* Hide the regular menu on medium screens */
  }
}

@media screen and (min-width: 992px) {
  .hamburger {
    display: none; /* Hide hamburger button on larger screens */
  }

  nav ul {
    display: flex; /* Show the regular menu on larger screens */
  }
}

@media screen and (min-width: 792px) and (max-width: 991px) {
  .navbar-collapse {
    display: flex !important; /* Ensure the navbar is displayed */
  }
}

/* Mobile Menu */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column; /* Ensure items are stacked vertically */
  justify-content: flex-start; /* Align items to the start */
  align-items: flex-start; /* Align items to the left */
  width: 100%;
  height: 100vh;
  padding: 20% 0;
  background: #1f1f1f; /* Match background page color */
  transition: transform 0.5s ease-in-out; /* Smooth transition for opening and closing */
  transform: translateX(-100%); /* Start off-screen to the left */
  z-index: 1000; /* Ensure it stays above other elements */
  margin-bottom: 0; /* Remove any margin */
  overflow-y: auto; /* Allow scrolling if the list is big */
}

.menubar.active {
  left: 0; /* Slide in from the left */
}

.menubar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%; /* Ensure the menu items take full width */
}

.menubar ul li {
  width: 100%; /* Ensure each menu item takes full width */
}

.menubar ul li a {
  display: block;
  width: 100%; /* Ensure each link takes full width */
  padding: 10px 20px; /* Add padding for better touch targets */
  color: white; /* Change text color to white */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 132.25%; /* Increase font size by an additional 15% (115% * 1.15) */
}

.menubar ul li a:hover {
  color: #ffd700; /* Hover effect */
}

/* Initially hide the regular navbar items */
nav ul {
  display: none;
}

.menubar.active nav ul {
  display: block; /* Show items when menu is active */
}

/* Carousel container (ensures the carousel behaves responsively) */
.carousel-item {
  position: relative; /* So that captions can overlay on top of the image */
  width: 100%; /* Full width */
  height: 60vh; /* Use a percentage-based height for responsive design */
  background-size: cover; /* Ensure the image covers the area without stretching */
  background-position: center; /* Center the image */
}

/* Add background images for each slide */
.carousel-item:nth-child(1) {
  background-image: url('img/slide5.jpg');
}

.carousel-item:nth-child(2) {
  background-image: url('img/slide8.jpg');
}

.carousel-item:nth-child(3) {
  background-image: url('img/slide10.jpg');
}

.carousel-item:nth-child(4) {
  background-image: url('img/slide11.jpg');
}

/* Optional: Make sure captions are clearly visible */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  z-index: 2; /* Ensures captions appear on top of the images */
  text-align: center; /* Center the text */
}

/* ...existing code... */

@media (max-width: 991px) {
  .carousel-caption {
    top: 50%; /* Center the caption vertically */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Ensure the caption fits within the viewport */
    font-size: 0.9rem; /* Adjust font size for better readability */
    padding: 0.5rem; /* Adjust padding for better readability */
    background: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background for better contrast */
    border-radius: 8px; /* Add rounded corners */
  }

  .carousel-caption p {
    max-height: 100px; /* Set a max height for the text */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    transition: max-height 0.3s ease; /* Smooth transition for expanding */
  }

  .carousel-caption:hover p {
    max-height: none; /* Expand to show full text on hover */
  }
}

/* ...existing code... */

.navbar.image-bg .nav-link {
  color: white; /* White text color when background image is set */
}

.navbar.black-bg .nav-link {
  color: black; /* Black text color when no background image */
}



.navbar.black-bg .nav-link {
  color: white !important; /* Change text color to white */
}

.animated-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.carousel-item.active .animated-text {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer styling */

footer {
  background-color: #333; /* Adjust color as seen in the image */
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 20px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter-section {
  text-align: left; /* Align to the left */
  margin-bottom: 20px;
  padding-top: 40px; /* Double the padding to create more space */
}

.newsletter-section p {
  margin: 0;
  font-size: 18px;
  color: #ccc;
  display: block; /* Display block */
}

.newsletter-section h2 {
  margin: 10px 0 20px 0; /* Add bottom margin to create space between text and line */
  font-size: 24px;
  color: #fff;
  display: inline-block; /* Display inline */
  margin-right: 10px; /* Add some space between text and button */
  vertical-align: middle; /* Align with button */
}

.signup-button {
  background-color: #0077b5; /* LinkedIn blue */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px; /* Slightly curved edges */
  cursor: pointer;
  font-size: 16px;
  display: inline-block; /* Display inline */
  vertical-align: middle; /* Align with text */
}

.signup-button:hover {
  background-color: #005582; /* Darker LinkedIn blue */
}

.footer-links {
  display: flex;
  justify-content: flex-start; /* Align to the left */
  gap: 15px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc; /* Match text color with Monthly Linkedin newsletter */
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  padding-bottom: 40px; /* Add more space at the bottom */
}

.footer-bottom .social-icons {
  order: 0; /* Default order */
  margin-top: 0; /* Remove margin */
  justify-content: flex-start; /* Align to the left */
}

.footer-bottom p {
  order: 1; /* Ensure it is on the right */
  margin: 0; /* Remove margin */
  color: white; /* Ensure text color is white */
}

@media screen and (max-width: 576px) {
  .footer-bottom {
    flex-direction: column; /* Stack items vertically on small screens */
    align-items: flex-start; /* Align items to the start */
  }

  .footer-bottom .social-icons {
    order: 0; /* Ensure it is on the top */
    margin-bottom: 10px; /* Add some space below */
    justify-content: flex-start; /* Align to the left */
  }

  .footer-bottom p {
    order: 1; /* Move below social icons */
    margin-top: 0; /* Remove margin */
  }
}

.footer-divider {
  border-top: 1px solid white;
  margin: 20px 0;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.social-icons a img {
  width: 24px;
  height: 24px;
}

.social-icons a:hover {
  transform: scale(1.1); /* Slightly larger on hover */
}

.scroll-top-button {
  background-color: transparent; /* Transparent background */
  color: #fff;
  border: 2px solid #fff; /* White border */
  padding: 15px; /* Increase padding for larger button */
  border-radius: 10px; /* Curved edges */
  cursor: pointer;
  font-size: 24px; /* Larger font size for arrow */
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
  width: 50px; /* Fixed width */
  height: 50px; /* Fixed height */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
  line-height: 0; /* Make arrow skinnier */
  z-index: 10000; /* Ensure it stays on top of other elements */
}

.scroll-top-button::before {
  content: '\2191'; /* Unicode for a 1-dimensional up arrow */
  font-size: 24px; /* Adjust font size as needed */
}

.scroll-top-button:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly visible background on hover */
}

.scroll-top-button:active {
  transform: scale(0.95);
}

body.menu-open .scroll-top-button {
  display: none; /* Hide the button when the menu is open */
}

/* Add a line grid between menubar and slides */
.line-grid {
  display: none; /* Ensure the line-grid is not displayed */
}

.btn-primary {
  background-color: #2c64fc; /* Match the menu hover color */
  border-color: #2c64fc; /* Match the menu hover color */
  color: white; /* Ensure text color is white */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-radius: 8px; /* Add curved edges */
}

.btn-primary:hover {
  background-color: #1f1f1f; /* Slightly darker background color */
  border-color: #1f1f1f; /* Slightly darker border color */
  color: #ffd700; /* Goldish text color to match the theme */
  text-shadow: 0 0 10px #d4af37, 0 0 15px #d4af37; /* Slightly reduced hover glow */
}

/* Remove dark mode and light mode styles */
body {
  background-color: #1f1f1f; /* Dark background */
  color: #ffd700; /* Goldish text color */ 
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #ffffff; /* Light background */
    color: #000000; /* Black text color */
  }

  .navbar {
    background-color: #ffffff !important; /* Light background */
  }

  .navbar .nav-link {
    color: #000000 !important; /* Black text color */
  }

  .footer {
    background-color: #ffffff;
    color: #000000; /* Black text color */
  }

  .btn-primary {
    background-color: #000000; /* Black background */
    border-color: #000000; /* Black border */
    color: white; /* Ensure text color is white */
  }
}

/* Remove toggle button styles */
.toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  color: #ffd700; /* Goldish color */
  font-size: 1.2rem;
}

.toggle-button img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

@media (prefers-color-scheme: light) {
  .toggle-button {
    color: #000000; /* Black text color */
  }
}

.menubar ul .submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.menubar ul li:hover > .submenu {
  display: block;
}

.menubar ul .submenu li {
  margin-bottom: 16px;
}

.menubar ul .submenu li a {
  font-size: 1rem; /* Slightly smaller font size for submenu items */
}

/* Ensure submenu dropdown is displayed on click */
.menubar ul li a.dropdown-toggle::after {
  content: '\25BC'; /* Down arrow */
  margin-left: 10px;
}

.menubar ul li a.dropdown-toggle[aria-expanded="true"]::after {
  content: '\25B2'; /* Up arrow */
}

.menubar ul li a.dropdown-toggle {
  cursor: pointer;
}

.menubar ul li a.dropdown-toggle[aria-expanded="true"] + .submenu {
  display: block;
}

.navbar.black-bg .dropdown-menu .dropdown-item {
  color: white; /* White text color when no background image */
}

.btn-menu {
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding-left: 0;
  padding-right: 0;
  border: none;
  background-color: transparent;
  color: inherit;
  cursor: pointer;
  transition: .3s ease;
}

.btn-menu:focus {
  outline: none;
}

.btn-menu__bars {
  display: block;
  position: relative;
  width: 30px;
  height: 4px;
  background-color: white; /* Change to white */
  transition: .3s;
}

.btn-menu__bars:before,
.btn-menu__bars:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* Change to white */
  transition: .3s;
}

.btn-menu__bars:before {
  transform: translate(0, -12px);
}

.btn-menu__bars:after {
  transform: translate(0, 12px);
}

.menu-open .btn-menu__bars {
  background-color: transparent;
}

.menu-open .btn-menu__bars:before {
  transform: rotate(45deg);
}

.menu-open .btn-menu__bars:after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 790px) {
  .btn-menu {
    display: flex; /* Show button on small screens */
  }

  nav ul {
    display: none; /* Hide the regular menu */
  }
}

@media screen and (min-width: 992px) {
  .hamburger {
    display: none; /* Hide hamburger button on larger screens */
  }

  nav ul {
    display: flex; /* Show the regular menu on larger screens */
  }
}

.service-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  width: 100%;
  height: 150px; /* Fixed height for all service tiles */
}

.service-tile img {
  width: 100%;
  height: 100%; /* Ensure the image covers the entire tile */
  object-fit: cover; /* Maintain aspect ratio and cover the tile */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-tile .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, 0.1); /* Lower opacity of the blue overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-tile:hover img {
  transform: scale(1.1);
  filter: brightness(70%); /* Dim the image */
}

.service-tile:hover .overlay {
  opacity: 1; /* Show the overlay */
}

.service-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.service-tile:hover .service-text {
  background: rgba(0, 0, 0, 0.9);
}

.info-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  width: 100%;
  height: 300px; /* Fixed height for all info tiles */
}

.info-tile img {
  width: 100%;
  height: 100%; /* Ensure the image covers the entire tile */
  object-fit: cover; /* Maintain aspect ratio and cover the tile */
  transition: transform 0.3s ease;
}

.info-tile:hover img {
  transform: scale(1.1);
}

.info-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.info-tile:hover .info-text {
  background: rgba(0, 0, 0, 0.9);
}

.section + .section {
  margin-top: 0; /* Ensure no space between consecutive sections */
}


/* Form styling */
form {
  display: flex;
  flex-direction: column;
  width: 300px;
  margin: 50px 0 50px 0; /* Keep vertical margin, remove auto left and right */
  align-items: flex-start; /* Align items to the left */
}

input[type="text"], input[type="email"], textarea {
  border-radius: 8px; /* Adjust this value to your desired roundness */
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  width: 100%; /* Ensure the input fields are responsive */
}

textarea {
  width: 100%;       
  height: 200px;     
}

button[type="submit"] {
  border-radius: 8px; /* Adjust this value to match the form fields' roundness */
  padding: 10px 20px;
  background-color: #000000;
  color: white;
  cursor: pointer;
  text-align: center;
}

button[type="submit"]:hover {
  background-color: #6b6b6b; /* Your existing background color */
  box-shadow: 0 0 10px 3px rgba(255, 229, 142, 0.7); /* Adds a yellow glow */
}

/* The popup styling for form submit */
.popup {
  display: none; /* Ensure it's hidden initially */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #000000;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
}

.close-btn {
  border-radius: 8px; /* Adjust this value to match the form fields' roundness */
  padding: 10px 20px;
  background-color: #000000;
  color: white;
  cursor: pointer;
  text-align: center;
}

.close-btn:hover {
  background-color: #6b6b6b; /* Your existing background color */
  box-shadow: 0 0 10px 3px rgba(255, 229, 142, 0.7); /* Adds a yellow glow */
}

/* ...existing code... */

.quark-story-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quark-story-tile img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.quark-story-tile:hover img {
  transform: scale(1.1);
}

.quark-story-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.quark-story-text {
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  transition: background 0.3s ease;
}

.quark-story-tile:hover .quark-story-text {
  background: rgba(0, 0, 0, 0.9);
}

.large-tile {
  height: auto; /* Adjust height for larger tile */
}

.small-tile {
  height: auto; /* Adjust height for smaller tiles */
  display: flex;
  align-items: flex-start; /* Align items at the top */
}

.small-tile img {
  width: 35%; /* Adjust width for smaller tiles */
  height: auto;
  border-radius: 8px;
}

.small-tile .quark-story-text {
  flex: 1;
  margin-left: 10px;
  text-align: left;
}

.small-tile .quark-story-text h4 {
  margin-top: 0;
  font-size: 1rem; /* Smaller font size */
}

.small-tile .quark-story-text p {
  margin-bottom: 10px;
  font-size: 0.875rem; /* Smaller font size */
}

.small-tile .quark-story-text .btn {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem; /* Smaller font size */
}

/* ...existing code... */

.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* ...existing code... */

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* ...existing code... */

/* ...existing code... */

.menubar .back-button {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #ffd700; /* Goldish color to match the theme */
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.menubar .back-button::before {
  content: '\2190'; /* Unicode for left arrow */
  margin-right: 10px;
}

/* ...existing code... */

.menubar ul li a.services-link::after {
  content: ''; /* Remove the arrow */
  margin-left: 0; /* Remove the margin */
}

/* ...existing code... */

.menubar .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffd700; /* Goldish color to match the theme */
  cursor: pointer;
}

/* ...existing code... */

/* ...existing code... */

.video-container {
  position: relative;
  cursor: pointer;
  display: flex; 
  justify-content: center; 
  cursor: pointer;
}

.video-container .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container .play-button::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid rgba(0, 0, 0, 0.8);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.video-thumbnail {
  max-width: 100%; 
  height: auto; 
  border-radius: 8px;
}

.iframe-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.iframe-overlay div {
  position: relative;
  width: 90%;
  max-width: 600px;
}

.iframe-overlay iframe {
  width: 100%;
  height: 338px;
}

.close-video {
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

@media (max-width: 576px) {
  .iframe-overlay iframe {
    height: 150px;
  }

  .close-video {
    top: -10px;
    right: -10px;
    width: 15px;
    height: 15px;
  }
}

.navbar, .carousel {
  background-image: url('img'); /* Shared background image */
  background-size: cover; /* Ensure the image covers the area */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent the image from repeating */
  background-attachment: fixed; /* Fix the background image in place */
}

/* Ensure the navbar has a transparent background to show the shared image */
.navbar {
  background-color: transparent !important;
  margin-bottom: 0; /* Remove any margin */
  padding-bottom: 0; /* Remove any padding */
  position: flex; /* Ensure the navbar is positioned relative to its container */
}

/* Adjust the carousel to align with the navbar */
.carousel {
  margin-top: 0; /* Remove any margin */
  padding-top: 0; /* Remove padding */
}

/* ...existing code... */

@media screen and (max-width: 767px) {
  #what-we-do .image-right {
    text-align: left !important; /* Align picture to the left on mobile */
    margin-left: 0 !important; /* Remove left margin */
    order: 3; /* Ensure the image is below the text */
  }
  #what-we-do .text-left {
    order: 2; /* Ensure the text is above the image */
  }
  #what-we-do h2 {
    order: 1; /* Ensure the title is above the text */
  }
}

/* ...existing code... */

@media screen and (max-width: 767px) {
  #about-us .image-right {
    text-align: left !important; /* Align picture to the left on mobile */
    margin-left: 0 !important; /* Remove left margin */
    order: 3; /* Ensure the image is below the text */
  }
  #about-us .text-left {
    order: 2; /* Ensure the text is above the image */
  }
  #about-us h2 {
    order: 1; /* Ensure the title is above the text */
  }
}

/* ...existing code... */
