@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: #1e4f70;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9375rem;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #000;
  font-size: 0.875rem;
  display: inline-block;
}

.btn {
  cursor: pointer;
  display: inline;
  border: 2px solid #fff;
  border-radius: 0.625rem;
  outline: none;
  padding: 0.625rem 1.25rem;
  text-align: center;
  color: #fff !important;
  background-color: transparent;
  font-size: 15px;
  font-weight: 700;
  margin: 0.625rem 0;
}

/* .btn.dark {
  background-color: #fff;
  color: #000;
} */

.btn:hover i {
  margin-left: 0.3125rem;
}

.container {
  max-width: 68.75rem;
  width: 80%;
  margin: 0 auto;
}

/* NAVIGATION */
.navigation {
  background-color: #fff;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 25px;
  right: 30px;
  color: #000;
}

.mobile-nav:hover {
  opacity: 0.9;
}

.nav-container {
  width: 90%;
  margin: auto;
  padding: 0.625rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand .logo {
  width: 7.5rem;
}

nav ul {
  display: flex;
  align-items: center;
}

.social-icons ul li {
  padding: 0 0.625rem !important;
}

nav ul li {
  padding: 0 1.25rem;
  transition: transform 0.3s ease;
}

nav ul li a {
  font-weight: 500;
}

nav ul li:hover {
  transform: scale(1.1);
}

.show-arrow {
  display: none !important;
  color: #000;
}

.social-icons ul {
  display: flex;
}

.highlight {
  border: 0.125rem solid #1e4f70;
  border-radius: 0.625rem;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0.3125rem 0.125rem rgba(30, 79, 112, 0.4);
  }

  50% {
    box-shadow: 0 0 0.9375rem 0.3125rem rgba(30, 79, 112, 0.8);
  }

  100% {
    box-shadow: 0 0 0.3125rem 0.125rem rgba(30, 79, 112, 0.4);
  }
}

/* SHOWCASE */
.showcase {
  background: url(./img/carnival1.jpeg) no-repeat center center / cover;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  color: #fff;
  text-align: center;
  position: relative;
}

.showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* adjust darkness with the last value */
  z-index: 1;
}

.showcase .hero {
  position: absolute;
  z-index: 2;
  text-align: center;
  margin: auto;
  margin-top: -40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.showcase .hero h1 {
  font-size: 6rem;
  font-family: "Playfair Display", serif;
}

.showcase .hero p {
  font-size: 15px;
  margin: auto;
  margin-bottom: 40px;
}


/* EXTRA */
.extra {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 25rem;
  width: 100%;
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25rem;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slide.current {
  opacity: 1;
}

.slide:first-child {
  background: url(./img/carnival1.jpeg) no-repeat center center/cover;
}

.slide:nth-child(2) {
  background: url(./img/carnival2.jpeg) no-repeat center center/cover;
}

.slide:nth-child(3) {
  background: url(./img/carnival4.jpeg) no-repeat center center/cover;
}

.countdown-section {
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.countdown-section h3 {
  line-height: 1;
  font-family: "Playfair Display", serif;
}

.countdown-inner {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
}

.countdown {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 2.2rem;
}

.dash {
  width: 4rem;
  height: 0.125rem;
  background-color: #fff;
  outline: none;
  border-radius: 0.625rem;
  margin-right: 1.25rem;
}

.events-beta {
  margin: 6.25rem 0;
}

.events-beta-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-gap: 1.25rem;
  padding: 0 3.75rem;
}

.text-sm {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem !important;
}

.events-beta-inner h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.5625rem;
  margin: 0.625rem 0;
}

.events-beta-inner p {
  font-size: 0.8125rem;
}

.events-beta-flex {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, 40px, 0); /* 3D transform for smoother transition */
  transition: transform 0.8s cubic-bezier(0.42, 0, 0.58, 1),
    opacity 0.8s ease-out;
  will-change: transform, opacity; /* Hint to browser for optimizations */
  animation: floatUpDown 4s ease-in-out infinite; /* Keep floating */
}

.events-beta-flex.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0); /* Smooth translate to original position */
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.read-more {
  text-align: center;
  cursor: pointer;
  margin-top: 1.875rem;
  font-size: 0.8125rem;
  text-decoration: underline;
}

.read-more:hover i {
  margin-left: 5px;
}

/* ABOUT */
.about-showcase {
  width: 70vw;
  background-color: #5e8faa;
  height: 15.625rem;
  padding-left: 3.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-showcase h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  color: #1e4f70;
}

.about-showcase p {
  font-size: 0.9rem;
  margin: 0.625rem 0;
  width: 80%;
}

.about-showcase a {
  color: #1e4f70;
  font-size: 0.75rem;
}

.about-showcase a:hover i {
  margin-left: 0.3125rem;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-container {
  width: 60%;
  max-width: 90% !important;
  margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-top: 6.25rem;
  align-items: center;
  width: 100%;
  height: 18.75rem;
  opacity: 0;
  transform: translateX(100px); /* Default off-screen right */
}

/* Trigger animation for normal layout */
.about-inner.visible {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.about-inner h3 {
  font-size: 1.75rem;
  font-family: "Playfair Display", serif;
  font-weight: bold;
}

.about-inner p {
  margin: 0.625rem 0;
  font-size: 0.8125rem;
  line-height: 1,6;
}

.about-inner img {
  width: 25rem;
  height: 18.75rem;
}

/* When the element is visible, slide the image from right */
.about-inner.visible img {
  transform: translateX(0); /* Final position */
}

.about-inner.reverse {
  transform: translateX(-100px); /* Off-screen left for reverse */
}

/* Trigger animation for reversed layout */
.about-inner.reverse.visible {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.about-inner a {
  color: #fff;
  font-size: 0.8125rem;
  text-decoration: underline;
}

.about-inner a:hover i {
  margin-left: 0.3125rem;
}

/* BANDS */
.bands-showcase {
  width: 70vw;
  background-color: #5e8faa;
  height: 200px;
  padding-right: 3.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  margin-top: 100px;
  margin-left: auto; /* THIS pushes it to the right */
}

.bands-showcase h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  color: #1e4f70;
}

.bands-showcase p {
  font-size: 0.9rem;
  margin: 10px 0;
  padding-left: 90px;
  width: 70%;
}

.bands-showcase a {
  color: #1e4f70;
  font-size: 0.75rem;
}

.bands-showcase a:hover i {
  margin-left: 0.3125rem;
}

.bands-list {
  font-family: "Segoe UI", sans-serif;
  color: white;
  margin-top: 100px;
}

.bands-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  text-align: center;
  margin: auto;
  animation: fadeInUp 1s ease-in-out;
}

.band-card {
  background-color: #102a4d;
  padding: 1.5rem;
  border-radius: 1rem;
  width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  outline: none;
}

.band-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #ffffff22;
  transition: transform 0.3s ease;
}

.band-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.band-card:hover img {
  transform: scale(1.05);
  border-color: #fff;
}

.band-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.view-more {
  width: 100%;
  margin-top: 2rem;
  display: inline-block;
  color: #a5cfff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
}

.view-more:hover {
  color: #fff;
  animation: none; /* Stops the pulse on hover for a cleaner feel */
}

/* Animation */
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* EVENTS & ACTIVITIES */
.events-activities {
  margin-top: 100px;
}

.events-showcase {
  width: 70vw;
  background-color: #5e8faa;
  height: 200px;
  padding-left: 3.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-showcase h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  color: #1e4f70;
}

.events-showcase p {
  font-size: 0.9rem;
  margin: 0.625rem 0;
  width: 80%;
}

.events-showcase a {
  color: #1e4f70;
  font-size: 0.75rem;
}

.events-showcase a:hover i {
  margin-left: 0.3125rem;
}

.events-list {
  width: 50%;
  margin: auto;
  margin-top: 100px;
}

.events-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #fff;
  padding-bottom: 20px;
  padding-left: 20px;
  margin-bottom: 40px;
}

.events-list > div li {
  list-style-type: disc;
  font-size: 16px;
}

.event-group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.event-group.visible {
  opacity: 1;
  transform: translateY(0);
}

.time {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 22px;
}

.view-more-events {
  position: relative;
  width: 100%;
  text-align: center;
  color: #a5cfff;
  font-size: 13px;
  transition: color 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
}

.view-more-events:hover {
  color: #fff;
  animation: none;
}

/* LINKS */
.links {
  background-color: #000;
  color: #fff;
  margin-top: 50px;
}

.links-inner {
  width: 90%;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 40px;
}

.links-inner img {
  width: 7.5rem;
  margin-bottom: 10px;
}

.links-inner a {
  font-size: 12px;
  line-height: 2;
  color: #fff;
}

.links-inner p {
  font-size: 12px;
}

.links-inner h3 {
  border-left: 3px solid #1e4f70;
  padding-left: 10px;
  margin-bottom: 10px;
  font-size: 17px;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
}

.footer {
  background-color: #000;
  border-top: 1px solid #fff;
  padding: 10px 0;
}

.footer-inner {
  width: 70%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.footer-inner p {
  font-size: 12px;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: block;
    cursor: pointer;
  }

  .nav-container {
    width: 100%;
    margin: 0;
    display: block;
  }

  .brand {
    display: flex;
    justify-content: center;
  }

  .brand .logo {
    width: 6rem;
  }

  nav {
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out,
      transform 0.4s ease-in-out, visibility 0s linear 0.4s;
  }

  nav.show-nav {
    visibility: visible;
    opacity: 1;
    max-height: 31.25rem; /* Adjust based on content */
    transform: translateY(0);
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out,
      transform 0.4s ease-in-out, visibility 0s linear;
    margin-bottom: 0.625rem;
  }

  nav ul {
    display: block;
  }
   
  nav ul li {
    padding: 0.4375rem 1.25rem;
    text-align: center;
  }

  .social-icons {
    display: none;
  }

  .show-arrow {
    display: inline !important;
  }

  .showcase {
    margin: 0;
    height: 80vh;
  }

  .showcase .hero {
    position: absolute;
    z-index: 2;
    text-align: center;
    margin: auto;
    margin-top: -2.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .events-beta {
    margin-top: 60px;
  }

  .events-beta-inner {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-gap: 1.25rem;
    padding: 0 3.75rem;
  }

  .events-beta-flex {
    margin-top: 40px;
  }

  .events-beta-flex i {
    display: none;
  }

  .about-container {
    width: 80%;
    max-width: 90% !important;
    margin: 0 auto;
  }

  .events-list {
    width: 80%;
    margin: auto;
    margin-top: 50px;
  }

}

@media (max-width: 767px) {
  .showcase {
    margin: 0;
    height: 100vh;
  }

  .showcase .hero {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    z-index: 2;
    max-width: 80%;
    margin: 60px 0 0 20px;
    text-align: left;
  }
  
  .showcase .hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
  }
  
  .showcase .hero p {
    margin-bottom: 2rem;
  }

  .extra {
    grid-template-columns: 1fr;
    height: 100%;
  }

  .slider {
    height: 300px;
  }

  .slide {
   height: 300px;
  }

  
.countdown-section {
  font-size: 1.5rem;
  margin: none;
  height: 250px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.countdown-section h3 {
  line-height: 1;
}

.countdown-inner {
  margin-top: 2rem;
  display: flex;
  align-items: center;
}

.countdown {
  font-size: 1.5rem;
}

.dash {
  width: 3rem;
  margin-right: 10px;
}

.events-beta {
  margin: 50px 0 0 0;
}

.events-beta-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-gap: 1.25rem;
}

.events-beta-flex {
  margin-bottom: 20px;
  margin-top: 0px;

}

.events-beta-flex:last-child {
  margin-bottom: 0;
}

.about {
  margin-top: 100px;
}

.about-showcase {
  width: 90%;
  background-color: #5e8faa;
  height: 100%;
  padding-left: 0;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-showcase h2 {
  font-size: 1.7rem;
  color: #1e4f70;
}

.about-showcase p {
  font-size: 0.7rem;
  margin: 10px 0;
  width: 90%;
}

.about-showcase a {
  font-size: 0.7rem;
}

.about-showcase a:hover i {
  margin-left: 0.3125rem;
}

.about-container {
  width: 90%;
  margin: 0 auto;
  margin-top: 50px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  margin-top: 0;
  margin-bottom: 50px
}

.about-inner:nth-child(2) {
  display: flex;
  flex-direction: column-reverse;
}

.about-inner h3 {
  font-size: 1.2rem;
  font-family: "Playfair Display", serif;
}

.about-inner p {
  width: 100%;
  margin: 0.625rem 0;
  font-size: 0.7rem;
}

.about-inner img {
  width: 100%;
  height: 100%;
}

.about-inner a {
  font-size: 0.7rem;
}

.about-inner a:hover i {
  margin-left: 0.3125rem;
}

.bands-showcase {
  width: 90%;
  height: 100%;
  background-color: #5e8faa;
  padding-right: 0;
  padding: 20px 30px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  margin-top: 100px;
  margin-left: auto; /* THIS pushes it to the right */
}

.bands-showcase h2 {
  font-size: 1.7rem;
}

.bands-showcase p {
  font-size: 0.7rem;
  margin: 10px 0;
  padding-left: 0;
  width: 90%;
}

.bands-showcase a {
  font-size: 0.7rem;
}

.bands-list {
  margin: 50px 0 0 0;
}

.bands-section {
  flex-direction: column;
}

.band-card {
  position: relative;
  margin: auto;
  text-align: center;
  margin-bottom: 20px;
}

.band-card h3 {
  font-size: 0.9rem;
}

.events-showcase {
  width: 90%;
  height: 100%;
  padding-left: 0;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-showcase h2 {
  font-size: 1.7rem;
  color: #1e4f70;
}

.events-showcase p {
  font-size: 0.7rem;
  margin: 0.625rem 0;
  width: 90%;
}

.events-showcase a {
  font-size: 0.7rem;
}

.events-list {
  width: 90%;
  margin: auto;
  margin-top: 50px;
}

.events-list > div li {
  font-size: 13px;
}

.time {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 18px;
}

.links {
  margin: 100px 0 0 0;
}

.links-inner {
  width: 90%;
  margin: auto;
  padding: 50px 20px;
  grid-template-columns: 1fr;
  grid-gap: 40px;
}

.footer-inner {
  width: 95%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.footer-inner p {
  font-size: 12px;
}
}