@import "class.css";
@keyframes spin-gear-left {
  from { transform: scale(1.2) translateX(0) rotate(0deg); }
  to { transform: scale(1.2) translateX(-1.5rem) rotate(-360deg); }
}

@keyframes spin-gear-right {
  from { transform: scale(1.2) translateX(0) rotate(0deg); }
  to { transform: scale(1.2) translateX(1.5rem) rotate(360deg); }
}
.faq-gear-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
    width: 12.5rem;
    height: 12.5rem;
}
.faq-gear-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 0px;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
.faq-gear-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #263272;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  width:7rem;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.faq-section {
  background: #fff;
}
.faq-grid {
  width: 100%;
  justify-content: center;
  display: grid;
  grid-template-columns: 1fr, 1fr;
  grid-template-rows: repeat(4, auto);
  justify-items: center;
}
.faq-item {
  width: 100%;
  z-index: 1;
  position: relative;
}

.faq-item.expanded {
  z-index: 2;
}

.faq-item.expanded .faq-gear-container {
  z-index: 4;
  position: relative;
}

.faq-gear-container:hover .faq-gear-img {
  transform: scale(1.2);
}
/* Left-side FAQ gear animation */
.faq-item.expanded:not(.right) .faq-gear-container .faq-gear-img {
  transform: scale(1.2) translateX(-1.5rem);
  animation: spin-gear-left 0.5s cubic-bezier(.4,0,.2,1);
}
.faq-item.expanded .faq-gear-container .faq-gear-text {
  transform: translate(-50%, -50%) translateX(-1.5rem);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);

}
.faq-answer { 
  background: #53c2ec;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.5rem 2rem;
  font-size: 1rem;
  color: #263272;
  min-width: 260px;
  max-width: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(.4,0,.2,1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  z-index: 1;
  text-align: center;
}
.faq-item.expanded .faq-answer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(62%) translateY(-50%) scale(1);
}

/* right gear animation (desktop) */
.faq-item.right.expanded .faq-gear-container .faq-gear-img {
  transform: scale(1.2) translateX(1.5rem);
  animation: spin-gear-right 0.5s cubic-bezier(.4,0,.2,1);
}
.faq-item.right.expanded .faq-gear-container .faq-gear-text {
  transform: translate(-50%, -50%) translateX(1.5rem);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.faq-item.right.expanded .faq-answer {
  transform: translateX(-85%) translateY(-50%) scale(1);
}
.faq-item.right .faq-gear-container .faq-answer {
  margin-left: 300%;
}

body{
  background-color: #263272;
  line-height: 1.6;
  color: black; 
  background-color: white;
}

html {
  scroll-behavior: smooth;
}

.head{
  backdrop-filter: blur(10px) brightness(85%);
  color: white;
  width:auto;
  height: 100px;
  list-style: none;
  display: flex;
  position: sticky;
  top: 0px;
  bottom: 10px;
  left: 0px;
  gap: 1.5rem;
  z-index: 100;
}

.responsive-signature-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.faq-gear-container:hover .faq-gear-img {
  cursor: pointer;
  transform: scale(1.2);
}
.faq-item.expanded .faq-gear-container .faq-gear-img {
    transform: scale(1.2) translateX(-1.5rem);
    animation: spin-gear-left 0.5s cubic-bezier(.4,0,.2,1);
  }
/* Mobile FAQ gear expanded state: consistent transforms */
.faq-item.expanded:not(.right) .faq-gear-container .faq-gear-img {
  transform: scale(1.2) translateX(-1.5rem);
  animation: spin-gear-left 0.5s cubic-bezier(.4,0,.2,1);
}
.faq-item.right.expanded .faq-gear-container .faq-gear-img {
  transform: scale(1.2) translateX(1.5rem);
  animation: spin-gear-right 0.5s cubic-bezier(.4,0,.2,1);
}
.faq-item.expanded:not(.right) .faq-gear-container .faq-gear-text {
  transform: translate(-50%, -50%) translateX(-1.5rem);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

body{
  background-color: #263272;
  line-height: 1.6;
  color: black;

}

/* Responsive signature image */
.responsive-signature-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .head {
    flex-direction: column;
    height: auto;
    gap: 0.5rem;
    padding: 8px 0;
  }
  .logo img {
    height: 40px;
    max-width: 100px;
  }
  .homepage {
    flex-direction: column;
    gap: 0.5rem;
    padding: 8px 0;
  }
  .team-member-img {
    width: 3.5rem;
    height: 3.5rem;
  }
  #team-section {
    padding-left: 4px;
    padding-right: 4px;
  }
  .foot {
    padding-left: 4px !important;
    padding-right: 4px !important;
    min-height: 320px;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .credits {
    top: 40px;
    font-size: 1rem;
  }
  h1, h2, h3 {
    font-size: 1.2rem !important;
  }
  .text-3xl {
    font-size: 1.5rem !important;
  }
  .text-2xl {
    font-size: 1.2rem !important;
  }
  .text-xl {
    font-size: 1rem !important;
  }
  .text-lg {
    font-size: 0.95rem !important;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav {
    display: block !important;
  }
  .mobile-menu-box {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border-radius: 1rem;
    background: #fd7f36;
    min-width: 180px;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(.4,0,.2,1);
  }
  @keyframes expandMenu {
    from { opacity: 0; transform: scaleY(0.8); }
    to { opacity: 1; transform: scaleY(1); }
  }
  .responsive-signature-img {
    max-width: 320px;
    max-height: 80px;
    z-index: 99;
    background-color: white;
    text-align: center;
  }
  .faq-gear-container {
    width: 8rem;
    height: 8rem;
  }
  .faq-gear-text{
    width: 5rem;
    font-size: 0.75rem;
  }
  .faq-answer {
    min-width: 200px;
    max-width: 220px;
    font-size: 0.875rem;
  }
  .faq-item.expanded .faq-answer {
  transform: translateX(45%) translateY(-50%) scale(1);
  }
  .faq-item.right.expanded .faq-answer {
  transform: translateX(-77%) translateY(-50%) scale(1);
  }
  .faq-grid > .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
  }
}

body, .main, .head, .homepage, .about-us, .faq-section, .faq-grid, .faq-item, .team, .team-section, .team-member-img, .Recap, .schedule, .location, .glowing-text, .glowing-text-yellow {
  font-family: "Nunito", cursive !important;
}
.homepage{
   width:auto;
   height: 700px;
   list-style: none;
   display: flex;
   gap: 1.5rem;
   background-image: url('../assets/background.webp');
   background-color: #3e5caa;
   background-repeat: no-repeat;
   background-position-x: center;
   background-size: cover;
   color: white;
   text-align: center;

}

@keyframes loopFall{
    from {transform: translateY(0) rotateZ(0);}
    to {transform: translateY(1000%) rotateZ(100deg);}

  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  90%{
    opacity: 0;
  }
}

@keyframes loopFall2{
    from {transform: translateY(0) rotateZ(0);}
    to {transform: translateY(1000%) rotateZ(-100deg);}

  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  90%{
    opacity: 0;
  }
}

.snowFall{
  position: absolute;
  top: 10px; 
  left: 30px;
  animation-name: loopFall;
  animation-timing-function: linear;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.snowFall2{
  position: absolute;
  top: 10px; 
  left: 500px;
  animation-delay: 2s;
  animation-name: loopFall2;
  animation-timing-function: linear;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}


.snowFall3{
  position: absolute;
  top: 10px; 
  left: 270px;
  animation-delay: 5s;
  animation-name: loopFall2;
  animation-timing-function: linear;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.snowFall4{
  position: absolute;
  top: 10px; 
  right: 30px;
  animation-delay: 0.5s;
  animation-name: loopFall;
  animation-timing-function: linear;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.snowFall5{
  position: absolute;
  top: 10px; 
  right: 500px;
  animation-delay: 3s;
  animation-name: loopFall2;
  animation-timing-function: linear;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}


.snowFall6{
  position: absolute;
  top: 10px; 
  right: 270px;
  animation-delay: 7s;
  animation-name: loopFall2;
  animation-timing-function: linear;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}
.Recap{
  width: auto;
  height: auto;
  background-color: #263272;
  color: white;
  text-align: center;
}

.glowing-text{
   color: black;
   text-shadow:
   0 0 5px #fff, 
   0 0 10px #0073e6, 
   0 0 20px #0073e6,
   0 0 30px #0073e6,
   0 0 40px #0073e6;
}

.glowing-text-yellow{
   color: black;
   text-shadow:
   0 0 5px #fff, 
   0 0 10px #fee000, 
   0 0 20px #fee000,
   0 0 30px #fee000,
   0 0 40px #fee000;
}

.logo img{
    height: 50px;
    width: auto;
}

.foot{
  background-color: black;
  color: white;
  width:auto;
  height: 350px;
  position: relative;
  text-align: center;
  font-family: "Nunito", "lora";
}

 .signature-img {
    max-width: 500px; 
    height: auto; 
    margin-top: 20px; 
	position:left;
  }
  
.carousel {
  margin: 100px auto;
  width: 100%;
  display: flex;
  overflow-x: auto;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.group{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  animation: carouselScroll 20s linear infinite;
  padding-right: 1em;
}

.card {
  flex: 0 0 auto;
  height: 120px;
  width: auto;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  align-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
}

@keyframes carouselScroll {
  from {transform: translateX(0);}
  to {transform: translateX(-100%);}
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 2s ease-in-out forwards;
}

.credits{
  position: relative;
  top: 130px;
}

.team-member-img {
    width: 5rem;
    height: 5rem;
    transition: border-color 0.2s, transform 0.3s;
    border-radius: 9999px;
    object-fit: cover;
    border-width: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    border-color: #fff !important;
    display: block;
}
.team-member-img:hover {
  border-color: #f4802e !important;
  transform: scale(1.2);
}

.caps {
text-transform: uppercase;
}
