/* =========================================
   CSS Variables (Derived from App Colors)
   ========================================= */
:root {
  --primary: #495eda;
  --primary-dark: #2f44b5;
  --primary-light: #7084e6;
  --primary-extra-light: #d6dcfa;

  --secondary: #34c759;
  --secondary-dark: #28a745;
  --secondary-light: #70e39c;

  --black: #000000;
  --dark-grey: #4a4a4a;
  --grey: #9e9e9e;
  --light-grey: #f1f1f1;
  --white: #ffffff;

  --background: #f9fafb;
  --card: #ffffff;

  --text-primary: #1c1c1c;
  --text-secondary: #6e6e6e;

  --font-family: "Inter", sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-dark);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(73, 94, 218, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--primary-extra-light);
  color: var(--primary-dark);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

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

/* =========================================
   Common Section Styles
   ========================================= */
section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin-bottom: 64px;
}

.section-header h3 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =========================================
   Cards
   ========================================= */
.card {
  background-color: var(--card);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--primary-extra-light);
  border-radius: 50%;
}

.student-icon {
  background-color: #e3f2fd;
}
.mentor-icon {
  background-color: #e8f5e9;
}
.school-icon {
  background-color: #fff3e0;
}
.admin-icon {
  background-color: #f3e5f5;
}

/* =========================================
   Features Section
   ========================================= */
.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

/* =========================================
   How It Works (Timeline)
   ========================================= */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Connect the timeline steps on desktop */
@media (min-width: 900px) {
  .timeline::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: var(--primary-extra-light);
    z-index: 0;
  }
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  background-color: var(--card);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.step-number {
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 8px var(--white);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-container h2 {
  color: var(--white);
  font-size: 2.5rem;
}

.cta-container p {
  color: var(--primary-extra-light);
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-actions .btn-primary {
  background-color: var(--secondary);
  color: var(--white);
}
.cta-actions .btn-primary:hover {
  background-color: var(--secondary-dark);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--black);
  color: var(--grey);
  padding: 64px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--grey);
  max-width: 300px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  color: var(--grey);
  margin-bottom: 12px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--dark-grey);
  font-size: 0.875rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide nav links on mobile for simplicity, could add a hamburger menu if requested */
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    padding: 0 16px;
  }

  .hero-graphic {
    max-width: 320px;
    margin: 0 auto;
    animation: none; /* Disable floating on mobile to save battery and space */
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 576px) {
  .grid-4,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

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

  .cta-actions {
    flex-direction: column;
  }
}
