:root {
  --main-orange: #e68b29;
  --soft-orange: #EDB458;
  --dark-charcoal: #1a1a1a;
  --light-bg: #ffffff;
  --light-text: #222;
  --dark-bg: #34312D;
  --dark-text: #eee;
  --soft-brown: #e6c29f;
}

/* Theme variables */
html[data-theme='light'] {
  --bg-color: var(--light-bg);
  --text-color: var(--light-text);
  --header-footer-bg: var(--dark-charcoal);
  --card-bg: #d2d2d2;
  --curve-bg: var(--light-bg);
}

html[data-theme='dark'] {
  --bg-color: var(--dark-bg);
  --text-color: var(--dark-text);
  --header-footer-bg: #1f1f1f;
  --card-bg: #1f1f1f;
  --curve-bg: var(--dark-bg);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header */
header, footer {
  background: var(--header-footer-bg);
  color: white;
  padding: 1rem 0;
}

header {
  position: relative;
  z-index: 1000; /* keep it above page content */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--soft-orange);
  text-decoration: none;
}

/* Navigation */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

nav a {
  color: #fefefe;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover { color: var(--soft-orange); }

.dropdown { position: relative; }
.dropdown-content {
  display: none;
  position: absolute;
  background: #34312D;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  top: 100%;
  left: 0;
  z-index: 10;
}
.dropdown-content a { color: white; display: block; padding: 0.3rem 0; }
.dropdown:hover .dropdown-content { display: block; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Theme Switcher */
.theme-switcher {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-switcher svg {
  stroke: white;
  width: 24px;
  height: 24px;
  transition: stroke 0.3s;
}
html[data-theme='light'] .theme-switcher svg { fill: white; }

/* HERO */
.hero-carousel {
  background: var(--soft-orange);
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; 
}

.carousel-inner { padding: 0 3.5rem; position: relative; }
.carousel-track { display: flex; transition: transform 0.6s ease-in-out; }
.carousel-slide { flex: 0 0 100%; display: block; padding-left: 4rem; }

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.hero-text { flex: 1; min-width: 260px; }
.hero-text h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-text p { font-size: 1.2rem; margin-bottom: 2rem; }

.download-button {
  background: var(--soft-brown);
  color: #1a1a1a;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.hero-image { flex: 1; min-width: 260px; text-align: center; }
.hero-image img {
  display: block;
  max-width: min(520px, 100%);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  margin: 0 auto;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  color: #fff;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 6px;
  line-height: 1;
}
.carousel-arrow.left  { left: 0.5rem; }
.carousel-arrow.right { right: 0.5rem; }

/* Divider */
.curve-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--soft-orange);
  color: var(--curve-bg);
}
.curve-divider svg { width: 100%; height: 110px; }

/* Sections */
.section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-box {
  background: var(--card-bg);
  border-left: 5px solid var(--soft-brown);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.about, .community { text-align: center; }

/* Footer */
footer { text-align: center; margin-top: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero-text h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .container { flex-wrap: nowrap; }
  .menu-toggle { display: block; }
  nav {
    display: none;
    flex-direction: column;
    position: absolute;          /* ✅ pop-out */
    top: 100%;                   /* ✅ below header */
    left: 0;
    width: 100%;
    background: var(--header-footer-bg);
    z-index: 1000;
    padding: 1rem 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  .hero-content { flex-direction: column; text-align: center; }
  .carousel-inner { padding: 0 1.5rem; }
  .carousel-slide { padding-left: 0; }
  .features {
    grid-template-columns: 1fr; /* ✅ stack boxes vertically */
  }
    .hero-carousel {
    padding: 1.5rem 0; /* ✅ even shorter on phones */
  }
}

