/* 
  EduAgent CSS
  Designed to support Light and Dark themes via CSS variables.
*/

:root {
  /* Light Theme Variables */
  --bg-main: #ffffff;
  --bg-alt: #fafafa;
  --bg-card: #ffffff;
  --bg-edu-inner: #f1f5f9;
  --bg-chart: #f8fafc;
  --bg-footer: #f8fafc;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --color-highlight: #3b82f6; /* Blue for light theme */
  --color-highlight-light: #eff6ff;
  --color-highlight-hover: #2563eb;
  
  --color-border: #e2e8f0;
  
  --color-red: #ef4444;
  --color-red-light: #fef2f2;
}

[data-theme="dark"] {
  /* Dark Theme Variables matching Screen 1.png */
  --bg-main: #050b14;
  --bg-alt: #0a1128;
  --bg-card: #0f172a;
  --bg-edu-inner: #0f1c3f;
  --bg-chart: #1e293b;
  --bg-footer: #0a1128;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --color-highlight: #00e5ff; /* Cyan/Teal for dark theme */
  --color-highlight-light: #00333d;
  --color-highlight-hover: #00b3cc;
  
  --color-border: #1e293b;
  
  --color-red: #ef4444;
  --color-red-light: #450a0a;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; letter-spacing: -0.5px; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-highlight);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.text-white { color: white !important; }

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.highlight {
  color: var(--color-highlight);
}

.highlight-bg {
  background-color: var(--color-highlight) !important;
}

.highlight-bg-light {
  background-color: var(--color-highlight-light);
}

.highlight-color {
  color: var(--color-highlight) !important;
}

.highlight-border {
  border: 1px solid var(--color-highlight) !important;
}

.bg-alt { background-color: var(--bg-alt); }
.bg-footer { background-color: var(--bg-footer); }
.bg-chart { background-color: var(--bg-chart); }
.bg-edu-inner { background-color: var(--bg-edu-inner); }

.section-padding {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--color-highlight);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-highlight-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .btn-primary {
  color: #000; /* dark text on cyan btn */
}

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

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--color-highlight);
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background-color: rgba(var(--bg-main), 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
}

[data-theme="dark"] .navbar {
  background-color: rgba(5, 11, 20, 0.9);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.5rem;
}

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

.nav-links th {
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links .active {
  color: var(--color-highlight);
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background-color: var(--bg-alt);
  color: var(--color-highlight);
}

/* Dark mode hides moon, shows sun */
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
/* Light mode hides sun, shows moon */
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }


/* Hero Section */
.hero {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: var(--color-highlight-light);
  color: var(--color-highlight);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

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

/* Dashboard Mockup (CSS Art) */
.dashboard-mockup {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

[data-theme="dark"] .dashboard-mockup {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

.dash-h-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

[data-theme="dark"] .dash-icon {
  color: #000;
}

.dash-title {
  display: flex;
  flex-direction: column;
}

.dash-title strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.dash-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-actions .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  margin-left: 4px;
}

.dash-body {
  padding: 2rem 1.5rem;
}

.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.d-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.d-card:hover, .d-card.active {
  border-color: var(--color-highlight);
  background-color: var(--color-highlight-light);
}

.d-icon {
  font-size: 1.5rem;
  background-color: var(--bg-alt);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-card.bg-highlight {
  background-color: var(--color-highlight-light);
  border-color: var(--color-highlight);
}

.dash-progress {
  background-color: var(--bg-alt);
  padding: 1rem;
  border-radius: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 6px;
  background-color: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}


/* Sections Common */
section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Bottlenecks */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

[data-theme="dark"] .hover-lift:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Benefits (Playful Interface) */
.benefits-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.b-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

.b-card .icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
}

/* Comparison */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.compare-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
}

.usual {
  opacity: 0.8;
}

.mock-bars {
  margin: 2rem 0;
}

.bar {
  height: 12px;
  background-color: var(--color-border);
  border-radius: 6px;
  margin: 0 auto 0.5rem;
}

.w-70 { width: 70%; }
.w-50 { width: 50%; }
.w-100 { width: 100%; margin-top: 1rem;}

.mock-box {
  background-color: var(--bg-alt);
  border: 1px dashed var(--text-muted);
  padding: 2rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.eduagent-header h4 {
  color: var(--color-highlight);
}

.edu-mock {
  margin-top: 2rem;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--color-highlight-light);
}

.edu-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.circle-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

[data-theme="dark"] .circle-check { color: #000 !important; }

.edu-line {
  height: 6px;
  flex: 1;
  border-radius: 3px;
}

.edu-blocks {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.e-block {
  height: 24px;
  flex: 1;
  background-color: var(--color-highlight-light);
  border-radius: 4px;
}

.edu-footer {
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Banner */
.dark-banner {
  background-color: #0b1120;
  color: white;
}

.dark-banner h2 {
  color: white;
  font-size: 4rem;
}

.dark-banner p {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.big-stat {
  margin-top: 2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.big-stat .number {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.big-stat .text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 150px;
}

.stats-chart {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.text-xs { font-size: 0.75rem; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 180px;
  gap: 1rem;
  margin-bottom: 2rem;
}

.c-bar {
  flex: 1;
  background-color: var(--color-border);
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-out;
}

.h-1 { height: 20%; }
.h-2 { height: 40%; }
.h-3 { height: 60%; }
.h-4 { height: 95%; }

.chart-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Footer */
.footer {
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

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

.footer-brand p {
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  font-size: 1.25rem;
  opacity: 0.7;
}

.socials a:hover {
  opacity: 1;
}

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

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-container, .benefits-container, .stats-container, .compare-container {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
}
