/* ==========================================================================
   1. Root Variables & Base Styles
   ========================================================================== */
:root {
  --primary-color: #D3FC01;
  --dark-bg: #212021;
  --dark-text: #333;
  --light-text: #646464;
  --white: #fff;
  --black: #000;
  --font-heading: 'ArchivoBlack-2', sans-serif;
  --font-body: 'Arial', sans-serif;
  --radius-pill: 25px;
  --radius-box: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'ArchivoBlack-2';
  src: url('../fonts/ArchivoBlack-2.otf') format('opentype');
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--white);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

p {
  margin-bottom: 20px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.primary-button,
.action-button,
.secondary-button,
.black-action {
  display: inline-block;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: none;
}
.primary-button:hover,
.action-button:hover,
.black-action:hover {
  transform: translateY(-2px);
}

.primary-button,
.action-button {
  background-color: var(--primary-color);
  color: var(--black);
}
.primary-button:hover,
.action-button:hover {
  background-color: #b8e600;
}

.secondary-button {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px; /* Adjust for border */
}
.secondary-button:hover {
  background-color: rgba(211, 252, 1, 0.1);
  transform: none;
}

.black-action {
  background-color: var(--dark-text);
  color: var(--white);
}
.black-action:hover {
  background-color: #555;
}

/* ==========================================================================
   4. Component: Hero & Navbar
   ========================================================================== */
.hero {
  background: rgba(0, 0, 0, 0.5) url('../images/hero-bg.jpg') center/cover no-repeat;
  background-blend-mode: darken;
  height: 60vh;
  min-height: 450px;
  position: relative;
  color: var(--white);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero > .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 80px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  position: relative;
  z-index: 2;
}
.logo {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Arial Black', var(--font-heading);
}

.nav-menu {
  display: flex;
  gap: 20px;
}
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 5px 10px;
}
.nav-menu a:hover {
  color: var(--primary-color);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: auto 0;
  padding: clamp(20px, 5vh, 50px) 0;
}
.hero-content h1 {
  font-size: 52px;
  color: var(--white);
  margin-bottom: 0;
}
.hero-content h3 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 0;
}
.hero-content .primary-button {
  margin-left: 15px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 50;
  padding: 80px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu-overlay.active {
  display: flex;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}
.mobile-menu-overlay a {
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  margin: 15px 0;
  transition: color 0.3s ease;
}
.mobile-menu-overlay a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   5. General Sections & Layout
   ========================================================================== */
.gradient-background {
  background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 100%);
}

.dark-section {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.dark-section h2, .dark-section h3 {
  color: var(--white);
  text-align: center;
}
.dark-section h3 {
  color: var(--primary-color);
}

.host-section {
  padding: 60px 0;
}
.host-section .container {
  max-width: 900px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.host-profile {
  flex: 0 0 35%;
}
.profile-image {
  width: 100%;
  border-radius: 50%;
}
.host-info {
  text-align: left;
  line-height: 1.8;
}
.host-info h2 {
  font-size: 38px;
  margin-bottom: 25px;
  display: inline-block;
}

.how-it-works {
  padding: 30px 0;
  text-align: center;
}
.how-it-works .container {
  max-width: 900px;
}
.how-it-works-box {
  background-color: #f9f9f1;
  border-radius: 40px;
  padding: 40px;
}
.how-it-works h2 {
  font-size: 44px;
  margin-bottom: 30px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 30px;
  margin-top: 30px;
}
.feature {
  padding: 10px 40px;
  transition: transform 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
}
.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
}
.feature-icon i {
  font-size: 36px;
  color: var(--black);
}
.step-label {
  font-family: 'Arial Black', sans-serif;
  font-size: 12px;
  margin: 10px 0 5px;
  color: #555;
  letter-spacing: 1px;
}

.ebooks-section {
  padding: 40px 0 80px;
  text-align: center;
}
.ebooks-section .container {
  max-width: 760px;
}
.ebooks-section h2 {
  font-size: 44px;
  margin-bottom: 30px;
}
.ebooks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 0;
  justify-items: center;
}
.ebook-card {
  background-color: #f9f9f9;
  border-radius: var(--radius-box);
  width: 320px;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ebook-card:hover {
  transform: translateY(-5px);
}
.ebook-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
}
.ebook-card h3 {
  font-size: 24px; /* Smaller than global H3 */
  margin-bottom: 8px;
}
.ebook-subtitle {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 10px;
}
.ebook-description {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--light-text);
  flex-grow: 1;
}
.ebook-price-row {
  margin-bottom: 10px;
}
.ebook-price-row .price {
  font-size: 20px;
  color: var(--black);
  font-weight: bold;
}
.ebook-card .primary-button {
  margin-top: auto;
}

/* Shared styles for Property & Rewards Sections */
.property-info .container,
.rewards-section .container {
  max-width: 800px;
}
.property-item {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  padding: 0 20px;
  align-items: center;
}
.property-item.reverse {
  flex-direction: row-reverse;
}
.property-image {
  flex: 1;
  max-width: 50%;
}
.property-details {
  flex: 1;
  text-align: left;
  line-height: 1.6;
}
.property-details p {
  font-size: 16px;
  line-height: 1.6;
}

.rewards-section {
  padding-top: 60px;
}
.rewards-section h2, .rewards-section h3 {
  text-align: left;
}
.rewards-section h3 {
  color: var(--primary-color);
}
.rewards-section .property-details p {
  color: var(--dark-text);
}
.date-bottom-btn {
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

/* ==========================================================================
   6. Component: Carousel
   ========================================================================== */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-box);
  height: 300px;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-box);
}
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 15px;
  width: 100%;
  z-index: 2;
}
.carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  background-color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}
.carousel-indicators .indicator.active {
  opacity: 1;
  background-color: var(--primary-color);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
  font-size: 14px;
}
.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* ==========================================================================
   7. Component: Event Date & Footer
   ========================================================================== */
.event-date .container {
  text-align: center;
  padding: 60px 0 80px;
}
.date-box-wrapper {
  position: relative;
  display: inline-block;
  width: 600px;
  max-width: 100%;
  border-radius: 20px;
}
.date-box-behind {
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  border-radius: 20px;
  transform: translate(0, 20px) rotate(-2deg);
  z-index: 0;
}
.date-box-content {
  position: relative;
  background-color: var(--dark-bg);
  color: var(--white);
  border-radius: 20px;
  z-index: 1;
  padding: 40px 30px;
}
.date-label {
  font-size: 18px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.date-box-content h1 {
  font-size: 72px;
  margin-bottom: 20px;
  color: var(--white);
  text-align: center;
}
.date-box-content p {
  font-size: 16px;
}

footer {
  position: relative;
  padding-top: 130px; /* Space for the curve */
  padding-bottom: 30px;
  text-align: center;
  overflow: hidden;
  color: var(--dark-text);
}
footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 1400px;
  background-color: var(--primary-color);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}
footer .container {
  max-width: 800px;
}
footer h2 {
  text-align: center;
}
footer .para {
  margin: 20px 0 30px;
}

.legal-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  opacity: 0.7;
}

.legal-links a {
  color: var(--dark-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-links .separator {
  margin: 0 15px;
  color: var(--dark-text);
}

/* ==========================================================================
   8. Animations & Media Queries
   ========================================================================== */
.fade-in-section, .fade-in-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .hero > .container { padding: 0 40px; }
  .ebooks-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ebook-card { width: 100%; }
}

@media (max-width: 768px) {
  h1, .hero-content h1, .date-box-content h1 { font-size: 40px; }
  h2, .host-info h2, .how-it-works h2, .ebooks-section h2 { font-size: 36px; }
  h3, .hero-content h3 { font-size: 28px; }

  .hero > .container { padding: 0 20px; }
  
  .host-section .container { flex-direction: column; text-align: center; }
  .host-info { text-align: center; }
  .host-info h2 { text-align: center; }
  
  .property-item, .property-item.reverse { flex-direction: column; gap: 30px; }
  .property-image { max-width: 100%; }
  .property-details { text-align: center; }
  .property-details h2, .property-details h3 { text-align: center; width: 100%; }
  
  .carousel-container { height: 250px; }
  
  .features-grid { grid-template-columns: 1fr; }
  .ebooks-grid { grid-template-columns: 1fr; justify-items: center; max-width: 400px; margin: 0 auto; }
  
  .date-box-wrapper { width: 95%; }
}

@media (max-width: 576px) {
  .carousel-container { height: 200px; }
  .date-box-wrapper { padding: 0 10px; }
  .date-box-content { padding: 30px 20px; }
  .date-box-content h1 { font-size: 36px; }
}

/* ==========================================================================
   9. Notification Popup
   ========================================================================== */
#notification-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #212021;
  color: #fff;
  padding: 20px 40px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  visibility: hidden;
  max-width: 400px;
  line-height: 1.4;
}
#notification-popup.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
#notification-popup p {
  margin: 0;
  font-size: 1rem;
}
#notification-popup code {
  background-color: #444;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #D3FC01;
  word-break: break-all;
  display: block;
  margin-top: 8px;
}
.notification-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}
.notification-close:hover {
  color: #fff;
}