@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Light Theme Variables */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --border: #e2e8f0;
  --input-bg: #ffffff;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass: rgba(30, 41, 59, 0.7);
  --border: #334155;
  --input-bg: #0f172a;
  --white: #f8fafc;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
  border-color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-up { animation: fadeInUp 0.8s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h2 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 0;
}

.navbar.scrolled .container {
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

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

/* Hero */
.hero {
  padding: 180px 0 100px;
  display: flex;
  align-items: center;
  min-height: 85vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  place-items: center;
  padding: 20px;
}

.modal.show { display: grid; }

.modal-content {
  background: var(--bg-card);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  border: 1px solid var(--border);
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Sections */
section { padding: 100px 0; }

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  padding: 100px 0 50px;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  transition: var(--transition);
}

.footer-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.card {
  background: var(--bg-card);
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  color: var(--text-main);
}

/* Form Styling */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-main);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  transition: var(--transition);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Messages */
.message {
  display: none;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.message.show { display: block; }
.message.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.message.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Responsive */
@media (max-width: 1024px) {
  .nav-menu { gap: 1.5rem; }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-top: 1rem;
  }
  
  .nav-menu.show { display: flex; }
  
  .mobile-toggle { display: block !important; }
  
  .auth-buttons { display: none; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 60px; }
  .section-title { margin-bottom: 3rem; }
  .navbar .container { padding: 0.5rem 1.5rem; }
  .footer-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}
