/* ================Overall Settings================== */
/* Overall Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body,
html {
  font-family: "Lexend", sans-serif;
  background: #000000 url("images/stars.png") repeat center/cover fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin: 0;
  overflow-x: hidden;
  /*animation: dimBackground 3s ease-in-out infinite alternate;*/
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgb(0, 0, 0);
  opacity: 0.3;
  z-index: -1;
  animation: pulseDark 3s ease-in-out infinite alternate;
}

@keyframes pulseDark {
  from { opacity: 0; }
  to   { opacity: 0.4; }
}

@keyframes dimBackground {
  from {
    filter: brightness(0.8);
  }
  to {
    filter: brightness(1);
  }
}
/*=====================================*/

/* ===================Navbar (Desktop)======================== */

nav {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 1rem;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  z-index: 1000;
}

.logo {
  height: auto;
  margin-right: 15vw;
  margin-left: 5vw;
  padding-top: 4vh;
}

.nav-center {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 3vh;
  gap: 4vw;
  width: 40vw;
  margin-right: 5vw;
}

.nav-center a {
  margin-top: 2rem;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 1.5vw;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-center a:hover {
  text-decoration: underline;
}

/*=====================================*/

/*==========================MAIN=================================*/

/* General Section Styling */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
}

/* Home Section */
#home {
  /* height: 100vh; */
  padding-top: 0vh;
}

.name {
  font-family: "Asul", sans-serif;
  font-size: 6vw;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 15vh;
}

.name span {
  color: #004aab;
}

#moto {
  color: #e0e0e0;
  font-size: 3vw;
  line-height: 0.9;
  font-weight: 400;
  font-family: "Red Rose", sans-serif;
  margin-bottom: 15rem;
}

/* ===============About Section=================*/
#about {
  padding-top: 0vh;
  height: auto !important;
  min-height: auto;
  margin: 0px;
  margin-top: 10rem;
}

.about-layer {
  background: rgba(20, 20, 20, 0.9);
  padding: 2vw 5vw;
  width: 75vw;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.8);
  position: relative;
}

.about-layer h1 {
  font-family: "Lexend", sans-serif;
  color: #0c8ce9;
  font-size: 2.5rem;
  margin: 0;
}

.about-layer p {
  display: flex;
  flex-wrap: wrap;
  font-family: "Lexend", sans-serif;
  font-size: 1.6rem;
  color: white;
}

/*===================*/

.view-more {
  display: block;
  margin: 1rem auto;
  padding: 0.75rem 1.5rem;
  background: rgba(100, 100, 100, 0.5);
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: bold;
  height: 7vh;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  width: fit-content;
  text-align: center;
}

.view-more a {
  color: white;
  text-decoration: none;
}

.view-more:hover {
  background: #0c8ce9;
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* =================EVENTS===========================================*/

#events {
  padding-top: 2vh;
  display: flex;
  z-index: 2;
  position: relative;
  margin: 0px !important;
  padding-bottom: 10px !important;
  height: auto !important;
  margin-bottom: 8rem !important;
}

#events h1 {
  font-family: "Lexend", sans-serif;
  color: #0c8ce9;
  font-size: 2.5rem;
  margin-bottom: 0rem;
  transform: translateY(4rem);
  margin-bottom: 3rem;
}

/* =================CAROUSEL =================*/

.cards-viewport {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.cards-track {
  padding: 2rem 5rem;
  display: flex;
  gap: 10vh;
  transition: transform 0.5s ease;
  will-change: transform;
}

.event-card {
  flex: 0 0 20vw;
  height: 28vw;
  border-radius: 2vw;
  background-color: rgba(0, 38, 255, 0.2);
  border: 2px solid #0ff;
  box-shadow: 0 0 2px #000dff, 0 0 5px #000dff, 0 0 10px #000dff,
    0 0 20px #000dff;
  transition: transform 0.3s ease;
}

.event-card.active {
  transform: scale(1.12);
  z-index: 1;
}


.control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.prev-btn {
  left: -60px;
}

.next-btn {
  right: -60px;
}

.eventimage {
  position: relative;
  top: 10%;
  width: 75%;
  height: 50%;
  margin: auto;
  border-radius: 1vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eventimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.workshopName {
  font-size: 30px;
  position: relative;
  top: 15%;
  width: 80%;
  text-align: center;
  margin: auto;
  font-family: "Lexend", sans-serif;
  background: transparent;
}

.event-static-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}



#carousel-prev,
#carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease;
}

#carousel-prev:hover,
#carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

#carousel-prev img,
#carousel-next img {
  width: 28px;
  height: 28px;
  display: block;
}

#carousel-prev {
  left: -50px;
}

#carousel-next {
  right: -50px;
}

.slider-container {
  position: relative;
  width: 82%;
  margin: 0 auto;
  padding-bottom: 50px;
}

#carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin-top: 1vw;
}

#carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s;
}

#carousel-dots .dot.active {
  background: #0c8ce9;
}

.event-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card.active {
  transform: scale(1.15);
  box-shadow: 0 0 20px #0c8ce9, 0 0 40px #0c8ce9;
  z-index: 2;
}

#cards-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 700px;
}

#cards-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-card {
  position: absolute;
  overflow: hidden;
  width: 250px;
  height: 350px;
  border-radius: 30px;
  background-color: rgba(0, 38, 255, 0.2);
  border: 2px solid #0ff;
  box-shadow: 
    0 0 2px #000DFF,
    0 0 5px #000DFF,
    0 0 10px #000DFF,
    0 0 20px #000DFF;
  transition: transform 0.3s ease;

}
.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*================================================================*/

/* ===================================================================================*/

#gallery {
  min-height: 100vh;
  padding: 2rem 5rem;
  display: block;
}

#gallery h1 {
  font-family: "Lexend", sans-serif;
  color: #0c8ce9;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.gallery {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  padding: 2% 10%;
  align-items: start;
}

.picture {
  display: block;
  width: 100%;
  margin: 0;
}

.picture img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/*===========================================================*/

.sponsors-wrapper {
  text-align: center;
  margin: 40px 0;
  padding: 0;
}

.sponsors-wrapper h1 {
  color: #0c8ce9;
  font-size: 2.5rem;
  margin-bottom: 5vw;
  font-weight: 700;
}

.sponsors-container {
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.sponsors-track {
  --animation-duration: 20s; /* Fallback duration */
  display: flex;
  flex-wrap: nowrap;
  animation: scroll-left var(--animation-duration) linear infinite;
  will-change: transform;
}

.sponsor {
  flex: 0 0 auto;
  margin: 0 20px;
  width: 140px;
  height: 100px;
  flex-shrink: 0;
}

.sponsor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sponsors-container:hover .sponsors-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 600px) {
  .sponsors-container {
    width: 90%;
  }

  .sponsor {
    width: 80px;
    height: 50px;
    margin: 0 10px;
  }

  .sponsor img {
    width: 100%;
    height: 100%;
  }

  .sponsors-track {
    --animation-duration: 15s; /* Fallback for mobile */
  }
}

/* =========================Mobile/Tablet============== */
@media (max-width: 748px) {
  .logo {
    height: 100px;
    position: relative;
    top: -20px;
  }

  /* Hide navbar on mobile */
  #nav-center {
    display: none !important;
  }

  .name {
    max-width: 90%;
    font-size: 10vw;
    margin-top: 10vw;
    margin-bottom: 1rem;
  }

  #moto {
    font-size: 4vw;
    max-width: 60%;
    margin-bottom: 20vw;
  }


  

  /* ===============About Section=================*/

.about-layer {
  width: 80vw;
  border-radius: 30px;
}

.about-layer h1 {
  font-size: 2rem;
}

.about-layer p {
  font-size: .8rem;
  padding-top: 1rem;
}



/*===============================================*/



 /* ===================GALLERY====================*/
#gallery{
  padding:2rem 2.5rem;
}
.gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0%;
  align-items: start;
}
.view-more {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  background: rgba(100, 100, 100, 0.5);
  color: white;
  font-size: clamp(0.6rem, 2vw, 1.1rem);
  font-weight: bold;
  height: 4vh;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  width: fit-content;
  text-align: center;
}



 /* ==================================================================*/







  /* ====================Hamburger and Sidebar====================*/

  .hamburger {
    display: flex !important;
    position: absolute;
    top: 2.5rem;
    right: 1.5rem;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    z-index: 3000;
    background: transparent;
    border: 0px;
  }

  .hamburger div {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-center {
    display: flex !important; /* Always defined for desktop */
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: calc(-1 * clamp(250px, 50vw, 300px));
    width: clamp(200px, 50vw, 200px);
    height: 100%;
    background: rgba(0, 38, 255, 0.6);
    border-left: 2px solid #0ff;
    box-shadow: 0 0 10px #000dff, 0 0 20px #000dff, 0 0 40px #000dff;
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 4vh;
    transition: right 0.3s ease;
    z-index: 1050;
  }

  .sidebar.active {
    right: 0;
  }

  .sidebar a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease;
  }

  .sidebar a:hover {
    color: #0c8ce9;
    background: rgba(255, 255, 255, 0.1);
  }
  /*=====================================*/

  /*  =================CAROUSEL==========================================*/

  .event-item {
    width: 100vw;
  }

  #events h1{
    font-size: 2rem;
    padding-bottom: 1rem;
  }
  #cards-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    margin: 0px;
    padding: 0px;
  }


  #cards-track {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .event-card {
    position: absolute;
    width: 100px;
    height: 150px;
    overflow: hidden;
    border-radius: 4vw;
  background-color: rgba(0, 38, 255, 0.2);
  border: 2px solid #0ff;
  box-shadow: 0 0 2px #000dff, 0 0 5px #000dff, 0 0 10px #000dff,
    0 0 20px #000dff;
  transition: transform 0.3s ease;
  }


  .event-card.active {
    transform: scale(1.5);
  }
  .workshopName {
    font-size: 10px;
  }
  #carousel-prev img,
  #carousel-next img {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0vw 2vw;
  }
  #carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 85vw;
    margin-top: 0px;
  }
  #carousel-dots{
    top: 28rem;
  }
.slider-container {
  position: relative;
  width: 82%;
  margin: 0 auto;
  padding-bottom: 5px;
}

  /*========================================================================*/




  




  /* ================= FOOTER -mobile================= */

  .footer {
    width: 100%;
    margin: 2vw 0vw;

    /* Remove border and box-shadow */
    border: none;
    box-shadow: none;
  }
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "logo logo"
      "social social"
      "links location";
    gap: 2vw;
    justify-items: center;
    align-items: center;
    text-align: center;

    background: linear-gradient(90deg, transparent 50%, transparent 50%),
      url("images/background_footer.png") center/cover no-repeat;

    padding-bottom: 30px;
  }

  .footer-logo {
    grid-area: logo;
    margin-top: 40px;
  }
  .footer-logo img {
    height: 75px !important;
    display: block;
    margin: 0 auto;
  }

  .footer-social {
    grid-area: social;
    justify-content: center;
    margin-bottom: 20px;
  }
  .footer-social h3 {
    font-size: 3vw;
  }
  .footer-social ul {
    display: flex;
    justify-content: center;
    gap: 8vw;
    padding: 0;
    margin: 0;
  }
  .footer-social ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    font-size: 2.5vw !important;
    color: white;
    text-decoration: none;
  }
  .footer-social ul li a img {
    height: 6vw !important;
    min-height: 32px;
  }

  .footer-links {
    grid-area: links;
    justify-self: center;
    text-align: center;
  }
  .footer-location {
    grid-area: location;
    justify-self: center;
    text-align: center;
    max-width: 20vw;
  }

  .footer-links h3,
  .footer-location h3 {
    font-size: 3vw !important;
    margin-bottom: 2vw;
    max-width: 60vw !important;
  }

  .footer-links a {
    font-size: 2.5vw !important;
    margin: 1vw 0;
    display: block;
    text-align: left;
  }

  .footer-location p {
    font-size: 2vw;
    margin-top: 2vw;
    max-width: 40vw;
  }

  .club-map {
    width: 100%;
    height: 15vw;
    border-radius: 1vw;
  }
  .footer-bottom {
    font-size: 2.1vw;
    text-align: center;
  }

  /*===========================================*/




  .footer-social ul {
  list-style: none; /* Hides the default bullets/dots */
  padding: 0;
  display: flex;
  gap: 20px;
  margin-top: 1rem;
}

li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
}

li a:hover {
  opacity: 0.8;
}

svg {
  flex-shrink: 0;
}
}

/*=====================================*/

/* =============DESKTOP=============== */

@media (min-width: 749px) {
  /*====NAV , HAMBURGER,CLOSE BTN======*/

  .hamburger {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .nav-center {
    display: flex;
  }
  /*=====================================*/

  /* ================= FOOTER -DESKTOP================= */

  .footer {
    background: rgba(0, 0, 0, 0.85) url("stars.png") repeat center/cover;
    padding: 3vw 5vw;
    border: 0.1vw solid #00aaff;
    border-radius: 2vw;
    margin: 2vw 5vw;
    box-shadow: 0 0 0.5vw #b8c6aa, 0 0 1.5vw #00aaff, 0 0 2.5vw #67c3d0;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 3vw;
    text-align: left;
  }
  .footer-logo img {
    height: 10vw;
    margin: 1.8vw 0 1vw;
  }

  .footer h3 {
    margin-bottom: 1.2vw;
    font-family: "Lexend", sans-serif;
    font-size: 1.3vw;
    color: #fff;
  }

  .footer ul {
    list-style: none;
    padding: 0;
  }

  .footer a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 0.5vw 0;
    font-size: 1vw;
    transition: color 0.3s, text-shadow 0.3s;
    padding-left: 1vw;
  }

  .footer a:hover {
    color: #0c8ce9;
    text-shadow: 0 0 5px #0c8ce9, 0 0 10px #0c8ce9;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 2vw;
    font-size: 0.9vw;
    color: #bbb;
  }

  .footer-location p {
    font-size: 1.2vw;
    color: #e0e0e0;
    font-family: "Lexend", sans-serif;
    margin-top: 1vw;
    line-height: 1.5;
    max-width: 14vw;
  }

  .footer-location p sup {
    font-size: 0.6em;
    vertical-align: super;
    color: white;
    font-weight: 600;
  }
  .footer-location {
    max-width: 10vw;
    aspect-ratio: 1;
  }

  .footer-social ul li a {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    text-decoration: none;
    color: white;
    font-size: 1vw;
    transition: color 0.3s;
  }

  .footer-social ul li a img {
    height: 1.5vw;
    width: auto;
  }

  .club-map {
    border-radius: 0.5vw;
    border: 0.1vw solid #00aaff;
    box-shadow: 0 0 0.8vw #00aaff, 0 0 1.5vw #67c3d0;
    width: 100%;
    height: auto;
    background: #000;
  }
  .footer-bottom {
    font-size: 1vw;
  }

  /*===========================================*/
}
/*=====================================*/



















