:root {
  --bg: #f6fbf3;
  --text: #181d19;
  --accent: #006b5f;
  --accent-container: #ffffff;
  --surface: #eaefe8;
  --primaryContainer: #ffd6fc;
  --onPrimaryContainer: #623765;
  --gray: #6f7976;
}

[data-theme="dark"] {
  --bg: #0f1511;
  --text: #dfe4dd;
  --accent: #83d5c7;
  --accent-container: #003731;
  --surface: #1c211d;
  --primaryContainer: #623765;
  --onPrimaryContainer: #ffd6fc;
  --gray: #899390;
}

.logo-box {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 600px) {
  .logo-text {
    font-size: 1.2rem;
  }

  nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
}


body {
  margin: 0;
  font-family: 'Lexend', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--accent-container);
  position: fixed;
  width: 100%;
  z-index: 10;
}

header h1 {
  font-size: 1.5rem;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1rem;
  padding-right: 4em;
}

nav a {
  color: var(--text);
  margin-right: 1rem;
  text-decoration: none;
  padding: auto;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--accent);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--surface));
}

.hero h2 {
  font-size: 3rem;
  margin: 0.5rem 0;
}

.hero p {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--gray);
}

.hero img {
  width: 240px;
  margin: 2rem 0;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.features {
  padding: 4rem 2rem;
  background-color: var(--primaryContainer);
  color: var(--onPrimaryContainer);
  text-align: center;
}

.features h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
}

.feature i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.download {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--bg);
}

.download img {
  height: 60px;
  margin: 1rem;
}

footer {
  padding: 2rem;
  background: var(--surface);
  color: var(--gray);
  text-align: center;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-left: 1rem;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text x="5" y="17" font-size="16">☀️</text></svg>');
  background-repeat: no-repeat;
  background-position: 6px center;
  background-size: 18px;
}

.theme-switch input:checked + .slider {
  background-color: #666;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text x="5" y="17" font-size="16">🌙</text></svg>');
  background-position: calc(100% - 10px) center;
}

.download a {
  display: inline-block;
  margin: 0 10px;
}

/* ========== PRIVACY POLICY STYLES ========== */

main.privacy-container {
  max-width: 800px;
  margin: 120px auto 60px auto; /* Adjusted to account for fixed header */
  padding: 0 20px;
  line-height: 1.6;
  color: var(--text);
}

main.privacy-container h1,
main.privacy-container h2,
main.privacy-container h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

main.privacy-container h1 {
  font-size: 2.2rem;
}

main.privacy-container h2 {
  font-size: 1.6rem;
}

main.privacy-container h3 {
  font-size: 1.3rem;
}

main.privacy-container p,
main.privacy-container li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

main.privacy-container ul {
  padding-left: 1.5rem;
}

main.privacy-container a {
  color: var(--accent);
  text-decoration: underline;
}

main.privacy-container strong {
  font-weight: 700;
}

@media (max-width: 600px) {
  main.privacy-container {
    padding: 0 16px;
    margin-top: 100px;
  }

  main.privacy-container h1 {
    font-size: 1.8rem;
  }

  main.privacy-container h2 {
    font-size: 1.4rem;
  }

  main.privacy-container h3 {
    font-size: 1.2rem;
  }
}


.support-section {
  max-width: 800px;
  margin: 120px auto 60px auto; /* Adjusted to account for fixed header */
  padding: 0 20px;
  line-height: 1.6;
  color: var(--text);
}

.support-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

#support-form input[type="text"],
#support-form input[type="email"],
#support-form textarea {
  width: 100%;
  max-width: 600px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--gray);
  background-color: var(--surface);
  color: var(--text);
  font-size: 16px;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}

#support-form input:focus,
#support-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#support-form button {
  background-color: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#support-form button:hover {
  background-color: var(--accent-container);
  color: var(--accent);
}


.support-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.usage-guide {
  max-width: 700px;
  margin: 4rem auto 2rem;
  text-align: left;
}

.usage-guide h3 {
  color: var(--accent);
  margin-top: 2rem;
}


#event-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#event-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}

#event-date,
#event-location {
  font-size: 1rem;
  color: var(--gray);
  margin: 0.25rem 0;
}

#join-button {
  margin-top: 1.5rem;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background-color: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#join-button:hover {
  background-color: var(--accent-container);
  color: var(--text);
}

.redirect-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 1.5rem;
}

footer {
  padding: 2rem;
  background: var(--surface);
  color: var(--gray);
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}
