/* ==========================================================================
   AIVODE - Code the Future. Empower with AI.
   Modern, Futuristic, Dark Premium UI Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #0a0f2c;
  --bg-dark-alt: #070a21;
  --bg-card: rgba(15, 23, 62, 0.65);
  --bg-card-hover: rgba(22, 33, 85, 0.8);
  --bg-glass: rgba(10, 15, 44, 0.7);

  /* Brand Gradients */
  --grad-cyan: #00e5ff;
  --grad-blue: #3b82f6;
  --grad-purple: #7c3aed;
  --grad-pink: #d946ef;

  --primary-gradient: linear-gradient(135deg, #00e5ff 0%, #3b82f6 35%, #7c3aed 70%, #d946ef 100%);
  --accent-gradient: linear-gradient(135deg, #00e5ff, #7c3aed);
  --glow-gradient: radial-gradient(circle at center, rgba(0, 229, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 70%);

  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Glow Effects */
  --glow-cyan: 0 0 25px rgba(0, 229, 255, 0.4);
  --glow-purple: 0 0 25px rgba(124, 58, 237, 0.4);
  --glow-pink: 0 0 25px rgba(217, 70, 239, 0.4);

  /* Border Tokens */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.3);

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --container-max: 1280px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Global Resets & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  background: var(--bg-dark);
  background-image: 
    radial-gradient(at 10% 10%, rgba(0, 229, 255, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(59, 130, 246, 0.04) 0px, transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
  position: relative;
}

::selection {
  background: rgba(0, 229, 255, 0.3);
  color: #ffffff;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
  outline: none;
}

a:focus, a:active {
  outline: none;
}

ul {
  list-style: none;
}

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

code, pre {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

/* Utility Classes */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #00e5ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
}

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

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--grad-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--grad-cyan);
  box-shadow: 0 0 8px var(--grad-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Section Header */
.section-header {
  max-width: 720px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  z-index: 1;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #d946ef 0%, #7c3aed 35%, #3b82f6 70%, #00e5ff 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 229, 255, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-glow {
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.15);
}

/* Background Canvas Particles */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Menu
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 70px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
  transition: transform var(--transition-normal);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--grad-cyan);
}

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

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(10, 15, 44, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1001;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transition: right var(--transition-normal);
  border-left: 1px solid var(--border-glass);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .nav-link {
  font-size: 1.2rem;
}

.mobile-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 170px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

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

/* Hero Interactive Visual Widget */
.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}

.hero-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.1);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.window-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: monospace;
}

.hero-code-block {
  background: rgba(7, 10, 33, 0.8);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.keyword { color: #d946ef; font-weight: 600; }
.function { color: #00e5ff; }
.string { color: #38ef7d; }
.comment { color: var(--text-dim); italic: true; }
.number { color: #ffbd2e; }

/* Dynamic Floating Floating Glow Pills */
.floating-pill {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 62, 0.85);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), var(--glow-cyan);
  animation: float 4s ease-in-out infinite;
}

.pill-1 {
  top: -20px; right: -20px;
  animation-delay: 0s;
}

.pill-2 {
  bottom: -20px; left: -20px;
  animation-delay: 2s;
}

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

/* --------------------------------------------------------------------------
   5. Interactive Learn Tracks Section
   -------------------------------------------------------------------------- */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.track-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.track-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grad-cyan);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transition: transform var(--transition-normal);
}

.track-card:hover .track-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-gradient);
  color: #ffffff;
}

.track-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.track-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.track-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.topic-tag {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.track-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grad-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.track-card:hover .track-link {
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   6. Courses Catalog Section
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.course-card {
  display: flex;
  flex-direction: column;
}

.course-header {
  position: relative;
  height: 180px;
  background: var(--bg-dark-alt);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-banner-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.2), transparent 70%);
  font-size: 3.5rem;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-banner-graphic {
  transform: scale(1.1);
}

.course-level {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(10, 15, 44, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grad-cyan);
}

.course-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.course-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--grad-cyan);
}

/* --------------------------------------------------------------------------
   7. Notes & Code Sandbox Hub
   -------------------------------------------------------------------------- */
.notes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.notes-search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.input-search {
  flex-grow: 1;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-search:focus {
  border-color: var(--grad-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 62, 0.5);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-item:hover, .note-item.active {
  background: rgba(22, 33, 85, 0.8);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(5px);
}

.note-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.note-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Live Code Viewer Component */
.code-viewer-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-dark-alt);
}

.code-viewer-header {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 62, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.code-lang-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--grad-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #ffffff;
  border-color: var(--grad-cyan);
}

.code-content-wrapper {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   8. AI Learning Studio (Interactive Assistant Sandbox)
   -------------------------------------------------------------------------- */
.ai-sandbox {
  background: linear-gradient(135deg, rgba(15, 23, 62, 0.9), rgba(7, 10, 33, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 229, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.ai-sandbox::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.ai-chat-window {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #e2e8f0;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.ai-prompt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.preset-chip {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: #ffffff;
}

.ai-input-form {
  display: flex;
  gap: 0.75rem;
}

.ai-input {
  flex-grow: 1;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(10, 15, 44, 0.9);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.ai-input:focus {
  border-color: var(--grad-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* --------------------------------------------------------------------------
   9. About Us Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 62, 0.4);
  border: 1px solid var(--border-glass);
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--grad-cyan);
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--primary-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 0.25rem;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad-cyan);
  box-shadow: 0 0 10px var(--grad-cyan);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--grad-cyan);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   10. Contact & Newsletter Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grad-cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-card {
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(10, 15, 44, 0.8);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--grad-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* --------------------------------------------------------------------------
   11. Social Grid & Footer
   -------------------------------------------------------------------------- */
.social-section {
  padding: 60px 0;
  background: rgba(7, 10, 33, 0.6);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
}

.social-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 62, 0.5);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-card i, .social-card svg {
  font-size: 1.75rem;
  transition: transform var(--transition-fast);
}

.social-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.social-card:hover {
  background: rgba(22, 33, 85, 0.9);
  border-color: var(--grad-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 255, 0.3);
}

.social-card:hover span {
  color: #ffffff;
}

/* Specific Social Colors on Hover */
.social-card.yt:hover { border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
.social-card.ig:hover { border-color: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.4); }
.social-card.li:hover { border-color: #0077b5; box-shadow: 0 0 15px rgba(0, 119, 181, 0.4); }
.social-card.tg:hover { border-color: #0088cc; box-shadow: 0 0 15px rgba(0, 136, 204, 0.4); }
.social-card.dc:hover { border-color: #5865f2; box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); }
.social-card.x:hover  { border-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.social-card.fb:hover { border-color: #1877f2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.4); }
.social-card.wa:hover { border-color: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }

.footer {
  padding-top: 80px;
  padding-bottom: 40px;
  background: var(--bg-dark-alt);
  position: relative;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

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

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

.footer-links a:hover {
  color: var(--grad-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* --------------------------------------------------------------------------
   12. Toast Notification System & Modal Overlay
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 62, 0.95);
  border: 1px solid var(--grad-cyan);
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--glow-cyan);
  animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries (Mobile, Tablet, Laptop, Desktop & Ultra-wide)
   -------------------------------------------------------------------------- */

/* 1. Large Laptops & Monitors (1025px - 1440px) */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* 2. Standard Laptops & Small Desktops (1025px - 1200px) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 1.5rem;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .about-grid {
    gap: 2.5rem;
  }
  .contact-grid {
    gap: 2rem;
  }
}

/* 3. Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .section-padding {
    padding: 80px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    max-width: 680px;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    max-width: 600px;
  }
  .hero-visual {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
  }
  .floating-pill.pill-1 {
    right: 0;
    top: -20px;
  }
  .floating-pill.pill-2 {
    left: 0;
    bottom: -20px;
  }
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .notes-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 4. Portrait Tablets & Large Smartphones (577px - 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .section-padding {
    padding: 70px 0;
  }
  .navbar {
    height: 70px;
  }
  .navbar.scrolled {
    height: 65px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .stat-item h3 {
    font-size: 1.6rem;
  }
  .stat-item p {
    font-size: 0.8rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .section-desc {
    font-size: 1rem;
  }
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .about-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

/* 5. Mobile Smartphones (320px - 576px) */
@media (max-width: 576px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 1rem;
  }
  .section-padding {
    padding: 55px 0;
  }
  .navbar-container {
    padding: 0 0.25rem;
  }
  .brand-name {
    font-size: 1.3rem;
  }
  .brand-logo img {
    height: 34px;
  }
  .nav-actions .btn {
    display: none;
  }
  .hero {
    padding-top: 115px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .hero-cta {
    width: 100%;
    flex-direction: column;
    gap: 0.85rem;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1.5rem;
  }
  .stat-item h3 {
    font-size: 1.35rem;
  }
  .stat-item p {
    font-size: 0.72rem;
  }
  .hero-card {
    padding: 1.15rem;
  }
  .hero-code-block {
    padding: 0.85rem;
    font-size: 0.78rem;
  }
  .floating-pill {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  .pill-1 {
    top: -15px;
    right: 0;
  }
  .pill-2 {
    bottom: -15px;
    left: 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .tracks-grid {
    grid-template-columns: 1fr;
  }
  .track-card {
    padding: 1.5rem;
  }
  .filter-tabs {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-body {
    padding: 1.25rem;
  }
  .notes-search-bar {
    margin-bottom: 1.25rem;
  }
  .note-item {
    padding: 1rem;
  }
  .note-info h4 {
    font-size: 0.95rem;
  }
  .code-content-wrapper {
    padding: 1rem;
  }
  .ai-sandbox {
    padding: 1.25rem;
  }
  .ai-input-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ai-input-form .btn {
    width: 100%;
  }
  .preset-chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .feature-box {
    padding: 1.15rem;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-item::before {
    left: -1.5rem;
  }
  .contact-info-card, .contact-form-card {
    padding: 1.35rem;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .modal-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  .toast {
    font-size: 0.82rem;
    padding: 0.75rem 1.1rem;
  }
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* 6. Ultra-Small Screen Optimization (<= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pill-1, .pill-2 {
    display: none;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

