@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif !important;
}

body {
    background-color: #fff;
    overflow-x: hidden;
}

header {
    background-color: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

header:hover {
    background-color: rgba(130, 130, 130, 0.6);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 80px;
    width: 200px;
}

.nav-center {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    padding: 0;
    margin-right: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem; 
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #358856;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
    border-radius: 5px;
}

.status-msg {
    padding: 12px;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.status-msg.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.status-msg.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #4ade80;
}

.event-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.event-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/herobg.png');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: 1;
}

.event-hero > * {
  position: relative;
  z-index: 2;
}

.event-hero-content {
  text-align: center;
  padding: 0 20px;
}

.event-hero h1 {
  font-size: 4rem;
  margin-top: 100px;
  font-weight: 700;
}

.event-hero h2 {
  font-size: 3rem;
  font-weight: 300;
}

:root {
  --primary-color: #25523B;
  --secondary-color: #358856;
  --accent-color: #f0f4f8;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --danger: #ef4444;
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --radius: 16px;
}

.event-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  min-height: 100vh;
  width: 100%;
}

.event-container {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1200px;
  width: 100%;
  position: relative;
}

.left-section {
  flex: 1;
  background: var(--accent-color);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 350px;
  position: relative;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.sticky-wrapper {
  position: sticky;
  top: 120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swiper-container {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-poster {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.event-poster:hover {
  transform: scale(1.02);
}

.swiper-pagination {
  position: relative;
  margin-top: 20px;
  width: auto; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
}

.swiper-pagination-bullet {
  background: var(--text-dark);
  opacity: 0.3;
  width: 10px;
  height: 10px;
  margin: 0 6px; 
  transition: all 0.3s ease;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  background: #358856;
  opacity: 1;
  width: 25px;
  border-radius: 5px;
}

.right-section {
  flex: 1.5;
  padding: 50px;
  display: flex;
  flex-direction: column;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.return-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.return-link:hover {
  color: var(--primary-color);
}

.share-container {
    position: relative;
    display: inline-block;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.share-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%; 
    background-color: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    z-index: 100;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.share-dropdown.show {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box; 
}

.share-option:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.share-option img, 
.share-option svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.section-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border-left: 4px solid var(--secondary-color);
  padding-left: 10px;
}

.info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

.description-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 30px;
}

.location-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.registration-area {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 30px;
  border-radius: 16px;
  color: var(--white);
  margin-bottom: 40px;
  box-shadow: 0 10px 20px rgba(37, 82, 59, 0.2);
}

.registration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  width: 100%;
}

.fee-display {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.event-popularity {
  text-align: right;
}

.popularity-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popularity-badge:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.register-btn {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 20px 40px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.link-container {
  text-align: center;
  width: 100%;
}

.token-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  display: inline-block;
  text-decoration: underline;
  transition: color 0.2s;
}

.token-link:hover {
  color: var(--white);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 25px;
  align-items: center;
}

.sponsor-logo-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-logo-container:hover {
  transform: translateY(-3px);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.image-modal .modal-content {
  position: relative;
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 60%;
  max-width: 800px;
  border-radius: 8px;
  text-align: center;
}

.image-modal .modal-content-img {
  width: 100%;
  height: auto;
}

.image-modal .prev,
.image-modal .next {
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.image-modal .prev {
  left: 10px;
}

.image-modal .next {
  right: 10px;
}

.image-modal .prev:hover,
.image-modal .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.registration-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.registration-modal .modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-size: 1.1rem;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  border-color: #358856;
  outline: none;
  box-shadow: 0 0 5px rgba(53, 136, 86, 0.3);
}

button[type="submit"], .next-btn {
  background: linear-gradient(90deg, #25523B, #358856);
  color: white;
  padding: 12px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover, .next-btn:hover:not(:disabled) {
  background-color: #25523B;
  transform: translateY(-2px);
}

.next-btn:disabled {
  background-color: #ccc;
  background: none;
  cursor: not-allowed;
}

.waiver-box {
    max-height: 200px;
    overflow-y: auto;
    background: #f4f4f4;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #333;
    text-align: left;
}

.waiver-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.waiver-checkbox-container input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
}

.fee-display {
    background: #e8f6f3;
    color: #0e6655;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px 20px;
  background-color: #333;
  color: #fff;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-section {
  flex: 1;
  margin: 10px;
  text-align: center;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #f2f2f2;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin: 5px 0;
}

.footer-section a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
}

.footer-logo {
  width: 200px;
  margin-top: 40px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  margin: 0 5px;
}

.sponsor-logo {
  width: 100px;
  margin-top: 10px;
}

.footer-ramp-icons {
  position: relative;
  height: 60px;
  width: 100%;
  background: transparent;
  z-index: 2;
}

.ramp-icon {
  position: absolute;
  bottom: 0;
  width: auto;
  height: 200px;
  z-index: 3;
}

.ramp-icon.left {
  left: 0;
}

.ramp-icon.right {
  right: 0;
}

.ramp-icon.center {
  left: 50%;
  transform: translateX(-50%);
  height: 50px;
  width: 200px;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}


@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
        margin-right: 20px;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

@media (max-width: 850px) {
    .hamburger {
        display: flex;
    }

    .nav-center {
        position: static;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 30px 0;
        gap: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 999;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
  .event-hero h1 {
      font-size: 2.5rem;
      margin-top: 60px;
  }

  .event-container {
    flex-direction: column;
  }
  
  .left-section, .right-section {
    width: 100%;
    padding: 30px 20px;
    border-radius: 0;
    min-width: unset;
  }

  .event-container {
      overflow: hidden; 
      border-radius: var(--radius);
  }

  .sticky-wrapper {
      position: static; 
  }
  
  .registration-header {
      flex-direction: column;
      gap: 15px;
      align-items: flex-start;
  }
  
  .event-popularity {
      text-align: left;
  }

  .footer {
      flex-direction: column;
      text-align: center;
  }

  .ramp-icon {
      width: 60px;
  }

  .ramp-icon.center {
      width: 70px; 
  }
  
  .image-modal .modal-content {
      width: 90%;
      margin: 20% auto;
  }
  
  .header-actions {
      flex-direction: row; 
      gap: 10px;
  }
  
  .share-btn span {
      display: none; 
  }
}