/* ============================================
   Tech & AI Learning Portal - Main Styles
   ============================================ */

/* CSS Variables for theming */
:root {
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6c757d;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-2: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --code-bg: #1e1e2e;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
}

[data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #252542;
  --bg-card: #1e1e3f;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #818cf8;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #f472b6;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --code-bg: #0d0d1a;
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Scroll Container for Locomotive */
.scroll-container {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--bg-primary), 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-logo-icon {
  font-size: 2rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-link {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.navbar-link:hover {
  color: var(--accent-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: rotate(180deg);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-1);
  filter: blur(150px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-container {
  position: relative;
  width: 300px;
  height: 400px;
}

.robot {
  width: 100%;
  height: 100%;
  position: relative;
}

.robot-head {
  width: 120px;
  height: 100px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 20px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.robot-eyes {
  display: flex;
  gap: 20px;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
}

.robot-eye {
  width: 25px;
  height: 25px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 20px #00ff88;
  animation: eyeBlink 3s infinite;
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.robot-body {
  width: 150px;
  height: 180px;
  background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 20px;
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.robot-screen {
  width: 100px;
  height: 60px;
  background: var(--code-bg);
  border-radius: 8px;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 8px;
}

.code-line {
  height: 4px;
  background: #00ff88;
  border-radius: 2px;
  margin-bottom: 6px;
  opacity: 0.7;
}

.code-line:nth-child(1) { width: 80%; }
.code-line:nth-child(2) { width: 60%; }
.code-line:nth-child(3) { width: 90%; }
.code-line:nth-child(4) { width: 50%; }

.robot-arms {
  position: absolute;
  top: 130px;
  width: 100%;
}

.robot-arm {
  width: 40px;
  height: 100px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 20px;
  position: absolute;
}

.robot-arm.left {
  left: -30px;
  transform: rotate(-20deg);
}

.robot-arm.right {
  right: -30px;
  transform: rotate(20deg);
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation: float 3s ease-in-out infinite; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation: float 3s ease-in-out infinite 0.5s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 5%; animation: float 3s ease-in-out infinite 1s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation: float 3s ease-in-out infinite 1.5s; }
.floating-icon:nth-child(5) { top: 50%; left: 0%; animation: float 3s ease-in-out infinite 0.3s; }

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

/* Section Styles */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

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

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--accent-primary);
}

.course-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: var(--bg-secondary);
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.course-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.course-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.course-link:hover {
  gap: 1rem;
}

/* Course Detail */
.course-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.course-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
}

.course-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.course-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.course-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.course-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

.lessons-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.lesson-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item:hover {
  background: var(--bg-secondary);
}

.lesson-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
}

.lesson-info {
  flex: 1;
}

.lesson-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.lesson-duration {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lesson-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.lesson-status.completed {
  background: var(--success);
  border-color: var(--success);
}

/* Code Editor */
.code-editor {
  background: var(--code-bg);
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
}

.code-editor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-editor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-editor-dot.red { background: #ff5f56; }
.code-editor-dot.yellow { background: #ffbd2e; }
.code-editor-dot.green { background: #27c93f; }

.code-editor-filename {
  margin-left: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.code-editor-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-editor-body pre {
  margin: 0;
  font-family: 'Fira Code', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-editor-body code {
  color: #e2e8f0;
}

/* Syntax Highlighting */
.keyword { color: #c792ea; }
.string { color: #c3e88d; }
.function { color: #82aaff; }
.comment { color: #676e95; font-style: italic; }
.number { color: #f78c6c; }
.operator { color: #89ddff; }

/* Tutorials */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1 !important;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.tutorial-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tutorial-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.tutorial-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tutorial-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tutorial-content {
  padding: 1.5rem 2rem;
}

.tutorial-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tutorial-steps {
  margin-bottom: 1.5rem;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.tutorial-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tutorial-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* AI Tools */
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.ai-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  opacity: 1 !important;
}

.ai-tool-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.ai-tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ai-tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.ai-tool-title {
  font-size: 1.25rem;
}

.ai-tool-category {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ai-tool-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.ai-tool-features {
  margin-bottom: 1.5rem;
}

.ai-tool-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ai-tool-feature::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* Chatbot Demo */
.chatbot-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--gradient-1);
  color: white;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chatbot-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1.5rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: 70%;
  padding: 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.bot .chat-bubble {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: var(--gradient-1);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.chatbot-input input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.chatbot-input button {
  padding: 0.875rem 1.5rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 12px;
  font-weight: 600;
}

/* Image Generator Demo */
.image-generator {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.image-generator-input {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.image-generator-input input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
}

.image-generator-input button {
  padding: 1rem 2rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.image-generator-result {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-generator-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.image-generator-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Community */
.community-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.community-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.timeline-content{
  opacity: 1 !important;
}

.community-sidebar-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.community-category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1 !important;
}

.community-category:hover,
.community-category.active {
  background: var(--bg-secondary);
}

.community-category-icon {
  font-size: 1.25rem;
}

.community-category-info {
  flex: 1;
}

.community-category-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.community-category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.community-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.community-posts {
  padding: 1rem 0;
}

.community-post {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.3s ease;
}

.community-post:hover {
  background: var(--bg-secondary);
}

.community-post:last-child {
  border-bottom: none;
}

.community-post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.community-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.community-post-meta {
  flex: 1;
}

.community-post-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.community-post-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.community-post-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.community-post-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.community-post-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--accent-primary);
}

.community-post-stats {
  display: flex;
  gap: 1.5rem;
}

.community-post-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* About & Contact */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.instructor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.instructor-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.instructor-role {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.instructor-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.instructor-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.instructor-stat {
  text-align: center;
}

.instructor-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.instructor-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Newsletter */
.newsletter {
  background: var(--gradient-1);
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  color: white;
  margin-top: 4rem;
}

.newsletter-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-description {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--bg-primary);
  color: var(--accent-primary);
  border-radius: 12px;
  font-weight: 700;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--accent-primary);
  color: white;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--accent-primary);
}

/* Page Header */
.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  opacity: 0.05;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    height: 350px;
  }
  
  .course-content {
    grid-template-columns: 1fr;
  }
  
  .community-layout {
    grid-template-columns: 1fr;
  }
  
  .community-sidebar {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .courses-grid,
  .tutorials-grid,
  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .newsletter {
    padding: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
