/* ===========================================
   Landing Page Styles
   =========================================== */

/* Header Styles */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  z-index: var(--z-index-fixed);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.landing-header .site-title {
  font-family: 'Creepster', cursive;
  font-size: var(--font-size-xl);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-medium);
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
}

.nav-button {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
}

.nav-button:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
  transform: translateY(-2px);
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xxl) var(--space-md);
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 1200px;
  width: 100%;
}

.hero-logo-container {
  flex: 1;
  text-align: right;
}

.hero-info-container {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo {
  max-width: 100%;
  width: 950px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.4));
  animation: pulse 3s infinite alternate;
}

.hero-description {
  font-size: calc(var(--font-size-lg) * 2);
  line-height: 1.2;
  color: var(--white);
  max-width: 700px;
  margin-bottom: var(--space-xl);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  text-align: center;
  align-self: center;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-self: center;
  width: 100%;
}

.cta-button {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-md);
  font-weight: bold;
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
  text-decoration: none;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.8);
  transform: translateY(-3px);
}

.cta-button.secondary {
  background-color: var(--secondary);
}

.cta-button.secondary:hover {
  background-color: var(--secondary-dark);
  box-shadow: 0 0 15px rgba(139, 0, 255, 0.8);
}

/* Features Section */
.features-section {
  padding: var(--space-xxl) var(--space-md);
  margin-bottom: 6rem;
}

.section-title {
  font-family: 'Creepster', cursive;
  font-size: calc(var(--font-size-xxl) * 2);
  color: var(--primary);
  padding-top: 20px;
  text-align: center;
  margin-bottom: var(--space-xl);
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 102, 0, 0.8);
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.feature-card {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-medium);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: var(--font-size-lg);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--white);
}

/* Demo Section */
.demo-section {
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
}

.demo-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.demo-image {
  max-width: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-medium);
  border: 2px solid var(--primary);
}

.demo-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.4);
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: var(--transition-medium);
  border-radius: var(--border-radius-md);
}

.demo-container:hover .demo-overlay {
  opacity: 1;
}

.demo-cta {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-md);
  font-weight: bold;
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
}

.demo-cta:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* Login Modal Positioning */
.auth-modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: var(--z-index-modal);
  justify-content: center;
  align-items: center;
}

.auth-modal-container.active {
  display: flex;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Landing Page Styles */
:root {
  --max-content-width: 1200px;
}

/* Background styles moved to base.css */

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .hero-logo-container,
  .hero-info-container {
    text-align: center;
    align-items: center;
  }
  
  .hero-logo-container {
    margin-top: 5rem; /* Increased significantly to push below header */
    padding-top: 3rem;
  }
  
  .hero-logo {
    width: 350px;
  }
  
  .hero-description {
    text-align: center;
    font-size: calc(var(--font-size-lg) * 5.8);
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: var(--space-sm) var(--space-md);
    position: absolute; /* Change from fixed to absolute on mobile */
  }
  
  /* Adjust hero section height and padding on mobile */
  .hero-section {
    min-height: 50vh; /* Significantly increased height to push sections down */
    padding-top: 60px;
    padding-bottom: 0;
    margin-bottom: 14rem; /* Push features/demo lower on mobile */
  }
  
  /* Direct fix for logo positioning */
  .hero-content {
    margin-top: 60px;
  }
  
  /* Reduce padding and space between features and demo sections */
  .features-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
  }
  
  .demo-section {
    padding-top: 1rem;
  }
  
  /* Make features & demo text 2x on mobile */
  .features-section .section-title,
  .demo-section .section-title {
    font-size: calc(var(--font-size-xxl) * 1.5); /* 2x the base (which is 2x) */
  }

  .feature-title {
    font-size: calc(var(--font-size-lg) * 2);
  }

  .feature-description {
    font-size: calc(var(--font-size-md) * 2);
  }
  
  .features-grid {
    gap: var(--space-md);
  }
  
  .feature-card {
    padding: var(--space-md);
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    padding: var(--space-md);
    gap: var(--space-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-logo {
    width: 280px;
  }
  
  .hero-description {
    font-size: calc(var(--font-size-lg) * 2.5);
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 220px;
    margin-top: 4rem; /* Significantly increased margin to move logo down */
  }
  
  .hero-description {
    font-size: var(--font-size-lg);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
  }
  
  .cta-button {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-md);
    margin-bottom: 0.5rem;
  }
  
  .cta-buttons {
    margin-bottom: 2rem; /* Positive margin to ensure proper spacing */
  }
}

/* Footer Styles */
.site-footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
  border-top: 1px solid var(--primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: 'Creepster', cursive;
  font-size: var(--font-size-xl);
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-links {
    gap: var(--space-md);
    flex-direction: column;
    align-items: center;
  }
}
