/* ======================================
   Global Color System
====================================== */
:root {
  --bg: #0c1220;
  --bg-alt: #121a2b;
  --text: #e7e9ef;
  --text-light: #c4c8d2;
  --accent: #d4af37;
  --accent-hover: #f0c75e;
  --card-bg: #162033;
  --border: #2a3247;
}

/* ======================================
   Global
====================================== */
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

/* ======================================
   Layout Helpers
====================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 18px;
}

/* ======================================
   Navbar
====================================== */
.navbar {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 0px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 145px;
  min-width: 45px;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.5));
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
  color: var(--text);
}

nav a:hover {
  color: var(--accent);
}

/* ======================================
   Hero
====================================== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 65px 20px;
  background: linear-gradient(
    135deg,
    #0c1220 0%,
    #121a2b 35%,
    #1a2342 100%
  );
}

.hero h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 650px;
  margin: 0 auto 24px auto;
  color: var(--text-light);
}

.cta-btn {
  padding: 12px 30px;
  font-size: 1rem;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: var(--accent-hover);
}

/* ======================================
   About Section
====================================== */
.about {
  padding: 60px 16px;
  max-width: 900px;
  margin: auto;
}

.about h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.about p {
  color: var(--text-light);
  font-size: 1rem;
  text-align: center;
}

/* ======================================
   Login Section
====================================== */
.login-section {
  padding: 70px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.login-card h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.4rem;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#auth-form input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #101826;
  color: var(--text);
  font-size: 0.95rem;
}

#auth-form button {
  padding: 12px;
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#auth-form button:hover {
  background: var(--accent-hover);
}

.register-link {
  text-align: center;
  font-size: 0.9rem;
}

/* ======================================
   Footer
====================================== */
footer {
  background: var(--bg-alt);
  text-align: center;
  color: var(--text-light);
  padding: 20px;
  border-top: 1px solid var(--border);
}

/* ======================================
   Hidden Section
====================================== */
.hidden {
  display: none;
}

/* ======================================
   Responsive
====================================== */
@media (max-width: 900px) {
  nav {
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  nav {
    gap: 12px;
  }
}

@media (max-width: 450px) {
  nav {
    gap: 8px;
    font-size: 0.9rem;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}
.h {
  width: 90%;
  margin: auto;
  padding: 25px;
  margin-top: 20px;

  /* 3D & animation setup */
  display: block;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;

  /* Slight depth illusion */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

.h:hover {
  transform: rotateY(12deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

/* How It Works Section */
#how-it-works {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 25px;
  background: #151515;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 255, 140, 0.05);
  animation: fadeInSection 0.6s ease-out;
}

#how-it-works h2 {
  text-align: center;
  color: #d4af37;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

#how-it-works h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: #d4af37;
}

#how-it-works p {
  line-height: 1.6;
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 12px;
}

#how-it-works ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

#how-it-works li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #ccc;
}

#how-it-works li strong {
  color: #d4af37;
}

/* subtle hover treatment on list items */
#how-it-works li:hover {
  color: #fff;
  transform: translateX(3px);
  transition: all 0.2s ease;
}

/* simple fade animation */
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  #how-it-works {
    max-width: 95%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  #how-it-works h2 {
    font-size: 1.4rem;
  }
  #how-it-works h3 {
    font-size: 1.1rem;
  }
  #how-it-works p,
  #how-it-works li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  #how-it-works {
    padding: 15px;
  }
  #how-it-works h2 {
    font-size: 1.25rem;
  }
  #how-it-works p,
  #how-it-works li {
    font-size: 0.9rem;
  }
}
