/* ==================== GLOBAL STYLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap');

body, html {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; 
}

.main-wrapper {
  width: 100% !important;
}

/* ==================== HEADER STYLES ==================== */
#top-menu-bar, body.night-mode #top-menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

#top-menu-bar.scrolled-background, body.night-mode #top-menu-bar.scrolled-background {
  background-color: rgba(0, 0, 0, 0.6); 
  transition: background-color 0.3s ease;
}

/* App Store Buttons - Top Left */
.app-store-buttons-top, body.night-mode .app-store-buttons-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.app-store-buttons-top a, body.night-mode .app-store-buttons-top a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.app-store-buttons-top a:hover, body.night-mode .app-store-buttons-top a:hover {
  transform: scale(1.05);
}

.app-store-buttons-top img, body.night-mode .app-store-buttons-top img {
  height: 30px;
  width: auto;
}

/* Social Icons - Top Right */
.social-icons-top, body.night-mode .social-icons-top {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons-top a, body.night-mode .social-icons-top a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  color: white;
}

.social-icons-top a i, body.night-mode .social-icons-top a i {
  color: white;
  font-size: 20px;
}

.social-icons-top a:hover, body.night-mode .social-icons-top a:hover {
  transform: scale(1.1);
}

.social-icons-top img, body.night-mode .social-icons-top img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1); /* Make icons white */
}

.logo-container, body.night-mode .logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-container a, body.night-mode .logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none; 
}

.betadiv, body.night-mode .betadiv {
  display: inline-block;
}

.logo-container img, body.night-mode .logo-container img  {
  height: 25px;
}

.nav-links-left, body.night-mode .nav-links-left {
  display: flex;
  gap: 20px;
}

.nav-links-left a, 
body.night-mode .nav-links-left a {
  color: #FFF;
  text-decoration: none;
  font-size: 18px;
}

.centered-logo, body.night-mode .centered-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-links, body.night-mode .menu-links {
  display: flex;
  gap: 20px;
  padding-right: 10px;
}

.menu-links a,
body.night-mode .menu-links a {
  color: #FFF;
  text-decoration: none;
  font-size: 18px;
}

.betatext, body.night-mode .betatext {
  color: #FFF !important;
}

.burger-icon, body.night-mode .burger-icon {
  display: none;
  font-size: 24px;
  color: #FFF;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu, body.night-mode .mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: #333;
  padding: 20px;
  text-align: center;
  z-index: 999;
}

.mobile-menu a, body.night-mode .mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #FFF;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:last-child, body.night-mode .mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover, body.night-mode .mobile-menu a:hover {
  background-color: #444;
}

.mobile-menu a i, body.night-mode .mobile-menu a i {
  color: white;
  margin-right: 8px;
}




.hidden, body.night-mode .hidden {
  display: none !important;
}


/* ==================== END HEADER STYLES ==================== */



/* ==================== HERO SECTION STYLES ==================== */
.hero-section, body.night-mode .hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/landing/posters.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Desktop and Mobile Hero Visibility */
.desktop-hero {
  display: flex;
}

.mobile-hero {
  display: none;
}

/* Hide mobile-specific elements on desktop only */
@media (min-width: 769px) {
  .hero-buttons-mobile,
  .login-text-mobile,
  .connect-create-collaborate-mobile,
  .button-row-mobile {
    display: none;
  }
}


.hero-video, body.night-mode .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; 
  opacity: 0.6;
  transition: opacity 0.5s ease-in-out;
}

#hero-section::before, body.night-mode #hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1; 
}

.hero-content, body.night-mode .hero-content {
  position: relative;
  z-index: 2; 
  color: #ffffff;
  text-align: left;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  box-sizing: border-box;
}

.hero-content .hero-text h1, body.night-mode .hero-content .hero-text h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 70px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.7),  
    -2px -2px 4px rgba(0, 0, 0, 0.7),  
    2px -2px 4px rgba(0, 0, 0, 0.7),   
    -2px 2px 4px rgba(0, 0, 0, 0.7);  
    text-align: center;
    text-transform: uppercase;
}

.hero-content .hero-buttons, body.night-mode .hero-content .hero-buttons {
  display: flex;
  flex-direction: column; 
  align-items: center;  
  justify-content: flex-start;
  margin-left: 0;
  gap: 10px;
  margin-top: 60px;
  opacity: 0; /* Hide initially until JS positions it */
}

.button-row, body.night-mode .button-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.login-text, body.night-mode .login-text {
  text-align: center;
  width: 100%;
  margin-top: 0px;
  opacity: 0; /* Hide initially until JS positions it */
}

/* Scribble Button Styles */
.scribble-button, body.night-mode .scribble-button {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  margin: 10px 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.scribble-button:hover, body.night-mode .scribble-button:hover {
  transform: scale(1.05);
}

.scribble-bg, body.night-mode .scribble-bg {
  width: 200px;
  height: auto;
  display: block;
}

.button-text, body.night-mode .button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000000;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

.hero-content .hero-buttons div, body.night-mode .hero-content .hero-buttons div {
  text-align: center;
  width: 100%;
}

/* Connect X Create X Collaborate Section */
.connect-create-collaborate, body.night-mode .connect-create-collaborate {
  margin-top: auto;
  text-align: center;
  margin-bottom: 20px;
}

.tagline-container, body.night-mode .tagline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tagline-text, body.night-mode .tagline-text {
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  opacity: 0; /* Hide initially for staggered animation */
}

.scribble-x, body.night-mode .scribble-x {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1); /* Make X icons white */
  opacity: 0; /* Hide initially for staggered animation */
}

.hero-content .hero-buttons a, body.night-mode .hero-content .hero-buttons a, body.night-mode .hero-content .hero-buttons a, body.night-mode .hero-content .hero-buttons a {
  color: #ffffff;
  text-decoration: none;
}

.hero-content .hero-buttons a:hover, body.night-mode .hero-content .hero-buttons a:hover {
  text-decoration: underline;
}


.app-store-buttons, body.night-mode .app-store-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

.app-store-buttons a, body.night-mode .app-store-buttons a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.app-store-buttons a:hover, body.night-mode .app-store-buttons a:hover {
  transform: scale(1.05);
}

.app-store-buttons img, body.night-mode .app-store-buttons img {
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .app-store-buttons, body.night-mode .app-store-buttons {
    flex-direction: row;
    gap: 10px;
  }
  
  .app-store-buttons img, body.night-mode .app-store-buttons img {
    height: 35px;
  }
}

/* ==================== END HERO SECTION STYLES ==================== */





/* ==================== SHARE SECTION STYLES ==================== */
.share-section, body.night-mode .share-section {
  background-color: #f2f2f2;
  padding: 0px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-container, body.night-mode .share-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  width: 100%;
}

.share-content, body.night-mode .share-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px;
  color: #333;
  font-family: 'Roboto', sans-serif;
}

.share-text, body.night-mode .share-text {
  text-align: left;
}

.share-content h2, body.night-mode .share-content h2 {
  font-size: 48px;
  margin-bottom: 5px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.1;
}

.share-icon, body.night-mode .share-icon {
  height: 366px;
  width: auto;
  flex-shrink: 0;
}
/* ==================== END SHARE SECTION STYLES ==================== */


/* ==================== FEATURES SECTION STYLES ==================== */
.features-section, body.night-mode .features-section {
  background-color: #f2f2f2;
  padding: 20px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-container, body.night-mode .features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px 10px;
  row-gap: 40px;
  max-width: 1400px;
  width: 100%;
  align-items: start;
  justify-items: center;
}

.feature-item, body.night-mode .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0px;
}

.feature-title, body.night-mode .feature-title {
  position: relative;
  margin-bottom: -20px !important;
  z-index: 3;
  height: 80px;
  display: flex;
  align-items: center;
}

.feature-title .scribble-bg, body.night-mode .feature-title .scribble-bg {
  width: 350px;
  height: auto;
  display: block;
}

.feature-title .title-text, body.night-mode .feature-title .title-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 28px;
  text-transform: uppercase;
  z-index: 2;
  white-space: normal;
  text-align: center;
  line-height: 1.1;
}

.feature-image, body.night-mode .feature-image {
  width: 95%;
  max-width: none;
  align-self: center;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.feature-image img, body.night-mode .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0px;
}
/* ==================== END FEATURES SECTION STYLES ==================== */


/* ==================== DISCOVER SECTION STYLES ==================== */
.discover-section, body.night-mode .discover-section {
  background-color: #f2f2f2; 
  padding: 80px 50px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.discover-title, body.night-mode .discover-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #000000;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  line-height: 1.1;
}

/* Discover Cards Container */
.discover-cards-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  min-height: 600px;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  position: relative;
  transition: scroll-left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discover-cards-container::-webkit-scrollbar {
  display: none;
}

.discover-card-wrapper {
  flex: 0 0 400px;
  scroll-snap-align: start;
  min-width: 400px;
  width: 400px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Personal Card Styles for Discover Section - Matching Flip Card Front Design */
.discover-section .personal-card {
  width: 400px;
  max-width: 400px;
  height: 520px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  background: transparent;
  font-family: 'Roboto', Helvetica, sans-serif;
  margin: 0 auto;
  display: block;
  min-height: 400px;
  border: none;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.discover-section .personal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

/* Full-height image container */
.discover-section .personal-card .user-image-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border-radius: 0;
  z-index: 1;
  overflow: hidden;
}

.discover-section .personal-card .user-image-full img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 12px;
}

.discover-section .personal-card .online-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: auto;
  width: 16px;
  height: 16px;
  background-color: #28a745;
  border: 2px solid #fff;
  border-radius: 50%;
  z-index: 3;
}

/* Overlay container */
.discover-section .personal-card .user-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 15px;
  z-index: 2;
  display: block;
  min-height: 120px;
  height: auto;
  max-height: 50%;
}

/* Glass pills styling */
.discover-section .personal-card .user-info-overlay .user-info-glass-pill,
.discover-section .personal-card .user-info-overlay .scenes-glass-pill {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
}

body.night-mode .discover-section .personal-card .user-info-overlay .user-info-glass-pill,
body.night-mode .discover-section .personal-card .user-info-overlay .scenes-glass-pill {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Day mode: black text in pills */
.discover-section .personal-card .user-info-overlay .user-info-glass-pill,
.discover-section .personal-card .user-info-overlay .user-info-glass-pill *,
.discover-section .personal-card .user-info-overlay .scenes-glass-pill,
.discover-section .personal-card .user-info-overlay .scenes-glass-pill * {
  color: #000 !important;
}

body.night-mode .discover-section .personal-card .user-info-overlay .user-info-glass-pill,
body.night-mode .discover-section .personal-card .user-info-overlay .user-info-glass-pill *,
body.night-mode .discover-section .personal-card .user-info-overlay .scenes-glass-pill,
body.night-mode .discover-section .personal-card .user-info-overlay .scenes-glass-pill * {
  color: white !important;
}

/* User info pill positioning - bottom left */
.discover-section .personal-card .user-info-overlay .user-info-glass-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: 55%;
  margin-bottom: 0;
  text-align: left !important;
}

/* Scenes pill positioning - bottom right */
.discover-section .personal-card .user-info-overlay .scenes-glass-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: 40%;
  margin-bottom: 0;
  text-align: right;
}

/* User info section styling */
.discover-section .personal-card .user-info-section {
  margin-bottom: 0 !important;
}

.discover-section .personal-card .user-info-section:last-child {
  margin-bottom: 0 !important;
}

.discover-section .personal-card .user-basic-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0px;
  justify-content: flex-start;
  text-align: left;
}

.discover-section .personal-card .user-name {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  flex-grow: 1;
  text-align: left;
}

.discover-section .personal-card .badges-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  vertical-align: middle;
}

.discover-section .personal-card .verified-badge .svg-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  overflow: hidden;
  width: 16px;
  height: 16px;
}

.discover-section .personal-card .verified-badge .svg-container svg {
  width: 100%;
  height: 100%;
  max-width: 16px;
  max-height: 16px;
}

.discover-section .personal-card .pro-badge svg {
  width: 16px;
  height: 16px;
}

.discover-section .personal-card .special-badge img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.discover-section .personal-card .user-username-row {
  font-size: 12px;
  color: inherit;
  margin-bottom: 0px;
  opacity: 0.9;
  line-height: 1.2;
  text-align: left;
}

.discover-section .personal-card .user-details-row {
  font-size: 11px;
  color: inherit;
  margin-bottom: 0px;
  opacity: 0.8;
  line-height: 1.2;
  text-align: left;
}

.discover-section .personal-card .user-details-row .separator {
  margin: 0 6px;
  color: inherit;
  opacity: 0.6;
}

/* Scenes glass pill styling */
.discover-section .personal-card .scenes-glass-pill .section-content {
  font-weight: bold;
  font-size: 12px;
  color: inherit;
}

.discover-section .personal-card .scenes-glass-pill .clickable-scenes {
  color: transparent;
  font-size: 0;
  pointer-events: none;
  cursor: default;
}

.discover-section .personal-card .scenes-glass-pill .clickable-scenes strong,
.discover-section .personal-card .scenes-glass-pill .clickable-scenes b {
  display: block;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  font-size: 12px;
  text-align: right;
  pointer-events: none;
  cursor: default;
  color: inherit;
}

.discover-section .personal-card .scenes-glass-pill .clickable-scenes .scene-unmatched {
  display: none !important;
}

.discover-section .personal-card .scenes-glass-pill .scene-expansion-details {
  display: none;
  height: 0;
  overflow: hidden;
}

/* Hide scenes pill if empty or contains "No scenes selected" */
.discover-section .personal-card .scenes-glass-pill:empty,
.discover-section .personal-card .scenes-glass-pill .section-content:empty {
  display: none;
}

/* Prevent pill overlap - ensure gap between pills */
/* Note: Overlay must remain position: absolute (defined above) for bottom positioning */
.discover-section .personal-card .user-info-overlay .user-info-glass-pill {
  margin-right: 10px;
}

.discover-section .personal-card .user-info-overlay .scenes-glass-pill {
  margin-left: 10px;
}

/* Night mode support */
body.night-mode .discover-section .personal-card .online-indicator {
  border-color: #333;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .discover-section .personal-card {
    height: 480px;
    max-width: 360px;
    width: 360px;
  }
  
  .discover-section .personal-card .user-info-overlay .user-info-glass-pill {
    max-width: 55%;
  }
  
  .discover-section .personal-card .user-info-overlay .scenes-glass-pill {
    max-width: 40%;
  }
  
  .discover-cards-container {
    gap: 15px;
    padding: 15px 0;
  }
  
  .discover-card-wrapper {
    flex: 0 0 360px;
    min-width: 360px;
    width: 360px;
  }
}

@media (max-width: 480px) {
  .discover-section .personal-card {
    height: 480px;
    max-width: 340px;
    width: 340px;
  }
  
  .discover-card-wrapper {
    flex: 0 0 340px;
    min-width: 340px;
    width: 340px;
  }
  
  .discover-section .personal-card .user-info-overlay .user-info-glass-pill {
    max-width: 55%;
  }
  
  .discover-section .personal-card .user-info-overlay .scenes-glass-pill {
    max-width: 40%;
  }
}
/* ==================== END DISCOVER SECTION STYLES ==================== */


/* ==================== VIDEO SECTION STYLES ==================== */
.video-section {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-content {
  text-align: center;
  z-index: 3;
}

.video-title {
  font-family: 'Roboto', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  padding: 0;
}

.video-line {
  display: block;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-section {
    height: 300px;
  }
  
  .video-title {
    font-size: 48px;
  }
  
  .video-line {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .video-title {
    font-size: 36px;
  }
  
  .video-line {
    margin-bottom: 6px;
  }
}

/* ==================== END VIDEO SECTION STYLES ==================== */


/* ==================== BILLBOARD SECTION STYLES ==================== */
.billboard-section {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/landing/idea.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.billboard-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.billboard-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .billboard-section {
    height: 600px;
    background-size: contain;
    background-position: center;
    background-color: #f2f2f2;
  }
}

@media (max-width: 480px) {
  .billboard-section {
    height: 500px;
    background-size: contain;
    background-position: center;
    background-color: #f2f2f2;
  }
}

/* ==================== END BILLBOARD SECTION STYLES ==================== */






/* ==================== STORIES SECTION STYLES ==================== */
.stories-section {
  background-color: #f2f2f2;
  padding: 80px 50px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.stories-title {
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: #000000;
  line-height: 1.1;
}

.stories-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.story-item {
  background-color: transparent; /* was #ffffff */
  border-radius: 0; /* was 8px */
  overflow: hidden;
  box-shadow: none; /* was shadow */
  transition: transform 0.2s ease; /* simpler */
  cursor: pointer;
}

.story-item:hover {
  transform: translateY(-2px);
  box-shadow: none; /* keep flat */
}

.story-image {
  position: relative;
  width: 100%;
  height: 160px; /* was 220px, more landscape */
  overflow: hidden;
  border-radius: 12px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease;
  border-radius: 12px;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Reduce memory usage */
  will-change: transform;
}

.story-item:hover .story-image img {
  transform: scale(1.02);
}

.story-title {
  padding: 12px 0 0 0; /* remove card padding look */
  text-align: left;
}

.story-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* tighter */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stories-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .stories-section {
    padding: 60px 30px;
  }
  
  .stories-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .stories-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .story-image {
    height: 200px;
    aspect-ratio: 16/9;
  }
  
  .story-image img {
    object-fit: cover;
    object-position: center;
  }
  
  .story-title {
    padding: 15px;
  }
  
  .story-title h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .stories-section {
    padding: 40px 20px;
  }
  
  .stories-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .stories-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .story-image {
    height: 260px;
    aspect-ratio: 16/9;
  }
}

/* ==================== END STORIES SECTION STYLES ==================== */


/* ==================== Footer Section Styles ==================== */
.footer-section, body.night-mode .footer-section {
  background-color: #ffffff;
  padding: 40px 20px;
  font-family: 'Roboto', sans-serif;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container, body.night-mode .footer-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.footer-logo, body.night-mode .footer-logo {
  width: 25%;
}

.footer-logo h2, body.night-mode .footer-logo h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-logo p, body.night-mode .footer-logo p {
  font-size: 16px;
  margin: 5px 0;
  color: #666666;
  white-space: nowrap;
}

.footer-column, body.night-mode .footer-column {
  width: 25%;
}

.footer-column h3, body.night-mode .footer-column h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000000;
}

.footer-column a, body.night-mode .footer-column a {
  display: block;
  font-size: 16px;
  color: #666666;
  text-decoration: none;
  margin-bottom: 5px;
  white-space: nowrap;
}

.footer-column a:hover, body.night-mode .footer-column a:hover {
  color: #000000;
}



.footer-social, body.night-mode .footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}

.footer-social a, body.night-mode .footer-social a {
  color: #000000;
  transition: opacity 0.3s ease;
}

.footer-social a i, body.night-mode .footer-social a i {
  font-size: 24px;
  color: #000000;
}

.footer-social a:hover, body.night-mode .footer-social a:hover {
  opacity: 0.8;
}

.footer-copyright-bottom, body.night-mode .footer-copyright-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-copyright-bottom p, body.night-mode .footer-copyright-bottom p {
  font-size: 14px;
  color: #666666;
  margin: 0;
}
/* ==================== End Footer Section Styles ==================== */

/* Footer Responsive Styles */
@media (max-width: 768px) {
  .footer-section {
    padding: 30px 20px;
  }
  
  .footer-container, body.night-mode .footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-logo, body.night-mode .footer-logo {
    width: 100%;
    text-align: center;
  }
  
  .footer-logo h2 {
    font-size: 20px;
  }
  
  .footer-logo p {
    font-size: 14px;
  }
  
  .footer-column, body.night-mode .footer-column {
    width: 100%;
  }
  
  .footer-column h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .footer-column a {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .footer-social, body.night-mode .footer-social {
    justify-content: center;
    margin-top: 10px;
  }
  
  .footer-social a i {
    font-size: 20px;
  }
  
  .footer-copyright-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }
  
  .footer-copyright-bottom p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer-section {
    padding: 20px 15px;
  }
  
  .footer-container {
    gap: 25px;
  }
  
  .footer-logo h2 {
    font-size: 18px;
  }
  
  .footer-logo p {
    font-size: 13px;
  }
  
  .footer-column h3 {
    font-size: 15px;
  }
  
  .footer-column a {
    font-size: 13px;
  }
}


/* ==================== Modal Styles ==================== */

.modal-lander, body.night-mode .modal-lander {
  display: none; 
  position: fixed;
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content-lander, body.night-mode .modal-content-lander {
  background-color: #f2f2f2;
  color: #000000; 
  margin: auto; 
  width: 90%;
  max-width: 500px;
  height: auto;
  min-height: 400px;
  max-height: 80vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  font-family: 'Roboto', Helvetica, sans-serif;

  /* animation: modalExpand 0.3s ease-out forwards; */
}

/* Use exact same responsive sizing as dedicated signup/signin pages */
@media (min-width: 768px) {
  .modal-content-lander, body.night-mode .modal-content-lander {
    max-width: 600px;
  }
}

@media (min-width: 992px) {
  .modal-content-lander, body.night-mode .modal-content-lander {
    max-width: 700px;
  }
}

.close-lander, body.night-mode .close-lander {
  color: #333; 
  float: right;
  font-size: 50px; 
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10000;  
}

.close-lander:hover,
.close-lander:focus, 
body.night-mode .close-lander:hover, 
body.night-mode .close-lander:focus {
  color: var(--cs-mint); 
  text-decoration: none;
  cursor: pointer;
}

.modal-open, body.night-mode .modal-open {
  overflow: hidden;
}

@keyframes modalExpand {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%); 
    opacity: 1;
  }
}


.card.card-register, body.night-mode .card.card-register {
  background-color: #f2f2f2 !important;
}

.js_panel .card-header .card-title, body.night-mode .js_panel .card-header .card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 40px !important;
  font-weight: normal !important;
  color: #000000 !important;
}

.card-register .form-control, body.night-mode .card-register .form-control {
  background-color:  #f2f2f2 !important;
  border-bottom: 1px solid #000 !important;
  color: #000 !important;
}

.card-register .form-control::placeholder, body.night-mode .card-register .form-control::placeholder {
  color: #333 !important;
}

/* Override the 40px padding for landing page modals */
@media (min-width: 992px) {
  .modal-content-lander .card-register {
    padding: 10px 40px 0px 40px !important;
  }
}

/* Fix checkbox alignment and text size for landing page modals */
.modal-content-lander .form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.modal-content-lander .form-check-input {
  margin-top: 2px;
  margin-right: 10px;
  flex-shrink: 0;
}

.modal-content-lander .form-check-label {
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #000 !important;
}

/* Prevent autofill from changing input colors - keep original styling */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
    transition: background-color 5000s ease-in-out 0s;
}

.card-register .form-control:-webkit-autofill,
body.night-mode .card-register .form-control:-webkit-autofill {
    background-color: #f2f2f2 !important;
    -webkit-box-shadow: 0 0 0px 1000px #f2f2f2 inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 1Password and other password manager styling */
.form-control[data-com-onepassword-filled="light"],
.form-control[data-com-onepassword-filled="dark"] {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
}

.card-register .form-control[data-com-onepassword-filled="light"],
body.night-mode .card-register .form-control[data-com-onepassword-filled="light"] {
    background-color: #f2f2f2 !important;
    -webkit-box-shadow: 0 0 0px 1000px #f2f2f2 inset !important;
    -webkit-text-fill-color: #000 !important;
}

.card-register .form-control[data-com-onepassword-filled="light"]:not(:focus),
body.night-mode .card-register .form-control[data-com-onepassword-filled="light"]:not(:focus) {
    background-color: #f2f2f2 !important;
}

.form-check-input, body.night-mode .form-check-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background-color: #f2f2f2;
  border: 2px solid #000;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.form-check-input:checked, body.night-mode .form-check-input:checked {
  background-color: #000;
  border-color: #000;
}

.form-check-label, body.night-mode .form-check-label {
  padding-top: 0px;
  font-size: 14px;
  padding-left: 5px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

/* Button styles now use Bootstrap classes from standalone forms */


/* ==================== End Modal Styles ==================== */


/* ==================== ENHANCED RESPONSIVE STYLES ==================== */

/* Global Font Scaling for Mobile */
@media (max-width: 768px) {
  body, html {
    font-size: 14px;
  }
}

/* Header */
@media (max-width: 768px) {
  #top-menu-bar {
    flex-direction: column;
    padding: 10px;
  }

  .nav-links-left, .menu-links {
    display: none;
  }

  .centered-logo {
    position: static;
    transform: none;
    margin-bottom: 10px;
    display: block !important;
  }
  
  .centered-logo img {
    display: block !important;
    visibility: visible !important;
  }
}

/* Hero Section */
@media (max-width: 768px) {
  .hero-content {
    padding: 20px;
    text-align: center;
  }

  .hero-content .hero-text h1 {
    font-size: 30px;
    line-height: 1.3;
  }

  .hero-content .hero-buttons {
    align-items: center;
    flex-direction: column;
    gap: 15px;
    margin-top: 15vh;
  }

  .button-row {
    flex-direction: row;
    gap: 10px;
  }

  .hero-content .hero-buttons button,
  .hero-content .hero-buttons a {
    margin: 5px;
  }
}



/* Share Section */
@media (max-width: 768px) {
  .share-section {
    padding: 0px 20px;
  }
  
  .share-container {
    padding: 0 20px;
  }

  .share-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .share-content h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .share-icon {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .share-content h2 {
    font-size: 24px;
  }
  
  .share-icon {
    height: 150px;
  }
}

/* Features Section */
@media (max-width: 768px) {
  .features-section {
    padding: 20px 30px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 30px;
  }

  .feature-title .scribble-bg {
    width: 250px;
  }

  .feature-title .title-text {
    font-size: 16px;
  }

  .feature-image {
    width: 90%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .features-section {
    padding: 20px 20px;
  }
  
  .features-container {
    gap: 25px;
  }
  
  .feature-title .scribble-bg {
    width: 200px;
  }
  
  .feature-title .title-text {
    font-size: 14px;
  }
  
  .feature-image {
    width: 90%;
    max-width: none;
  }
}

/* Discover Section */
@media (max-width: 768px) {
  .discover-section {
    padding: 60px 30px;
  }
  
  .discover-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .discover-title {
    font-size: 24px;
  }
}



/* Header and Hero Mobile Styles */
@media (max-width: 768px) {
  /* Hide app store buttons and social icons on mobile in header */
  .app-store-buttons-top, .social-icons-top {
    display: none;
  }
  
  /* Adjust logo positioning */
  .centered-logo {
    position: relative;
    left: auto;
    transform: none;
    display: block !important;
  }
  
  /* Ensure logo is visible on mobile */
  .centered-logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: 9999 !important;
  }
  
  /* Force logo container to be visible */
  .centered-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: 9999 !important;
  }
  
  /* Show burger icon */
  .burger-icon {
    display: block;
  }
  
  /* Switch to mobile hero layout */
  .desktop-hero {
    display: none;
  }
  
  .mobile-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    padding-top: 80px; /* Account for fixed header */
  }
  
  /* Mobile hero buttons container */
  .hero-buttons-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    margin-top: auto;
  }
  
  /* Mobile button row - stack vertically */
  .button-row-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
  }
  
  /* Mobile login text */
  .login-text-mobile {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
  }
  
  /* Mobile tagline positioning */
  .connect-create-collaborate-mobile {
    margin-top: auto;
    margin-bottom: 40px;
    text-align: center;
  }
  
  /* Mobile tagline container */
  .connect-create-collaborate-mobile .tagline-container {
    flex-direction: row;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
  }
  
  .connect-create-collaborate-mobile .tagline-text {
    font-size: 16px;
  }
  
  .connect-create-collaborate-mobile .scribble-x {
    height: 20px;
  }
  
  /* Mobile scribble button adjustments */
  .mobile-hero .scribble-bg {
    width: 180px;
  }
  
  .mobile-hero .button-text {
    font-size: 16px;
  }
}

/* Footer Section */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-logo, .footer-links, .footer-social {
    width: 100%; 
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-social {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}


/* Modal Styles */
@media (max-width: 768px) {
  .modal-content-lander {
    width: 90%;
    height: auto;
    max-height: 80%;
    padding: 20px;
  }

  .close-lander {
    font-size: 36px;
  }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links-left, .menu-links {
    display: none;
  }

  /* Burger Icon */
  .burger-icon {
    position: absolute;
    display: block;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #FFF;
    cursor: pointer;
    z-index: 1000; 
  }
  .centered-logo {
    margin-top: 10px;
    display: block !important;
  }
  
  .centered-logo img {
    display: block !important;
    visibility: visible !important;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 20px;
    text-align: center;
    z-index: 999;
  }

  .mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #FFF;
    text-decoration: none;
    font-size: 18px;
  }

  .mobile-menu a:hover {
    background-color: #444;
  }
}


@media (max-width: 768px) {
  .hero-content .hero-text h1 {
    font-size: 40px !important; 
    line-height: 1.3;
    margin-bottom: 10px;
  }
}


/* ==================== END ENHANCED RESPONSIVE STYLES ==================== */


