/* Global Reset and Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #fff7f0, #ffe5d0);
  color: #1f1f1f;
  transition: all 0.3s ease;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body.dark-mode {
  background: #0e0e0e;
  color: #f1f1f1;
}

/* 🔥 FOX BACKGROUND CONTAINER */
.fox-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.fox-background img {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  pointer-events: none;
  object-fit: contain;
  z-index: -2;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #ff440081;
  position: relative;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff5500;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: #ff5500;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

nav a:hover::after {
  width: 100%;
}

#toggle-theme {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1rem !important;
  z-index: 9999 !important;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.7rem 0.9rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

@media (max-width: 400px) {
  #toggle-theme {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
  }
}

#toggle-theme:hover {
  background: #e55b00;
}

/* Light Mode (default): black icon */
body:not(.dark-mode) #toggle-theme {
  color: #000;
}

/* Dark Mode: white icon */
body.dark-mode #toggle-theme {
  color: #fff;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: #ff4400;
}

.hero p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #333;
}

body.dark-mode .hero p {
  color: #ccc;
}

.download-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #ff5c00;
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.download-buttons button:hover {
  background: #e04a00;
}

.store-button img {
  height: 60px;
  transition: transform 0.3s ease;
}

.store-button:hover img {
  transform: scale(1.05);
}

/* Preview Sections */
.preview-section {
  padding: 3rem 2rem;
  text-align: center;
}

.preview-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff4400;
}

.btn-outline {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid #ff4400;
  border-radius: 4px;
  color: #ff4400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #ff4400;
  color: #fff;
}

/* Particle Glows */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 100, 0, 0.3), transparent 60%);
  top: -100px;
  left: -100px;
  z-index: 0;
  animation: floatGlow 5s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.2), transparent 60%);
  bottom: -100px;
  right: -100px;
  z-index: 0;
  animation: floatGlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Footer */
footer {
  background: #ff440081;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

body.dark-mode footer {
  background: #ff440081;
  color: #bbb;
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    align-items: center;
  }

  .hero-text {
    text-align: center;
    padding: 20px;
  }

  .download-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .preview-section {
    padding: 20px;
    text-align: center;
  }



  .fox-background img {
    width: 100%;
    height: auto;
  }
}

/* Hide hamburger on desktop */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: var(--background);
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin: 0;
  }

  nav ul.show {
    display: flex;
  }

  .hamburger {
    display: block;
    margin-left: auto;
    padding: 20px;
  }

  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    margin-left: 20px;
  }
}

.auth-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
  background: var(--background);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.auth-container form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.auth-container form button {
  width: 100%;
  padding: 12px;
  background: #ff6600;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.profile-container {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

#profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

#user-fullname {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-radius: 6px;
}

.dropdown p {
  margin: 0 0 10px;
  font-weight: bold;
}

.dropdown button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.dropdown button:hover {
  background-color: #c0392b;
}

.dropdown {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 1000px;
}

.legal-box {
  background: #fff4ea;
  padding: 2rem;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  color: #1f1f1f;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.legal-box:hover {
  transform: translateY(-5px);
  background: #ffe6d2;
}

body.dark-mode .legal-box {
  background: #1a1a1a;
  color: #f1f1f1;
  box-shadow: 0 4px 8px rgba(255,255,255,0.05);
}

body.dark-mode .legal-box:hover {
  background: #222;
}