/* DeliriousDreams Professional Sticky Nav Layout */

/* 1. BRAND KIT & VARIABLES */
:root {
  --dd-blue: #1E88E5;
  --dd-black: #050a13; /* Your new background color */
  --dd-grey: #F5F5F5;
  --dd-accent: #7E57C2;
  --dd-border-color: rgba(30, 136, 229, 0.2);
}

/* 2. GLOBAL STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dd-grey);
  line-height: 1.7;

  /* --- The Dream-like Background --- */
  background: var(--dd-black); /* Fallback for older browsers */
  background: 
    radial-gradient(at 20% 20%, var(--dd-black) 0px, transparent 50%),
    radial-gradient(at 80% 80%, var(--dd-accent) 0px, transparent 50%),
    radial-gradient(at 50% 100%, var(--dd-blue) 0px, transparent 50%),
    var(--dd-black);
  background-size: 150% 150%;
  background-position: 0% 0%;
  animation: dreamy-background 15s ease-in-out infinite alternate;
}

/* This is the animation that makes the background move */
@keyframes dreamy-background {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}

img {
    border-radius: 12px; /* Rounded corners for images */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

/* 3. STICKY NAVIGATION */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background-color: rgba(5, 10, 19, 0.8); /* Semi-transparent background */
  backdrop-filter: blur(10px); /* The "glass" effect */
  border-bottom: 1px solid var(--dd-border-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { height: 80px; } /* Controls the logo size */
.nav-menu { list-style: none; display: flex; gap: 2rem; }
.nav-menu a {
  color: var(--dd-grey);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-menu a:hover { color: var(--dd-blue); }
.mobile-menu-button { display: none; /* Hidden on desktop */ }

/* 4. MAIN CONTENT & SECTIONS */
p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--dd-grey);
    opacity: 0.9;
}

/* MODERN ANCHOR STYLES */
a, a:active, a:visited {
  color: var(--dd-grey); /* Use your purple accent for links */
  text-decoration: none;
  position: relative; /* This is crucial for the underline effect */
  padding-bottom: 2px; /* Give a little space for the underline */
}

a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--dd-blue), var(--dd-accent)); /* Gradient from blue to purple */
  transform: scaleX(0);
  transform-origin: left; /* Animation starts from the left */
  transition: transform 0.3s ease-out;
}

a:hover::after {
  transform: scaleX(1); /* Animate to full width on hover */
}

.content-section {
  padding: 6rem 1.5rem;
  border-bottom: 1px solid var(--dd-border-color);
}
.section-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.mission-statement { font-family: 'Poppins', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); color: #FFFFFF; }
.subtitle { font-size: 1.25rem; opacity: 0.8; margin-top: 1rem; }
.coming-soon { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--dd-blue); margin-top: 2rem; font-size: 1.1rem; }
h2 { font-family: 'Poppins', sans-serif; font-size: 2.5rem; margin-bottom: 2rem; color: #FFFFFF; }


/* 6. BUTTON & FOOTER */
.btn {
  display: inline-block;
  background-color: var(--dd-blue);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn:hover {
  background-color: #1976D2;
  transform: translateY(-2px); /* Subtle lift effect */
}

footer { text-align: center; padding: 4rem 1.5rem; color: rgba(255, 255, 255, 0.4); }

/* Add to your footer styles */
.footer-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 7. MOBILE NAVIGATION STYLES */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Hide menu by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 19, 0.98); /* Almost opaque background */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 100;
  }
  
  .nav-menu.is-active {
    display: flex; /* Show the menu when active */
  }

.nav-menu a {
  color: var(--dd-grey); /* Keep the default text color */
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

/* The nav menu gets the same hover effect */
.nav-menu a:hover::after {
  transform: scaleX(1);
}

  .mobile-menu-button {
    display: block;
    position: relative;
    z-index: 101;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  /* Styling for the hamburger icon lines */
  .hamburger-box { width: 30px; height: 24px; display: inline-block; position: relative; }
  .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--dd-grey);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.2s ease-in-out;
  }
  .hamburger-inner { top: 50%; transform: translateY(-50%); }
  .hamburger-inner::before, .hamburger-inner::after { content: ''; display: block; }
  .hamburger-inner::before { top: -10px; }
  .hamburger-inner::after { bottom: -10px; }
  
  /* Hamburger to 'X' animation */
  .mobile-menu-button.is-active .hamburger-inner { transform: rotate(45deg); }
  .mobile-menu-button.is-active .hamburger-inner::before { top: 0; transform: rotate(90deg); }
  .mobile-menu-button.is-active .hamburger-inner::after { bottom: 0; opacity: 0; }
}

/* 8. ABOUT SECTION LAYOUT */
.about-layout {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 2rem;
  text-align: left;
  align-items: center;
  margin-top: 3rem;
}

/* On screens wider than 768px, use the two-column layout */
@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 2.5fr; /* Asymmetrical layout */
    gap: 3rem;
  }
}

.about-image img {
  width: 100%;
  max-width: 250px; /* Controls the max size of the photo */
  margin: 0 auto;
  display: block;
}

.about-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dd-blue); /* Use your brand blue for the title */
  margin-bottom: 1rem;
}

/* Accessibility: Respects user preference for no animations */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

/* 9. LEGAL PAGE STYLES */
.legal-page .section-container {
  max-width: 800px;
  text-align: left;
}

.legal-page h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.6;
}

.legal-page h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--dd-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.legal-page ul ul {
  margin-top: 0.5rem;
}

/* 10. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(5, 10, 19, 0.9); /* Semi-transparent background */
  backdrop-filter: blur(10px); /* The "glass" effect */
  border-top: 1px solid var(--dd-border-color);
  padding: 1.5rem;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  text-align: center;
  opacity: 0.9;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--dd-accent);
  color: var(--dd-accent);
}
.btn-secondary:hover {
  background-color: var(--dd-accent);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
  }
}

/* 11. SIGN-UP FORM STYLES */
.signup-form-wrapper { margin-top: 2.5rem; }
#waitlist-form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
#waitlist-form input {
  flex-grow: 1;
  border: 1px solid var(--dd-border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--dd-grey);
  padding: 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
#form-message { margin-top: 1rem; height: 20px; font-weight: 500; }

/* Add to the end of your stylesheet */
#form-message.success {
  color: #4CAF50; /* A clear green for success */
}

#form-message.error {
  color: #F44336; /* A clear red for errors */
}

/* HONEYPOT SPAM PROTECTION */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* 12. FEATURE GRID */
/* 7. FEATURES SECTION */
#features {
  background-color: #0E1523; /* A slightly lighter background to stand out */
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.feature-item {
  background-color: var(--dd-black);
  padding: 2rem;
  border: 1px solid var(--dd-border-color);
  border-radius: 12px;
}

.feature-item h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--dd-blue);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 13. FEATURE ICON STYLES */
.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--dd-blue); /* Use your brand blue for the icon color */
  stroke-width: 1.5; /* A slightly thinner, more elegant line */
}

/* 14. ACCESSIBILITY & FOCUS STATES */
/* Add a custom, on-brand focus ring to buttons and inputs */
.btn:focus-visible,
#waitlist-form input:focus-visible {
  outline: 2px solid var(--dd-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.4);
}