:root {
  /* Colors */
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --secondary: #f97316;
  
  /* Light Theme */
  --bg-color: #ffffff;
  --bg-surface: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

html.dark {
  /* Dark Theme */
  --bg-color: #0f172a;
  --bg-surface: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-icon {
  background: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-main);
}
.btn-icon:hover {
  background-color: var(--bg-surface);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(var(--bg-color), 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand-icon {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  margin-bottom: 32px;
}
.mobile-menu-links a {
  font-size: 2rem;
  font-weight: 700;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  text-align: center;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 span {
  color: var(--primary);
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- About Section --- */
.about {
  padding: 100px 0;
  background-color: var(--bg-surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.125rem;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.about-feature i {
  color: var(--secondary);
}

/* --- Footer --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.footer p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* --- Theme Toggle Icons --- */
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
html.dark .theme-toggle .icon-sun {
  display: block;
  color: #facc15;
}
html.dark .theme-toggle .icon-moon {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
