/* =============== BASE =============== */
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

/* Example media query for smaller screens */
@media screen and (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* =============== SCROLL BAR =============== */
/* For WebKit Browsers */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #ddd;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 3px solid #ddd;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* For Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #888 #ddd;
}

/* General Styles (applied to all browsers) */
body {
  scrollbar-color: #888 #ddd;
  scrollbar-width: thin;
}

/* =============== PRELOADER =============== */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 12, 34, 0.98) !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 9999;
}
.splash-content {
  text-align: center;
  color: #fff;
  width: 80%;
  max-width: 500px;
}
.splash-logo {
  width: 120px;
  margin-bottom: 10px;
}
.splash-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}
.splash-tagline {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 20px;
}
/* Full-width Line Loader */
.splash-loader {
  width: 100%;
  height: 4px;
  background: #ccc;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.loader-highlight {
  width: 0;
  height: 100%;
  background: #f82249;
  position: absolute;
  -webkit-animation: load 1.5s infinite;
  animation: load 1.5s infinite;
}
@-webkit-keyframes load {
  0% {
    width: 0;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
@keyframes load {
  0% {
    width: 0;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

/* =============== HEADER =============== */
.navbar {
  background: transparent;
  -webkit-transition: background 0.3s ease-in-out;
  -o-transition: background 0.3s ease-in-out;
  transition: background 0.3s ease-in-out;
  padding: 12px 0;
}
.navbar.scrolled {
  background: rgba(6, 12, 34, 0.98) !important;
}
.btn-primary {
  background: #f82249;
  color: #fff;
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: bold;
  border: none;
  -webkit-transition: background 0.3s;
  -o-transition: background 0.3s;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #d81b40;
  color: #fff;
}
.nav-link {
  color: rgba(202, 206, 221, 0.8) !important;
  font-weight: 500;
  position: relative;
  -webkit-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}
.nav-link.active,
.nav-link:hover {
  color: #fff !important;
}
.nav-link::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #f82249;
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  -webkit-transform: scaleX(1);
  -ms-transform: scaleX(1);
  transform: scaleX(1);
}
.navbar-toggler {
  border: none;
  outline: none;
}
.navbar-toggler:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}
.show-overlay {
  display: block !important;
}
@media (max-width: 991px) {
  .navbar .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .navbar-toggler {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
  }
  .btn-primary {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    margin-left: auto;
  }
  .navbar-brand {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }
  .nav-link::after {
    display: none;
  }
}

/* =============== HOME =============== */
#home {
  position: relative;
  background: url("../img/gallery/6.jpg") no-repeat center center/cover;
  color: white;
  height: 80vh;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding: 80px 15px;
  overflow: hidden;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: bold;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 12, 34, 0.8);
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.content h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  text-transform: uppercase;
  -webkit-animation: fadeInDown 1s;
  animation: fadeInDown 1s;
  font-family: "Nanum Pen Script", cursive;
  letter-spacing: -0.025em;
  font-size: 6rem;
}

.content h2 {
  font-size: clamp(18px, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 15px;
  color: #f82249;
  -webkit-animation: fadeInUp 1s;
  animation: fadeInUp 1s;
}

.content p {
  font-size: clamp(16px, 2vw, 1.4rem);
  margin-bottom: 20px;
  -webkit-animation: fadeIn 1.5s;
  animation: fadeIn 1.5s;
}

.btn-custom {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 30px;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: #004aad;
  border-color: #004aad;
}

.btn-outline-light:hover {
  background-color: white;
  color: #061222;
}

.icon {
  font-size: 1.2rem;
}
/* Responsive Design */
@media (max-width: 768px) {
  .content h1 {
    font-size: 4rem;
  }
}

/* =============== ABOUT =============== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* =============== SPECIAL =============== */
#special .special-card {
  border: none;
  border-radius: 20px;
  color: white;
  -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  -o-transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s,
    -webkit-box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#special .card-body {
  background: transparent;
}

#special .special-card:hover {
  -webkit-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  transform: translateY(-10px);
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#special .special-card i {
  font-size: 2.5rem;
}

#special .food-fest {
  background: -o-linear-gradient(315deg, #ff7e5f, #feb47b);
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

#special .gaming-zone {
  background: -o-linear-gradient(315deg, #667eea, #764ba2);
  background: linear-gradient(135deg, #667eea, #764ba2);
}

#special .business-hunt {
  background: -o-linear-gradient(315deg, #43cea2, #185a9d);
  background: linear-gradient(135deg, #43cea2, #185a9d);
}

/* Techno-Fest Button */
#special .techno-fest {
  background: linear-gradient(135deg, #ff6b6b, #556270);
  cursor: pointer;
}

/* Popup Background */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(5px);
  overflow: hidden; /* Prevent background scroll */
}

/* Popup Content */
.popup-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  max-height: 80vh; 
  overflow-y: auto; 
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.3s ease-in-out;
  font-family: 'Poppins', sans-serif;
}

/* Ensure smooth scrolling inside popup */
.popup-content::-webkit-scrollbar {
  width: 6px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #ff3b3b;
  background: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  border: 1px solid #ff3b3b;
}

.close i {
  font-size: 16px;
}

.close:hover {
  background: #ff3b3b;
  color: #ffffff;
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .popup-content {
    max-width: 90%;
    max-height: 90vh; 
  }
}

/* Title Styling */
.popup-title {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff6b6b, #ffcc5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Prize Amount */
.prize {
  font-size: 22px;
  font-weight: bold;
  color: #ff6b6b;
}

/* Text Styling */
#popup p, ul {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

/* Icons */
#popup ul li {
  list-style: none;
  font-size: 16px;
  color: #444;
  margin-bottom: 8px;
}
#popup ul li i {
  color: #ff6b6b;
  margin-right: 5px;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .popup-content {
      padding: 20px;
      width: 90%;
  }
  .close {
      width: 28px;
      height: 28px;
      font-size: 16px;
  }
}

@media (max-width: 768px) {
  #special .special-card {
    padding: 30px;
  }

  #special .special-card i {
    font-size: 2rem;
  }
}

/* =============== EVENT =============== */
.search-bar {
  max-width: 400px;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.search-bar:focus {
  border-color: #007bff;
  outline: none;
  -webkit-box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
}

.timeline-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.timeline-item:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.timeline-date {
  font-size: 1.1rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 8px;
}

.timeline-content img {
  max-height: 180px;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 8px;
}

.read-more-btn {
  margin-top: 10px;
  width: 100%;
  border-radius: 8px;
}
#loadingIndicator {
  display: none;
}

/* =============== GALLERY =============== */
.gallery-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 2rem;
}
.swiper {
  width: 100%;
  padding: 50px 0;
}
.swiper-slide {
  border-radius: 10px;
  overflow: hidden;
  -webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
.swiper-slide img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 10px;
}
/* Adjust different widths for responsiveness */
@media (min-width: 768px) {
  .swiper-slide {
    width: 400px;
  }
}
@media (max-width: 767px) {
  .swiper-slide {
    width: 250px;
  }
}

.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
}

/* =============== CONTACT =============== */
.contact-section {
  border-radius: 10px;
  padding: 40px 20px;
}
.contact-card {
  padding: 20px;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.contact-card:hover {
  background: #ffffff;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
@media (max-width: 767px) {
  .border-md-end {
    border-right: none !important;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}

/* =============== EVENT =============== */
.eventbg {
  background: linear-gradient(
      115deg,
      rgba(0, 255, 255, 0.08),
      rgba(255, 0, 150, 0.08),
      rgba(0, 255, 0, 0.08)
    ),
    url("../img/website_background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.event-banner {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
.section-title {
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}
.content-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.card {
  transition: transform 0.3s ease-in-out;
}
.card:hover {
  transform: scale(1.05);
}
.card-img-top {
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 15px;
}

.eventbg {
  background: linear-gradient(
      115deg,
      rgba(0, 255, 255, 0.1),
      rgba(255, 0, 150, 0.1),
      rgba(0, 255, 0, 0.1)
    ),
    url("../img/website_background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.event-banner {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0px 5px 20px rgba(0, 255, 255, 0.5);
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  color: #00ffff;
  text-shadow: 0px 0px 10px #00ffff;
}

.content-box {
  background: rgba(20, 20, 20, 0.85);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0, 255, 255, 0.3);
  border: 2px solid rgba(0, 255, 255, 0.5);
}

p,
li {
  font-size: 1.1rem;
  color: #ddd;
}

h3 {
  color: #ff00ff;
  text-shadow: 0px 0px 10px #ff00ff;
}

.card {
  background: #111;
  border: 2px solid rgba(255, 0, 150, 0.5);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 15px rgba(255, 0, 150, 0.7);
}

.card-body {
  padding: 20px;
  background: rgba(30, 30, 30, 0.85);
}

.card-title {
  color: #00ff00;
  text-shadow: 0px 0px 10px #00ff00;
}

.register-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  border: none;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(255, 0, 255, 0.7);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.register-btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.9);
}
