/* --- Global reset to stop overflow on small screens --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

/* Base styles */
body {
  margin: 0;
  padding: 0;
  background-color: #1c1c1c; /* fallback if video can't load */
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: Georgia, serif;
  color: #ffffff;
  margin: 0.5em 0;
}
h1 { font-size: 3em; margin-bottom: 0.2em; }
h2 { font-size: 2em; margin-top: 1em; }
p { margin: 0.5em 0 1em; }
a { color: #b58900; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Fixed full-screen background video --- */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Global overlay for readability on top of video */
.page-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#hero .hero-content {
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
}
#hero .hero-content h1,
#hero .hero-content p { color: #fafafa; }
#hero .button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.2em;
  font-family: Georgia, serif;
  color: #ffffff;
  background-color: #5a3e36;
  border: 2px solid #b58900;
  border-radius: 5px;
  text-decoration: none;
}
#hero .button:hover { background-color: #6a4e46; }

/* Features Section */
#features {
  padding: 60px 20px;
  background-color: rgba(44, 44, 44, 0.75);
  text-align: center;
}
.feature-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 40px;
}
.feature {
  background: rgba(51, 51, 51, 0.9);
  border-radius: 5px;
  overflow: hidden;
  flex: 1 1 30%;
  max-width: 30%;
  min-width: 250px;
  text-align: left;
}
.feature img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-content { padding: 15px; }
.feature-content h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}
.feature-content p { font-size: 1em; color: #ddd; }

/* Testimonials Section */
#testimonials {
  padding: 60px 20px;
  background-color: rgba(31, 31, 31, 0.8);
  text-align: center;
}
#testimonials h2 { color: #e0e0e0; }
.testimonial {
  max-width: 600px;
  margin: 20px auto;
  font-style: italic;
  color: #ccc;
}
.testimonial p { quotes: "“" "”" "‘" "’"; }
.testimonial p::before { content: open-quote; }
.testimonial p::after { content: close-quote; }
.testimonial-footer {
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  color: #f0f0f0;
}

/* Sign-up Section */
#signup {
  padding: 60px 20px;
  background-color: rgba(40, 40, 40, 0.85);
  text-align: center;
}
#signup form {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
#signup label {
  display: block;
  margin-bottom: 6px;
  text-align: left;
}
#signup input[type="text"],
#signup input[type="email"] {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #333;
  color: #f0f0f0;
  font-size: 16px;
}
#signup button {
  padding: 12px 25px;
  font-size: 1em;
  color: #ffffff;
  background-color: #5a3e36;
  border: 2px solid #b58900;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}
#signup button:hover { background-color: #6a4e46; }

/* Footer */
footer {
  background-color: rgba(26, 26, 26, 0.9);
  color: #bbb;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}
footer a { color: #b58900; }

/* Responsive Design */
@media (max-width: 768px) {
  #hero h1 { font-size: 2em; }
  .feature-container {
    flex-direction: column;
    align-items: center;
  }
  .feature { max-width: 90%; }
}

#signup button:disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
}
#signup .form-message { 
  min-height: 1.2em; 
}

/* Floating button in bottom-right */
.lang-switch {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 9999;
  font-family: system-ui, sans-serif;
}

/* Modal backdrop (screen dimmer) */
.lang-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;                /* always flex */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Visible state */
.lang-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Modal window */
.lang-modal {
  background: #111;
  color: #fff;
  border-radius: 1rem;
  max-width: 320px;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  text-align: center;
  font-family: system-ui, sans-serif;
}

.lang-modal h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #fff;
}

.lang-modal p {
  font-size: 0.9rem;
  color: #bbb;
  margin: 0 0 1rem;
}

/* Option buttons in modal */
.lang-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-option {
  flex: 1 1 auto;
  min-width: 110px;
  background: #1f2937;
  color: #fff;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.lang-option:hover {
  background: #374151;
}

.grecaptcha-badge { 
    visibility: hidden !important;
}