:root {
  --primary: #8b5cf6;
  --accent: #10b981;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --bg: #151b2b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: linear-gradient(135deg, var(--bg) 0%, var(--darker) 100%);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, text-decoration 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 2rem 5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-3px);
  border-color: white;
}

/* Section Styling */
section {
  padding: 5rem 2rem;
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section-desc {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--light);
  letter-spacing: -0.03em;
}

/* Tutorial Grid */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tutorial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.tutorial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: #a78bfa;
}

.tutorial-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--light);
  line-height: 1.3;
}

.tutorial-card p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.tutorial-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-intermediate {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-advanced {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-time {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-view {
  background: var(--primary);
  color: white;
  width: 100%;
  text-align: center;
  display: block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-view:hover {
  background: #7c3aed;
}

/* Content Page */
.content-container {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.8;
}

.content-container h1 {
  font-size: 2.5rem;
  color: var(--light);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.content-container h2 {
  font-size: 1.8rem;
  color: var(--light);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid #a78bfa;
  padding-bottom: 0.5rem;
}

.content-container h3 {
  font-size: 1.4rem;
  color: var(--light);
  margin: 1.5rem 0 0.75rem;
}

.content-container p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.content-container ul {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-container li {
  margin-bottom: 0.5rem;
}

.code-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.highlight-green { color: #34d399; }
.highlight-blue { color: #60a5fa; }
.highlight-purple { color: #c084fc; }
.highlight-orange { color: #fb923c; }

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.back-btn:hover {
  color: #7c3aed;
  transform: translateX(-3px);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--darker);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

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

.tutorial-card, .content-container {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
  
  .content-container {
    padding: 2rem 1.5rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}
