/* =========================================================
   GLOBAL RESET & BASE STYLES
========================================================= */
* {
  transition: all 0.2s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
  background: #f6f8fb;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
}

/* =========================================================
   HERO BANNER
========================================================= */
.hero-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-size: cover;
  background-position: center;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 10;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-in-out;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease both;
}

.hero-logo {
  border-radius: 50%;
  width: 140px;   /* adjust size as needed */
  height: 140px;  /* keep width = height for perfect circle */
  object-fit: cover; /* ensures image fills the circle without distortion */
  box-shadow: 0 3px 6px rgba(0,0,0,0.3); /* optional shadow */
  margin-bottom: 20px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}


.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
}

.hero-year {
  font-size: 1.5rem;
  font-weight: 500;
  color: #38bdf8;
}

.hero-venue {
  font-size: 1rem;
  color: #e5e7eb;
  margin-top: 5px;
}

/* --- Swipe Up Indicator --- */
.swipe-up-indicator {
  position: absolute;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.swipe-up-indicator span {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #f9fafb;
  border-right: 2px solid #f9fafb;
  transform: rotate(45deg);
  margin: 3px;
  animation: swipeUp 1.5s infinite;
}

.swipe-up-indicator span:nth-child(2) { animation-delay: 0.2s; }
.swipe-up-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* =========================================================
   CARDS SECTION (Full screen on show)
========================================================= */
.cards-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 40px 6vw;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.8s ease-in-out;
  overflow-y: auto;
  z-index: 5;
}

/* When scrolled down */
body.scrolled .hero-banner {
  opacity: 0;
  transform: translateY(-20%);
  pointer-events: none;
}

body.scrolled .cards-section {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CARD STYLING
========================================================= */
.card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.25s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.image-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #f1fdf3);
  width: 25%;
  padding: 30px;
  border-right: 1px solid #f0f0f0;
}

.image-holder img {
  width: 80%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.right-side {
  width: 75%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deadline-holder {
  display: flex;
  gap:6px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

.deadline-type {
  color: #dc2626;
  font-weight: 600;
}

.deadline-holder .deadline-type::after {
  content: " :: ";
  color: #1e2b37; /* match text color dynamically */
  opacity: 0.6;        /* slightly lighter for visual balance */
}

.type-name {
  font-weight: 700;
  font-size: 20px;
  color: #111827;
  margin: 10px 0;
}

.user-count {
  font-size: 14px;
  color: #555;
}

.user-count strong {
  color: #16a34a;
}

.footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

/* =========================================================
   RESPONSIVE LAYOUT — 4 CARDS FIT IN 1 SCREEN
========================================================= */
@media (min-width: 1024px) {
  .cards-section {
    padding: 40px 8vw;
  }

  .card-4>*>.card{
    max-height: calc((100vh - 180px) / 4);
  }

  .card-3>*>.card{
    max-height:  calc((100vh - 120px) / 3);
  }

  .cards-section .card {
    flex: 1;
     /* 4 cards evenly fit */
    margin-bottom: 20px;
  }

  .cards-section .card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .cards-section {
    height: auto;
    padding: 40px 20px;
  }

  .card {
    flex-direction: column;
  }

  .image-holder {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .right-side {
    width: 100%;
  }
}

/* =========================================================
   BUTTONS
========================================================= */
.register-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.2);
}

.register-btn:hover {
  background-color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

/* =========================================================
   ICON HOVER EFFECTS
========================================================= */
.extend-icon {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

*:hover .extend-icon {
  opacity: 1;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes swipeUp {
  0% { opacity: 0; transform: rotate(45deg) translate(0, 0); }
  50% { opacity: 1; transform: rotate(45deg) translate(0, -10px); }
  100% { opacity: 0; transform: rotate(45deg) translate(0, -20px); }
}

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

/* =========================================================
   DEADLINE PASSED INDICATOR + CENTERED OPTION MENU
========================================================= */

/* --- Deadline Passed Message --- */
#deadline-passed {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f87171;
  text-align: center;
  display: none; /* default hidden, show with JS when needed */
}

/* --- Centered Option Menu --- */
.option-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 5px;
}

.option-menu .option-item {
  padding: 12px 20px;
  border-right: 1px solid #d1d5db;
  font-weight: 500;
  color: #16a34a;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.option-menu .option-item:first-child {
  border-left: none;
}

.option-menu .option-item:last-child {
  border-right: none;
}

/* Hover Effects — item + neighbors */
.option-menu .option-item:hover {
  background: #16a34a;
  color: #fff;
  border-radius: 6px;
  border-top: 1px solid #d1d5db;
}

.option-menu .option-item:hover + .option-item,
.option-menu .option-item:has(+ .option-item:hover) {
  background: rgba(22, 163, 74, 0.1);
  color: #065f46;
}

.option-menu .option-item:has(+ .option-item:hover) {
  border: none;
}