:root {
  --primary: #6C5CE7;
  --primary-light: #8C7AE6;
  --secondary: #00CEC9;
  --text: #2D3436;
  --bg: #F5F6FA;
  --card-bg: #FFFFFF;
  --nav-bg: #FFFFFF;
  --border: #E0E0E0;
  --text-muted: #636E72;
}

[data-theme="dark"] {
  --primary: #8C7AE6;
  --primary-light: #9C8BEE;
  --secondary: #00D8D1;
  --text: #F5F6FA;
  --bg: #1A1A1A;
  --card-bg: #2D3436;
  --nav-bg: #2D3436;
  --border: #444;
  --text-muted: #B2BEC3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background 0.3s, color 0.1s;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================== */
/* Enhanced Navigation */
/* ====================== */
.navbar {
  background: var(--nav-bg);
  padding: 12px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a:not(.btn) {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.nav-links a:not(.btn).active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a:not(.btn).active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 12px;
  width: calc(100% - 24px);
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Join Now button in nav */
.nav-links .btn-primary {
  padding: 10px 20px;
  font-weight: 600;
  margin-left: 10px;
}

/* Theme toggle adjustment */
.theme-switch {
  margin-left: 15px;
}

/* ====================== */
/* Existing Styles Remain */
/* ====================== */

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Platform Icons */
.platforms {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
}

.platform {
  background: var(--card-bg);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}

textarea.form-control {
  min-height: 150px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links h4 {
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
}

.social-links a {
  color: var(--text-muted);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Dark Mode Toggle */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Enhanced Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 6px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 8px rgba(108, 92, 231, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
}

.btn-ghost:hover {
  background: rgba(108, 92, 231, 0.1);
}

/* Button with icon */
.btn-icon {
  gap: 8px;
}

.btn-icon i {
  font-size: 1.1em;
}

/* Button animations */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Responsive buttons */
@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a:not(.btn) {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .nav-links .btn-primary {
    padding: 8px 16px;
    margin-left: 5px;
  }
  
  .theme-switch {
    margin-left: 10px;
    transform: scale(0.9);
  }
}

/* Original CSS remains completely intact */
/* Only adding these new rules at the bottom */

/* ================== */
/* Mobile Responsiveness */
/* ================== */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    z-index: 1001;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    width: 100%;
    margin: 15px 0 0;
  }

  .theme-switch {
    margin: 15px 0;
  }

  .hero h1 {
    font-size: 2.2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .platforms {
    gap: 15px;
  }

  .platform {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 !important;
  }

  .hero h1 {
    font-size: 1.8rem !important;
  }

  .container {
    padding: 0 15px !important;
  }
}

/* Touch targets */
a, button, .btn {
  min-height: 44px;
  min-width: 44px;
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
  display: none;
}