/* General Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  color: white;
}

body {
  background-color: #1c1943;
  color: white;
}

/* Define CSS Variables */
:root {
  --primary-color: #1c1943;
  --secondary-color: #6f22b8;
  --highlight-bg: #6f22b8; /* Example highlight background color */
  --shadow-color: rgba(0, 0, 0, 0.4);
}


/* Modern Loader Styles */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1c1943;
  z-index: 9999;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-color: #ccc #0000;
  animation: l16 1s infinite linear;
}
.loader::before,
.loader::after {    
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
}
.loader::before {
  border-color: #f03355 #0000;
  animation: inherit; 
  animation-duration: .5s;
  animation-direction: reverse;
}
.loader::after {
  margin: 8px;
}
@keyframes l16 { 
  100%{transform: rotate(1turn)}
}

/* Carousel Section */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--highlight-bg);
}

.carousel-slide {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  height: 100vh;
  position: relative;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Translucent Background Layer */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

/* Content Styling */
.carousel-item > * {
  position: relative;
  z-index: 1;
}

.carousel-title {
  margin: 0;
  font-size: 3rem;
  text-shadow: 2px 2px 4px var(--shadow-color);
}

.carousel-text {
  font-size: 1.5rem;
  margin: 15px 0;
}

/* Button Styles */
.btn-primary {
  padding: 15px 35px;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #5b1c9c;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease-in-out;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Navigation Buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: yellow;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}


/* Section Styles */
.section {
  padding: 50px 20px;
  background: var(--primary-color);
  color: white;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.section-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

.btn-secondary {
  padding: 10px 20px;
  background: #6c44a0;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: #59388a;
}

.vision {
  position: relative;
  background-image: url(assets/images/vision_background_image.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vision::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust transparency (0 = fully transparent, 1 = fully opaque) */
}

.vision .section-content {
  position: relative;
  z-index: 1; /* Ensures the content appears above the overlay */
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  gap: 20px;
}


.vision .section-content div {
  flex: 1; /* Allows text content to take equal space */
}

.vision .sponsor-logo {
  flex: 1;
  max-width: 400px;
  height: auto;
  display: block;
  margin-left: auto; /* Pushes image to the right */
}

.vision .section-title {
  text-align: left;
}

.vision .vision-btn {
  display: inline-block;
  margin-top: 10px;
}



.aim {
  position: relative;
  background-image: url(assets/images/aim_background_image.jpg);
    /* Add the correct background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.aim::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust transparency */
}

.aim .section-content {
  position: relative;
  z-index: 1; /* Ensures the content appears above the overlay */
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  gap: 20px;
}

.aim .aim-image {
  flex: 1;
  max-width: 400px;
}

.aim .sponsor-logo {
  width: 100%;
  height: auto;
  display: block;
}

.aim .aim-text {
  flex: 1;
}

.aim .section-title {
  text-align: left;
}

.aim .aim-btn {
  display: inline-block;
  margin-top: 10px;
}


/* Highlights Grid */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.highlight-item {
  background: var(--highlight-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
  text-align: left;
}

.highlight-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.highlight-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Sponsor Logos */
.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  justify-items: center;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sponsor-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  filter: brightness(0.8);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.sponsor-logo:hover {
  transform: scale(1.05);
  filter: brightness(1);
}


.sponsor-item h2 {
  font-size: 1rem;
  margin: 0;
  color: #666;
}

@media (min-width: 1025px) {
  .sponsor-logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .sponsor-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 15px;
  }
  
  .sponsor-logo {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .sponsor-logos {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .sponsor-logo {
    max-width: 130px;
  }

  .sponsor-item h2 {
    font-size: 0.9rem;
  }
}


.tagline {
  font-size: 2em;
  text-align: center;
}

