@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --master-grad: linear-gradient(
    270deg,
    #ffffff,
    #00c6ff,
    #0072ff,
    #00e5ff,
    #ffffff,
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    white
  );
  --blue-grad: linear-gradient(
    90deg,
    #ffffff,
    #00c6ff,
    #0072ff,
    #00e5ff,
    #ffffff
  );
  --orange-grad: linear-gradient(
    90deg,
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    white
  );
  --master-pulse-nav: linear-gradient(
    90deg,
    white,
    #00c6ff,
    #0072ff,
    #00e5ff,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    white,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    white,
    #00c6ff,
    #0072ff,
    #00e5ff
  );
  --white-pulse-nav: linear-gradient(
    90deg,
    white,
    white,
    white,
    white,
    white,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    white,
    white,
    white,
    white,
    white
  );
  --blue-pulse-nav: linear-gradient(
    90deg,
    #ffffff,
    #00c6ff,
    #0072ff,
    #ffffff,
    #00c6ff,
    #0072ff,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    #00e5ff,
    #00c6ff,
    #ffffff,
    #00e5ff,
    #00c6ff,
    #ffffff
  );
  --orange-pulse-nav: linear-gradient(
    90deg,
    white,
    rgb(245, 245, 110),
    orange,
    rgb(245, 245, 110),
    black,
    black,
    black,
    white,
    rgb(245, 245, 110),
    orange
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 1px;
}
::-webkit-scrollbar :horizontal {
  height: 1px;
  width: 1px;
}
::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 1px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

#vanta-bg {
  width: 100%;
  min-height: 100vh;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  background-color: black;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.nav-container {
  width: 100%;
  height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  margin-top: 10px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  width: 95%;
  height: 64px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  transition: box-shadow 0.3s ease-in-out;
  z-index: 9999;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--master-pulse-nav);
  background-size: 600% 600%;
  animation: nav-flow 15s linear infinite;
  border-radius: inherit;
  z-index: 10;
}

nav::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: black;
  border-radius: calc(50px - 3px);
  z-index: 11;
}

nav:hover {
  box-shadow: 0 0 20px 5px rgba(100, 101, 101, 0.7),
    0 0 30px 10px rgba(255, 255, 255, 0.5);
}

.logo {
  height: 40px;
  z-index: 12;
}

.nav-left a {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
}

.nav-right a {
  position: relative;
  z-index: 12;
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0 25px 0 20px;
}

.nav-right a:hover {
  background: var(--master-grad);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 8s linear infinite;
}

.landing {
  width: 100%;
  padding: 20px;

  color: white;
  display: flex;
  flex-direction: column;
  font-size: 2rem;
}

.content {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.branding {
  width: 100%;
  margin: 20vh 0 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.branding img {
  width: 150px;
  height: 150px;
}

.branding h1 {
  font-size: 100px;
  font-weight: 600;
  background: var(--master-grad);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 13s linear infinite;
  text-decoration: none;
}

.lower-main {
  text-align: center;
  padding: 20px;
}

.lower-main h3 {
  font-weight: 600;
  font-size: 40px;
  color: rgb(61, 61, 61);
}

.student-button,
.club-button {
  width: 200px;
  height: 75px;
  background-color: white;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s, background-color 0.5s, transform 0.4s;
}

.events-section {
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-section h2 {
  font-weight: 400;
  font-size: 2rem;

  margin-top: 3rem;
  margin-bottom: 3rem;
  color: rgb(245, 218, 110);
}

.events-scroll {
  padding: 10px 170px 60px 170px;

  max-width: 1500px;
  max-height: 70vh;

  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  row-gap: 2rem;
  column-gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  scrollbar-width: none;
}

.events-scroll::-webkit-scrollbar {
  display: none;
}

.event-card {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 15px;
  padding: 1.2rem;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.25s;
  cursor: pointer;

  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );

  transform: skewX(-25deg);

  transition: 0.75s;
  z-index: 1;
  pointer-events: none;
}

.event-card:hover::before {
  left: 125%;
}

.event-card:hover {
  transform: translateY(-6px);
  background: black;
  box-shadow: 12px 12px 22px rgba(0, 114, 255, 0.35),
    0 10px 18px rgba(0, 198, 255, 0.3);
}

.event-card h3 {
  background: var(--blue-grad);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 8s linear infinite;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.club-name {
  font-size: 1rem;
  font-style: italic;
  color: #f2f0ef;
}

.event-info {
  font-size: 0.95rem;
  color: #8e8a8a;
}
.event-info p {
  text-overflow: ellipsis;
}
.event-info {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.last-date {
  font-size: 0.9rem;
  color: rgb(12, 122, 153);
  font-weight: 600;
}

.club-scrolls {
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding-bottom: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.club-scrolls h3 {
  padding: 20px;
  font-weight: 400;
  font-size: 2rem;
  color: rgb(245, 218, 110);
}

.club-marquee {
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.club-track {
  display: inline-flex;
  animation: scroll 30s linear infinite;
}

.club-track.reverse {
  animation-direction: reverse;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.club-card {
  min-width: 200px;
  padding: 18px 20px;
  margin: 10px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  color: #00bfff;
  border: 1px solid transparent;
}

.footer {
  width: 100%;
  padding: 10px 0;
  font-size: 10px;
  font-weight: 600;
  color: rgba(128, 128, 128, 0.7);
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-bottom: 5px;
}

.footer img {
  width: 15px;
  height: 15px;
}

@keyframes flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes nav-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.event-card {
  position: relative;
}

.event-card-wrapper {
  position: relative;
  display: inline-block;
}

.poster-float {
  position: absolute;
  top: 50%;

  left: -50px;
  width: 150px;

  height: 212px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 8px;

  overflow: hidden;
  background: #1a1a1a;
  z-index: 10;
  pointer-events: none;
  opacity: 0;

  border: 2px solid rgba(0, 0, 0, 0.1);

  transform-origin: center right;
  transform: translateY(-50%) perspective(1000px) rotateY(-35deg) scale(0.8);

  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poster-float::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--poster-bg);
  background-size: cover;
  background-position: center;

  filter: blur(20px) brightness(0.6);

  transform: scale(1.2);
  z-index: 1;
}

.poster-float img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 4px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.event-card-wrapper:hover .poster-float {
  opacity: 1;

  left: -170px;

  transform: translateY(-50%) perspective(1000px) rotateY(0deg) scale(1);
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1200px) {
  .events-scroll {
    padding: 10px 20px 40px 20px;
  }
}

@media (max-width: 768px) {
  nav {
    width: 94%;
    height: 56px;
    padding: 0 14px;
  }

  .nav-right a {
    font-size: 14px;
    margin: 0 8px;
  }

  .branding {
    flex-direction: column;
    margin-top: 16vh;
    text-align: center;
    gap: 1rem;
  }

  .branding img {
    width: 130px;
    height: 130px;
  }

  .branding h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .events-section {
    width: 95%;
    border-radius: 10px;
    padding-bottom: 1rem;
  }

  .events-section h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .events-scroll {
    padding: 10px 20px 30px 20px;
    max-height: 65vh;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    row-gap: 1.2rem;
    column-gap: 1rem;
  }

  .event-card {
    padding: 1rem;
    min-height: 150px;
  }

  .event-title {
    font-size: 1rem;
  }
  .club-name {
    font-size: 0.85rem;
  }
  .event-info {
    font-size: 0.8rem;
  }
  .last-date {
    font-size: 0.75rem;
  }

  .poster-float {
    left: -120px;
  }

  .poster-float img {
    width: 110px;
  }

  .club-card {
    min-width: 120px;
    padding: 12px 10px;
    font-size: 12px;
  }

  .club-marquee {
    padding: 10px 0;
  }

  .footer {
    padding: 15px 10px;
    font-size: 9px;
  }

  .event-card:hover,
  .event-card:active,
  .event-card:focus {
    transform: none !important;
    box-shadow: 5px 7px 10px rgba(105, 223, 253, 0.1) !important;
  }

  .event-card-wrapper:hover .poster-float {
    opacity: 0 !important;
    display: none !important;
  }
}

@media (max-width: 480px) {
  nav {
    width: 95%;
    height: 52px;
  }

  .branding img {
    width: 110px;
    height: 110px;
  }

  .branding h1 {
    font-size: 36px;
  }

  .events-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
  }

  .events-scroll {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 10px 20px 10px;

    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));

    row-gap: 1rem;
    column-gap: 0.5rem;
  }

  .event-card-wrapper {
    width: 100%;
  }

  .event-card {
    padding: 0.8rem;
    width: 100%;
  }

  .poster-float {
    display: none !important;
  }

  .event-card:hover,
  .event-card:active {
    transform: none !important;
    box-shadow: 5px 7px 10px rgba(105, 223, 253, 0.1) !important;
  }
}

@media (max-width: 1200px) {
  .events-scroll {
    padding: 20px 40px 60px 40px;
    width: 100%;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .poster-float {
    display: none !important;
  }

  .event-card-wrapper:hover .poster-float {
    display: none !important;
  }
}

@media (max-width: 768px) {
  nav {
    width: 94%;
    height: 56px;
    padding: 0 14px;
  }

  .branding {
    flex-direction: column;
    margin-top: 16vh;
    gap: 1rem;
  }

  .branding h1 {
    font-size: 42px;
  }

  .events-section {
    width: 95%;
  }

  .events-scroll {
    padding: 10px 20px 40px 20px;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .event-card {
    min-height: 160px;
  }

  .event-info {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 480px) {
  .events-scroll {
    padding: 10px 15px 60px 15px;

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }

  .event-card {
    padding: 1rem;
  }

  .branding img {
    width: 100px;
    height: 100px;
  }
}
