/*
 * File: landing_page.css
 * Description: Finalized styles for the Visalytics landing page.
 * Version: 2.5 - New header, hero, and assessment section layout.
 */

/* Base Styles & Variables */
:root {
  /* Color Theme */
  --primary-color: #6a0dad;       /* Purple */
  --secondary-color: #e09400;  
  --accent-color: #d39986;        
  --text-color: #333333;
  --light-text: #f8f9fa;
  --muted-text: #6c757d;
  --background-color: #ffffff;    /* White */
  --light-bg: #f8f9fa;
  --dark-bg: #2b2b2b;
  --border-color: #dee2e6;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  
  /* Spacing & Layout */
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.hero-content-left h1 {
  margin-top: 2.5rem; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: var(--font-secondary);
}

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

.btn-primary:hover {
  background-color: #5a0a9a;
  border-color: #5a0a9a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: #e5593d;
  border-color: #e5593d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Header */
/* HEADER WRAPPER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 1rem 0;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* SCROLL EFFECT */
.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* HEADER INNER FLEX CONTAINER */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT: LOGO */
.site-logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

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

/* CENTER: NAVIGATION */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.main-nav a:hover::after {
  width: 100%;
}

/* RIGHT: ACTION BUTTONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* LOGIN BUTTON */
.btn-login {
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.1;
  transition: left 0.3s ease;
  border-radius: 50px;
}

.btn-login:hover::before {
  left: 0;
}

/* GET STARTED BUTTON */
.btn-get-started {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.btn-get-started:hover {
  background-color: var(--primary-color);
}

/* MOBILE NAV TOGGLE */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .header-container {
    justify-content: space-between;
  }
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4d0a8a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-container-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero-content-left {
  flex: 1;
  max-width: 600px;
}

.hero-content-left h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-content-left p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-content-right {
  flex: 1;
  max-width: 500px;
}

.try-free-assessment-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.assessment-content h2 {
  color: white;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.assessment-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.assessment-actions {
    margin-top: 2rem;
}

.btn-full-width {
  width: 100%;
}


/* Partners Section */
.partners-section {
  padding: 3rem 0;
  background-color: var(--light-bg);
}

.partners-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--muted-text);
  font-weight: 500;
}

.partner-scroll-wrapper {
  overflow: hidden;
  position: relative;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--muted-text);
}

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

.feature-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  position: relative;
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-size: 1.5rem;
  padding-top: 40px;
}

.step h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
}

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

.pricing-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: translateY(-20px);
}

.pricing-card.popular:hover {
  transform: translateY(-30px);
}

.badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pricing-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.features li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

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

.testimonial-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.glide__arrow {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
  transition: var(--transition);
}

.glide__arrow:hover {
  background-color: var(--secondary-color);
}

.glide__arrow--left {
  left: -20px;
}

.glide__arrow--right {
  right: -20px;
}

/* Final CTA Section */
.final-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4d0a8a 100%);
  color: white;
  text-align: center;
}

.final-cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.final-cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Footer */
.page-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo-section {
  max-width: 300px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-logo-section p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-newsletter input {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: none;
  margin-bottom: 0.5rem;
}

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

.payment-currency-group {
  display: none !important;
}

/* Modal Styles */

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 0.75rem;
  overflow-y: auto;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 840px; /* Reduced from 960px */
  padding: 1.25rem 1.5rem; /* Reduced padding */
  position: relative;
  box-shadow: var(--box-shadow);
  transform: translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  text-align: center;
  font-size: 1.5rem; /* Reduced */
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem; /* Reduced */
}

.close-modal-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--muted-text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal-btn:hover {
  color: var(--primary-color);
}

/* Form Styles */
.form-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem; /* Tighter gap */
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-weight: 500;
  color: var(--muted-text);
  font-size: 0.8rem; /* Slightly smaller */
}

.form-group input,
.form-group select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.payment-placeholder {
  background: linear-gradient(135deg, #f8f9fc, #eef2f7);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #475569;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-in-out;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: #4f46e5;
  animation: bounce 1.5s infinite;
}

.payment-placeholder h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.payment-placeholder p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #64748b;
}

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

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

#registerSubmit {
  background-color: #6a0dad; /* deep purple */
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  width: 240px; /* You can adjust to 200px, 100%, etc. */
  max-width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin: 1.5rem auto 0 auto;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#registerSubmit:hover {
  background-color: #5a0bbd;
  transform: translateY(-1px);
}

#registerSubmit:active {
  background-color: #4b099c;
  transform: translateY(0);
}

#registerSubmit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

#candidateFields .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

#consultantUploads,
.payment-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem; /* Adjusted padding */
  margin-top: 1rem; /* Adjusted margin */
}

.consultant-info {
  font-style: italic;
  font-size: 0.85rem; /* Adjusted font size */
  margin-bottom: 0.8rem; /* Adjusted margin */
}

#card-element {
  padding: 0.6rem 0.8rem; /* Adjusted padding */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#card-element.StripeElement--focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

#card-errors {
  color: var(--secondary-color);
  font-size: 0.8rem; /* Adjusted font size */
  margin-top: 0.4rem; /* Adjusted margin */
}

/* Submit Button */
.btn-full-width {
  width: 100%;
  padding: 0.85rem; /* Adjusted padding */
  font-size: 1rem; /* Adjusted font size */
  font-weight: 600;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn-full-width:hover {
  background-color: var(--primary-color);
}

.modal-login-link {
  text-align: center;
  margin-top: 0.8rem; /* Adjusted margin */
}

.modal-login-link a {
  color: var(--primary-color);
  font-weight: 500;
}

.success-icon {
  text-align: center;
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fadeInUp {
  transform: translateY(20px);
}

.fadeInUp.is-visible {
  transform: translateY(0);
}

.slideInRight {
  transform: translateX(50px);
}

.slideInRight.is-visible {
  transform: translateX(0);
}

.scaleUp {
  transform: scale(0.95);
}

.scaleUp.is-visible {
  transform: scale(1);
}

@media (max-width: 768px) {
  #registerModal {
    width: 96%;
    max-height: 90vh;
    padding: 1rem;
    overflow-y: auto;
    border-radius: 10px;
    background-color: #fff;
  }

  #registerModal h2 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  #registerModal .form-two-column {
    display: block;
  }

  #registerModal .form-column {
    width: 100%;
    padding: 0;
  }

  #registerModal .form-group,
  #registerModal .form-grid .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    width: 100%;
  }

  #registerModal label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  #registerModal input,
  #registerModal select,
  #registerModal textarea {
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  #registerModal input[type="file"] {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }

  #registerModal #card-element {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
  }

  #registerModal .form-grid {
    display: block;
  }

  #registerModal button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
    font-size: 0.95rem;
    padding: 0.6rem;
    border-radius: 4px;
  }

  #registerModal .modal-login-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
  }

  .consultant-info {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: #444;
  }

  .section-header {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
  }

  .close-modal-btn {
    font-size: 1.4rem;
    top: 0.5rem;
    right: 0.75rem;
  }
}

@media (max-width: 768px) {
  /* Base Modernization */
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
  }
  
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  h1, h2, h3 {
    text-align: center;
    letter-spacing: -0.02em;
  }
  
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  /* Modern Header Fix */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  /* Compact Hero Section */
  .hero-section {
    padding-top: 5.5rem; /* Adjusted to not overlap header */
    padding-bottom: 2.5rem;
    min-height: auto;
    background: linear-gradient(145deg, #6a0dad 0%, #4d0a8a 100%);
  }
  
  .hero-container-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-content-left {
    text-align: center;
    padding: 0;
  }
  
  .hero-content-left h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }
  
  .hero-content-left p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .btn-login,
  .btn-get-started {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;  /* Prevents text from wrapping */
    border-radius: 6px;
  }

  .btn-get-started {
    min-width: unset;
  }
  
  .try-free-assessment-container {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .assessment-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  /* Modern Centered Sections */
  section {
    padding: 2.5rem 0;
    text-align: center;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    font-size: 1.05rem;
  }
  
  /* Compact Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .feature-item {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(106, 13, 173, 0.1);
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.12);
  }
  
  .feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: rgba(106, 13, 173, 0.1);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
  }
  
  /* Modern Steps */
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .step {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
    margin: 0.5rem 0;
    color: var(--primary-color);
    opacity: 0.5;
  }
  
  /* Sleek Pricing Cards */
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pricing-card {
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(106, 13, 173, 0.1);
  }
  
  .pricing-card.popular {
    transform: scale(1.02);
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(106, 13, 173, 0.15);
  }
  
  .badge {
    right: 1.5rem;
    top: -12px;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
  }
  
  /* Modern Testimonials */
  .testimonial-item {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(106, 13, 173, 0.1);
    text-align: center;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  /* Footer Modernization */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-logo-section {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Mobile Navigation */
  .mobile-nav-toggle {
    display: block;
    background: var(--primary-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .main-nav a:hover {
    background: rgba(106, 13, 173, 0.05);
    padding-left: 1.25rem;
  }
}

/* Small Mobile Optimization (max-width: 480px) */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  
  .hero-content-left h1 {
    font-size: 1.7rem;
  }
  
  .btn {
    max-width: 100%;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .features-grid,
  .steps-container,
  .pricing-cards {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    min-height: auto;
    background: linear-gradient(145deg, #6a0dad 0%, #4d0a8a 100%);
  }

  .hero-container-flex {
    flex-direction: column;
    gap: 2.25rem;
    align-items: center;
  }

  .hero-content-left {
    text-align: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-content-left h1 {
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: #fff;
  }

  .hero-content-left p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
    color: #f0f0f0;
    opacity: 0.9;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero-cta-group .btn {
    flex: 1 1 45%;
    max-width: 150px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 8px;
    text-align: center;
  }

  .hero-content-right {
    width: 100%;
    max-width: 320px;
  }

  .try-free-assessment-container {
    padding: 1rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
  }

  .assessment-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    line-height: 1.4;
    color: #fff;
  }

  .assessment-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: #f1f1f1;
    opacity: 0.85;
  }

  .assessment-content .btn-full-width {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    width: 100%;
    max-width: 220px;
  }
}
