/* ==========================================================================

   EduPortal Bundled Stylesheet

   Auto-compiled for static CDN and zero-dependency cloud deployments (Vercel)

   ========================================================================== */

:root {
  /* Brand Color Palette - Deep Blue & Crisp White */
  --color-primary-dark: #060F1E;
  --color-primary-navy: #0B192C;
  --color-primary-blue: #1E3E62;
  --color-accent-blue: #0066FF;
  --color-accent-glow: rgba(0, 102, 255, 0.15);
  --color-accent-light: #F0F7FF;
  --color-white: #FFFFFF;
  
  /* Neutral Grays */
  --color-bg-page: #F8FAFC;
  --color-card-bg: #FFFFFF;
  --color-text-main: #0F172A;
  --color-text-muted: #5B6B82;
  --color-border: #E2E8F0;
  --color-border-subtle: #EEF2F6;
  
  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 35px -10px rgba(11, 25, 44, 0.09), 0 10px 15px -5px rgba(11, 25, 44, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(11, 25, 44, 0.18);
  --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.25);
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1240px;
  --transition-fast: all 0.2s ease;
  --transition-default: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   CSS Reset & Base Standards
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Containers & Badges
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 102, 255, 0.08);
  color: var(--color-accent-blue);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 102, 255, 0.2);
  backdrop-filter: blur(8px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-blue);
  border-radius: 50%;
  position: relative;
}

.badge-pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.4);
  animation: pulse-ring 2s infinite ease-out;
}

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

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-default);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-navy) 0%, #152C4E 100%);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #152C4E 0%, var(--color-accent-blue) 100%);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary-navy);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  border-radius: var(--radius-xs);
}


/* ==========================================================================
   Header & Clean Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-primary-navy);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-navy) 0%, var(--color-accent-blue) 100%);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
  transition: var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: rotate(-5deg) scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent-blue);
  transition: width 0.25s ease;
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--color-primary-navy);
}

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

.nav-link.active {
  color: var(--color-primary-navy);
}

/* Nav Actions - Desktop ONLY */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Hide mobile-actions completely on desktop */
.nav-links .mobile-actions {
  display: none;
}

.mobile-menu-btn {
  display: none;
  padding: 0.6rem;
  color: var(--color-primary-navy);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: var(--color-accent-light);
}

/* ==========================================================================
   Hero Section with Gradient Glows & Polished Visuals
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(240, 247, 255, 0.8) 0%, rgba(255, 255, 255, 1) 70%);
  padding: 5.5rem 0 6rem 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Subtle decorative ambient circles */
.hero-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 25, 44, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-primary-navy);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #0052CC 0%, #0099FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Hero Visual / Premium Glassmorphic Student Dashboard Card
   ========================================================================== */
.hero-visual-container {
  position: relative;
  perspective: 1000px;
}

.hero-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 2rem;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 30px 60px -15px rgba(11, 25, 44, 0.18);
}

.hero-card-accent-bar {
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary-navy), var(--color-accent-blue));
  border-radius: 0 0 4px 4px;
}

.card-header-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.student-tag {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #EBF3FC 0%, #D8EBFF 100%);
  color: var(--color-accent-blue);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.student-info h4 {
  font-size: 1rem;
  color: var(--color-primary-navy);
  font-weight: 700;
}

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

.status-badge-live {
  background-color: #ECFDF5;
  color: #059669;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

/* Progress bar inside card */
.progress-block {
  background: #F8FAFC;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.65rem;
}

.progress-header .percentage {
  color: var(--color-accent-blue);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background-color: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, #1A4B8C, #0066FF);
  border-radius: var(--radius-full);
}

/* Interactive Mock Milestones */
.checklist-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background-color: var(--color-accent-light);
  border-color: rgba(0, 102, 255, 0.2);
}

.check-icon {
  color: #10B981;
  flex-shrink: 0;
}

.pending-icon {
  color: var(--color-accent-blue);
  flex-shrink: 0;
}

/* Floating Decorative Tag */
.floating-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--color-primary-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(11, 25, 44, 0.3);
  font-size: 0.825rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: float 4s ease-in-out infinite;
}

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

/* ==========================================================================
   Features Section (Clean & Attractive 3 Columns)
   ========================================================================== */
.features-section {
  padding: 7rem 0;
  background-color: #FFFFFF;
  position: relative;
}

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

.section-tag {
  color: var(--color-accent-blue);
  font-weight: 800;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.feature-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 20px 40px -10px rgba(11, 25, 44, 0.12);
}

.feature-card:hover::before {
  background: linear-gradient(90deg, var(--color-primary-navy), var(--color-accent-blue));
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: var(--transition-default);
  border: 1px solid rgba(0, 102, 255, 0.12);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-primary-navy);
  color: var(--color-white);
  border-color: var(--color-primary-navy);
  transform: scale(1.08);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.feature-text {
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.feature-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.feature-link:hover {
  color: var(--color-primary-navy);
  gap: 0.65rem;
}

/* ==========================================================================
   Footer Section (Deep Navy & Crisp Contrast)
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #94A3B8;
  padding: 5rem 0 2.5rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand .brand-logo {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  color: #94A3B8;
  font-size: 0.925rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748B;
}

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

.footer-legal-links a {
  color: #64748B;
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices (max 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-container {
    height: 68px;
  }

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

  /* Dropdown drawer menu on mobile */
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .nav-links.is-open {
    display: flex;
  }

  /* Hide desktop header action buttons on mobile */
  .nav-actions {
    display: none;
  }

  /* Show mobile-actions inside the mobile menu drawer */
  .nav-links .mobile-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }

  .hero-section {
    padding: 3.5rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .floating-badge {
    position: static;
    margin-top: 1rem;
    display: inline-flex;
    animation: none;
  }

  .features-section {
    padding: 4.5rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
