:root {
  --navbar-hover-color: #d90011;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat";
  line-height: 1.6;
  color: #333;
  overflow-y: auto;
  overflow-x: hidden;
}
.navbar {
  background: #ffffff;
  padding: 0.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  z-index: 102;
}

.logo-container:hover {
  transform: translateY(-1px);
}

.logo-img {
  height: 70px;
  width: 60%;
  object-fit: contain;
}

/* Updated Navigation links with hover color variable */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-left: auto;
  padding: 0;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  line-height: 100%;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: -0.2%;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navbar-hover-color); /* Using the variable for underline */
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--navbar-hover-color); /* Using the variable for text color */
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
  background: var(
    --navbar-hover-color
  ); /* Using the variable for underline on hover */
}

.nav-links a.active {
  color: var(--navbar-hover-color); /* Using the variable for active state */
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
  background: var(
    --navbar-hover-color
  ); /* Using the variable for active state underline */
  height: 2.5px;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
}

.burger-menu:focus {
  outline: none;
}

.burger-line {
  width: 30px;
  height: 3px;
  background: #2c3e50;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background-color: white;
    width: 100%;
    height: 100vh;
    padding: 100px 40px;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    margin: 0;
    z-index: 101;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  /* Animated burger menu */
  .burger-menu.active .burger-line:first-child {
    transform: rotate(45deg);
  }

  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
  }

  /* Stagger animation for menu items */
  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background-color: white;
    width: 100%;
    height: 100vh;
    padding: 100px 40px;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    margin: 0;
    z-index: 101;
  }

  .nav-links.active {
    right: 0;
  }

  /* Mobile hover states using the variable */
  .nav-links a:hover {
    color: var(--navbar-hover-color);
  }

  .nav-links a:hover::after {
    background: var(--navbar-hover-color);
  }
}

/* Add to your frontend CSS file */

/* Dropdown styling */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-toggle {
  display: flex;
  align-items: center;
}

.nav-links .dropdown-toggle i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.nav-links .dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .dropdown-menu li {
  display: block;
  width: 100%;
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 11px 4px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-links .dropdown-menu a:hover,
.nav-links .dropdown-menu a.active {
  background-color: #f5f5f5;
}




/* Mobile responsiveness for dropdowns */
@media (max-width: 768px) {
  .nav-links .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 15px;
  }

  .nav-links .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-toggle i {
    margin-left: auto;
  }
}
@media (max-width: 1024px) {
  .nav-links a {
    letter-spacing: -1px;
  }
}

/* Mobile navigation styles */
@media (max-width: 640px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .nav-container {
    padding: 0 10px;
  }

  .logo-img {
    height: 40px;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

main {
  margin-top: 60px;
  overflow-x: hidden;
}

/* Carousel styles */
.carousel-container {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  margin-top: 0; /* Remove any top margin to stick to navbar */
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide::before {
  display: none; /* Remove the dark overlay */
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.placeholder-text {
  position: absolute;
  bottom: 0; /* Position at bottom instead of center */
  left: 0;
  right: 0;
  transform: none; /* Remove the centering transform */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  color: white;
  text-align: left; /* Align text to left */
  padding: 20px 40px; /* Add more horizontal padding */
  z-index: 2;
}

.placeholder-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.placeholder-text p {
  font-size: 1.2rem;
  text-shadow: none;
  opacity: 0.9;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}

/* Services section styles */
.services-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
}

/*.section-title::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  bottom: -10px;*/
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
/*  width: 100px;*/
/*  height: 3px;*/
/*  background: #3498db;*/
/*}*/

.service-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
}

.service-image {
  flex: 1;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-image:hover img {
  transform: scale(1.05);
}

.service-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-description {
  color: #666;
  margin-bottom: 1.5rem;
}

/* Admin panel styles */
.admin-panel {
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 1000;
}

.admin-panel.active {
  right: 0;
}

.admin-toggle {
  position: fixed;
  right: 1rem;
  top: 1rem;
  background: #2c3e50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form input,
.admin-form select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.admin-form button {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Grid Container */
.grid-view.custom-container {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  row-gap: 0px;
  column-gap: 20px;
  margin: 0;
  padding: 30px 0;
  border: none;
  background-color: #2c3e50; /* Dark blue background color */
}

/* Grid Item */
.grid__item {
  z-index: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
  align-self: center;
  justify-self: center;
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

/* Text Content */
.item__text {
  color: #ecf0f1; /* Light text color */
  padding: 20px;
}

/* Heading Styles */
.item__text h1 {
  font-family: "Cantarell", sans-serif;
  color: #7480bc;
  font-size: 24px;
  text-align: center;
  font-style: italic;
}

/* Paragraph Styles */
.item__text p {
  margin: 10px 0;
}

/* Yellow Text */
.item__text .highlight {
  color: #f1c40f;
  font-size: 14pt;
}

/* Underlined Headers */
.item__text .section-header {
  color: #ecf0f1;
  font-size: 14pt;
  text-decoration: underline;
  font-weight: bold;
}

/* Main Title */
.item__text .main-title {
  font-size: 20pt;
  color: #ecf0f1;
  font-style: italic;
  font-weight: bold;
  text-align: center;
}

/* Divider */
.custom-title {
  text-align: center;
  color: #ecf0f1;
}
