/* Adaptly - Adaptive Learning Platform Styles */

:root {
  /* Brand Colors */
  --primary-blue: #2563EB;
  --secondary-purple: #7C3AED;
  --primary-text: #1F2937;
  --secondary-text: #6B7280;
  --background-light: #F9FAFB;
  --white: #FFFFFF;

  /* Additional Colors */
  --primary-blue-hover: #1D4ED8;
  --secondary-purple-hover: #6D28D9;
  --border-color: #E5E7EB;
  --success-green: #10B981;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--primary-text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
  overflow-x: hidden; /* Prevent horizontal scroll on html element too */
}

/* Navigation */
nav {
  background-color: var(--white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

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

.nav-links a {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-cta {
  background-color: var(--primary-blue);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--primary-blue-hover);
  color: white !important;
}

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

/* Hero Section */
.hero {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, #F9FAFB 0%, #EFF6FF 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 0.5rem 0;
}

/* Centered hero layout (for home page only) */
.hero-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  text-align: center;
}

.hero-content-centered .hero-logo {
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text .highlight {
  color: var(--primary-blue); /* Fallback color */
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ensure better visibility on mobile */
@supports not (-webkit-background-clip: text) {
  .hero-text .highlight {
    color: var(--primary-blue);
  }
}

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

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

.hero-content-centered .hero-buttons {
  justify-content: center;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

.hero-visual {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.hero-visual-content {
  color: white;
  text-align: center;
}

/* Features Section */
.features {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--secondary-text);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-icon.blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
}

.feature-icon.purple {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--secondary-purple);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--secondary-text);
  line-height: 1.7;
}

/* Stats Section */
.stats {
  background-color: var(--primary-blue);
  padding: 4rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

.cta-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background-color: var(--primary-text);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Content Sections */
.content-section {
  padding: 5rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.content-image {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: 12px;
  padding: 3rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1.5rem;
}

.content-text p {
  font-size: 1.125rem;
  color: var(--secondary-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

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

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
}

.team-member h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--secondary-text);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--secondary-text);
}

.blog-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

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

.blog-card .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Partnership Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 0.5rem;
}

.benefit-text p {
  color: var(--secondary-text);
  font-size: 0.938rem;
}

/* Partnership Form */
.partnership-form {
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: 12px;
  max-width: 600px;
  margin: 3rem auto 0;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

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

/* Section Separators */
section {
  position: relative;
}

section:not(:last-of-type)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Problem Section */
.problem-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.problem-card .feature-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.problem-card-content {
  flex: 1;
}

.problem-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--secondary-text);
  line-height: 1.7;
}

/* Solution Section */
.solution-section {
  padding: 5rem 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.solution-card {
  background-color: var(--background-light);
  padding: 2.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.solution-card .feature-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.solution-card-content {
  flex: 1;
}

.solution-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--secondary-text);
  line-height: 1.7;
}

.solution-footer {
  text-align: center;
  margin-top: 3rem;
}

.solution-footer p {
  color: var(--secondary-text);
  font-size: 1.125rem;
  font-style: italic;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.step-card {
  background-color: var(--white);
  padding: 2.5rem 2rem 2rem;
  border-radius: 12px;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  min-width: 70px;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-card .feature-icon {
  flex-shrink: 0;
  margin: 3rem 0 0 0;
}

.step-card-content {
  flex: 1;
  margin-top: 3rem;
}

.step-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--secondary-text);
  line-height: 1.7;
}

.approach-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--primary-blue);
  border-radius: 8px;
}

.approach-note p {
  color: var(--primary-text);
  font-size: 1rem;
  margin: 0;
}

/* Founder Section */
.founder-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.founder-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.founder-text {
  color: var(--primary-text);
}

.founder-intro {
  font-size: 1.125rem;
  color: var(--primary-text);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.founder-quote {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
}

.founder-quote > p:first-of-type {
  font-family: 'Brush Script MT', 'Segoe Script', 'Lucida Handwriting', cursive;
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.founder-quote-intro {
  font-family: 'Brush Script MT', 'Segoe Script', 'Lucida Handwriting', cursive;
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--primary-text);
  margin-bottom: 1.5rem !important;
  font-style: italic;
}

.founder-quote p {
  margin-bottom: 1rem;
  color: var(--primary-text);
  line-height: 1.7;
}

.founder-quote ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: var(--secondary-text);
}

.founder-quote li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.founder-statement {
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.5rem !important;
}

.text-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

.founder-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Stage Section */
.stage-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #F9FAFB 100%);
}

.stage-content {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
}

.stage-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  border: 3px solid white;
  outline: 2px solid var(--primary-blue);
}

.stage-description {
  font-size: 1.25rem;
  color: var(--primary-text);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.stage-benefits {
  text-align: left;
  max-width: 500px;
  margin: 2rem auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
}

.stage-benefits p {
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.checkmark-list {
  list-style: none;
  padding: 0;
}

.checkmark-list li {
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-text);
  position: relative;
  line-height: 1.6;
}

.checkmark-list li:before {
  content: "✓";
  color: var(--success-green);
  font-weight: bold;
  font-size: 1.25rem;
  position: absolute;
  left: 0;
}

.stage-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Final CTA Section */
.final-cta-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.cta-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.cta-choice {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cta-choice:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-choice h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.cta-choice p {
  font-size: 1.125rem;
  color: var(--secondary-text);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links a {
    padding: 0.625rem 1rem;
    background-color: var(--background-light);
    border-radius: 8px;
    min-width: 90px;
    text-align: center;
  }

  .nav-cta {
    min-width: 120px !important;
  }

  /* Make highlighted text more visible on mobile with solid color */
  .hero-text .highlight {
    -webkit-text-fill-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 800;
  }

  .hero-content,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content-centered .hero-logo img {
    max-width: 200px !important;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features-grid,
  .blog-grid,
  .problem-grid,
  .solution-grid,
  .steps-grid,
  .cta-choices {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .content-text h2 {
    font-size: 2rem;
  }

  .founder-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Fix about page founder section specifically */
  .founder-section .founder-content {
    display: flex !important;
    flex-direction: column !important;
  }

  .founder-section .founder-text-left,
  .founder-section .founder-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Improve personal note section on mobile */
  .founder-section .founder-right > div {
    padding: 2rem 1.5rem !important;
    max-width: 100% !important;
  }

  .founder-section .founder-right ul {
    padding-left: 1.25rem !important;
  }

  .founder-section .founder-right li {
    margin-bottom: 0.75rem !important;
  }

  .stage-ctas {
    flex-direction: column;
  }

  .problem-card,
  .solution-card,
  .step-card {
    flex-direction: column;
    text-align: center;
  }

  .problem-card .feature-icon,
  .solution-card .feature-icon {
    margin: 0 auto 1rem;
  }

  .step-card .feature-icon {
    margin: 3rem auto 0;
  }

  .step-card-content {
    text-align: center;
  }

  .cta-choices {
    gap: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.9375rem;
    padding: 0.75rem 0.875rem;
    min-width: 85px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }

  /* Ensure no horizontal overflow on very small screens */
  .container {
    padding: 0 0.75rem;
  }

  .feature-card,
  .problem-card,
  .solution-card,
  .step-card,
  .blog-card {
    padding: 1.5rem;
  }

  /* Make founder section text more readable on small screens */
  .founder-section .founder-right > div {
    padding: 1.5rem 1rem !important;
  }

  .founder-section .founder-right p,
  .founder-section .founder-right ul {
    font-size: 1.125rem !important;
  }

  /* Reduce heading sizes on small screens */
  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero-text h1 {
    font-size: 1.875rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  height: 85vh;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  padding: 1.5rem 2rem;
  border-radius: 16px 16px 0 0;
  position: relative;
  color: white;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: white;
  padding-right: 2rem;
}

.modal-header p {
  margin: 0.5rem 0 0 0;
  opacity: 0.95;
  font-size: 1rem;
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 0;
  background: var(--white);
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0 0 16px 16px;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    height: 90vh;
    max-height: none;
  }

  .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
    padding-right: 2.5rem;
  }

  .modal-header p {
    font-size: 0.9rem;
    padding-right: 2.5rem;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    top: 1rem;
    right: 1rem;
  }
}