/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  animation: bodyFade 2s ease-in-out;
}
.back-button {
  position: fixed; /* Keeps the button fixed in the top-left corner */
  top: 20px; /* Distance from the top */
  left: 20px; /* Distance from the left */
  z-index: 1000; /* Ensures it appears above other elements */
  background-color: #0056b3; /* Button background color */
  color: #fff; /* Button text color */
  font-size: 1rem; /* Font size */
  font-weight: bold;
  padding: 10px 20px; /* Padding for a clickable area */
  border-radius: 25px; /* Rounded button for a friendly look */
  text-decoration: none; /* Removes underline from the text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.back-button:hover {
  background-color: #003d8f; /* Slightly darker shade on hover */
  transform: translateY(-3px); /* Lift effect on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.back-button:active {
  transform: translateY(0); /* Reset position when clicked */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Reduced shadow when clicked */
}

@keyframes bodyFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #001f3f, #007bff, #ff4d4d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.spinner {
  width: 60px;
  height: 60px;
  border: 8px solid rgba(255, 255, 255, 0.5);
  border-top: 8px solid #ff4d4d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Header Section */
.header {
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0, 31, 63, 0.9), rgba(0, 31, 63, 0.7)), url('../images/18.JPG') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.9));
  transform: rotate(45deg);
  z-index: 1;
  animation: rotateGlow 20s infinite linear;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header-title {
  font-size: 5rem;
  font-weight: bold;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff4d4d, #007bff, #ffffff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 5s infinite ease-in-out;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-subtitle {
  margin-top: 20px;
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeIn 2s ease-in-out;
}

/* Section Styling */
.section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;

}

.section:nth-child(even) {
  background: linear-gradient(to bottom, #007bff, #001f3f);
}

.section:nth-child(odd) {
  background: linear-gradient(to bottom, #001f3f, #ff4d4d);
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 50px;
  animation: slideIn 1.5s ease-out;
  position: relative;

}

.section-title::after {
  content: '';
  width: 120px;
  height: 6px;
  background: linear-gradient(to right, #ff4d4d, #ffffff, #007bff);
  display: block;
  margin: 20px auto 0;
  border-radius: 3px;
  animation: pulse 2s infinite alternate;
}

@keyframes slideIn {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.1);
  }
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Reduced gap for better spacing */
  justify-content: center;
  padding: 0 20px;
}

.card {
  width: 260px; /* Reduced width */
  height: 320px; /* Reduced height */
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 15px; /* Slightly smaller radius */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
  transform: scale(1.05); /* Slightly reduced hover scale */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1.2rem; /* Adjusted font size */
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.card:hover .card-link {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

.dropdown {
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 8px;
  display: none;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown ul li {
  margin: 5px 0;
}

.dropdown ul li a {
  text-decoration: none;
  color: #ff4d4d;
  font-size: 1rem; /* Adjusted font size for dropdown */
  font-weight: bold;
  transition: color 0.3s ease;
}

.dropdown ul li a:hover {
  color: #ffffff;
}
/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
  /* General Body Adjustments */
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Preloader */
  .preloader {
    flex-direction: column;
    padding: 20px;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border: 6px solid rgba(255, 255, 255, 0.5);
    border-top: 6px solid #ff4d4d;
  }
  .back-button {
    top: 5px; /* Closer to the top on mobile */
    left: 10px; /* Closer to the left edge */
    font-size: 0.7rem; /* Slightly smaller text */
    padding: 8px 15px; /* Reduced padding for smaller screens */
    border-radius: 20px; /* Slightly smaller rounded corners */
  }
  /* Header Section */
  .header {
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .header-title {
    font-size: 3rem;
    margin: 10px 0;
  }

  .header-subtitle {
    font-size: 1.2rem;
  }

  /* Section Styling */
  .section {
    padding: 50px 10px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .section-title::after {
    width: 80px;
    height: 4px;
  }

  .cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Reduced gap for better spacing */
    justify-content: center;
    padding: 0 20px;
  }

  .card {
    width: 100%; /* Make cards full-width on mobile */
    height: 20vh; /* Adjust height dynamically based on content */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }

  .card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px; /* Adjust link height */
    text-decoration: none;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1rem; /* Adjusted font size */
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .card:hover .card-link {
    background: rgba(0, 0, 0, 0.8);
  }

  /* Dropdown Styling */
  .dropdown {
    position: relative; /* Adjust dropdown to flow below the card */
    margin-top: 10px; /* Add spacing below the card */
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 15px;
    display: none; /* Hidden by default */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  }

  .card:hover .dropdown {
    display: block; /* Show dropdown when card is hovered */
  }

  .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown ul li {
    margin: 10px 0;
  }

  .dropdown ul li a {
    text-decoration: none;
    color: #ff4d4d;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .dropdown ul li a:hover {
    color: #ffffff;
    transform: scale(1.1);
  }
}
/* Language Selector */
.language-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.language-selector .language-dropdown {
  position: relative;
  display: inline-block;
}

.language-dropdown-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease-in-out;
}

.language-dropdown-btn:hover {
  background-color: #0056b3;
}

.language-arrow-down {
  border: solid white;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.language-dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%; /* Dropdown opens upwards */
  right: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  min-width: 150px;
  z-index: 1000;
}

.language-dropdown-menu .language-dropdown-item {
  padding: 10px 15px;
  border: none;
  background-color: white;
  color: #333;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
}

.language-dropdown-menu .language-dropdown-item:hover {
  background-color: #f1f1f1;
}

.language-dropdown:hover .language-dropdown-menu {
  display: block;
}

.language-dropdown:hover .language-arrow-down {
  transform: rotate(-135deg);
}
