/* Home Page Styles for SOLace */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

.general-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative; 
  padding: 8rem 0 4rem;
  padding-left: 20px;
  padding-right: 20px;
}

.page-title {
  font-size: 42px;
}

.page-subtitle {
  font-size: 18px;
  color: #6c757d;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: #2a4a70;
}

ul {
  list-style-type: circle;
  list-style-position: inside;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a80 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a5a80 0%, #2a4a70 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.btn-secondary {
  background: white;
  border: 2px solid #4a6fa5;
  color: #4a6fa5;
}

.btn-secondary:hover {
  background: #4a6fa5;
  color: white;
  transform: translateY(-2px);
}

/* Header and Navigation */
header {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a80 100%);
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

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

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

.brand-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 120px;
  transition: opacity 0.3s ease;
}

.logo-img:hover {
  opacity: 0.9;
}

.brand-tagline {
  font-size: 0.85rem;
  opacity: 0.9;
}

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

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link-cta {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

  /* Hide desktop nav on mobile and transform into mobile menu */
@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Transform desktop nav into slide-in mobile menu */
  .nav-links {
    position: fixed;
    padding: 20px;
    top: 0;
    right: -300px; /* Start hidden on the right */
    width: 200px; /* Fixed width instead of full screen */
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  /* Show mobile nav when active */
  .nav-links.active {
    right: 0; /* Slide in from right */
  }

  /* Style mobile nav links */
  .nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 180px;
    text-align: center;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
  }

  .nav-link-cta {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    width: 160px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px);
  }


  /* Keep all your other existing mobile styles below (hero, features, etc.) */
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  
  .footer-link {
    text-align: center;
  }
} 

/* Hero Section */
.hero-section {
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 40%,
    rgba(255, 255, 255, 0.1) 70%,
    rgba(255, 255, 255, 0.0) 100%),
    url("../images/splash-cover2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0 4rem;
  margin-top: 70px;
  position: relative;
  min-height: 600px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 400px;
  z-index: 3;
  position: relative;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  z-index: 4;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #434e58;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-description {
  font-size: 1.1rem;
  color: #434e58;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

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

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

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a6fa5;
}

.hero-stat .stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.feature-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-title {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.feature-description {
  color: #6c757d;
  line-height: 1.6;
}

/* Categories Section */
.categories-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

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

.category-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a80 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-icon {
  margin-bottom: 1.5rem;
}

.category-img {
  width: 100px;
  height: 100px;
  border-radius: 0%;
}

.category-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.category-description {
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.test-count,
.difficulty {
  background: #f8f9fa;
  border-radius: 20px;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.category-btn {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a80 100%);
  border-radius: 8px;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.category-btn:hover {
  background: linear-gradient(135deg, #3a5a80 0%, #2a4a70 100%);
  transform: translateY(-2px);
}

/* Statistics Section */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a80 100%);
  color: white;
}

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

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.about-description {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-feature h3 {
  color: #4a6fa5;
  margin-bottom: 0.5rem;
}

.about-feature p {
  color: #6c757d;
  line-height: 1.5;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Call to Action Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #ecf0f1;
  line-height: 1.6;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #ecf0f1;
}

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

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

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a80 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #3a5a80 0%, #2a4a70 100%);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 950px) {

  .hero-section {
    background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 100%),
    url("../images/splash-cover2.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    position: relative;
    min-height: 600px;
  }

}

@media (max-width: 768px) {
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  
  .footer-link {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }

  .feature-card,
  .category-card {
    padding: 1.5rem;
  }
}

/* Directory Cards */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.directory-card {
  background: linear-gradient(135deg, #3a5a80 0%, #2a4a70 100%);
  box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1.3rem;
  color: #FFF;
  margin-bottom: 1rem;
}

.directory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}