/* CarPal Administrator Landing Page CSS
 * Incorporating CarPal brand identity with vibrant yellow (#FFD700),
 * deep black (#000000), charcoal gray (#2D2D2D), and white (#FFFFFF)
 */

/* Base Styles & Reset */
:root {
    --primary-yellow: #FFD700;
    --primary-black: #000000;
    --secondary-gray: #2D2D2D;
    --white: #FFFFFF;
    --light-gray: #f5f5f5;
    --medium-gray: #a0a0a0;
    --transition-speed: 0.3s;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--secondary-gray);
    background-color: var(--white);
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-black);
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  a {
    text-decoration: none;
    color: var(--secondary-gray);
    transition: color var(--transition-speed);
  }
  
  a:hover {
    color: var(--primary-yellow);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  section {
    padding: 5rem 1.5rem;
  }
  
  .button {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid var(--primary-yellow);
  }
  
  .button:hover {
    background-color: transparent;
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Header Styles */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed);
  }
  
  .logo img {
    height: 50px;
    width: auto;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-menu a {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    position: relative;
  }
  
  .nav-menu a:not(.button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: width var(--transition-speed);
  }
  
  .nav-menu a:not(.button):hover::after {
    width: 100%;
  }
  
  /* Hero Section */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('C:/Users/nderu/Documents/Development/Product/CarPal/Technical Writings/Images/Website Images/22.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
  }
  
  .hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
  }
  
  .hero img {
    margin-top: 3rem;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 80%;
  }
  
  /* Features Section */
  .features {
    text-align: center;
    background-color: var(--light-gray);
  }
  
  .features h2 {
    margin-bottom: 3rem;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
  }
  
  .feature:hover {
    transform: translateY(-10px);
  }
  
  .feature i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
  }
  
  .feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* CTA Section */
  .cta {
    text-align: center;
    background-color: var(--secondary-gray);
    color: var(--white);
  }
  
  .cta h2 {
    color: var(--white);
    margin-bottom: 2rem;
  }
  
  .cta .button {
    margin: 0 0.5rem 1rem;
  }
  
  /* About Section */
  .about {
    text-align: center;
  }
  
  .about h2 {
    margin-bottom: 3rem;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .mission, .vision, .team, .why-choose {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    text-align: left;
    transition: box-shadow var(--transition-speed);
  }
  
  .mission:hover, .vision:hover, .team:hover, .why-choose:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .about-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-yellow);
  }
  
  /* FAQ Section */
  .faq {
    background-color: var(--light-gray);
    text-align: center;
  }
  
  .faq h2 {
    margin-bottom: 2rem;
  }
  
  .faq-search {
    margin-bottom: 3rem;
  }
  
  .faq-search input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
  }
  
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
  }
  
  .faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
  }
  
  .faq-item:hover {
    transform: translateY(-5px);
  }
  
  .faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .faq-item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-yellow);
  }
  
  .faq-more {
    margin-top: 2rem;
  }
  
  /* Footer */
  footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 4rem 1.5rem 1.5rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
  }
  
  .footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-gray);
    color: var(--white);
    transition: all var(--transition-speed);
  }
  
  .social-icons a:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    transform: translateY(-3px);
  }
  
  .legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .legal-links a {
    color: var(--white);
    transition: color var(--transition-speed);
  }
  
  .legal-links a:hover {
    color: var(--primary-yellow);
  }
  
  .copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
  }
  
  .copyright a {
    color: var(--primary-yellow);
    margin-left: 0.5rem;
  }
  
  .dark-mode-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
  }
  
  .dark-mode-toggle:hover {
    color: var(--primary-yellow);
  }
  
  /* Dark Mode Styles */
  body.dark-mode {
    background-color: var(--secondary-gray);
    color: var(--white);
  }
  
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3 {
    color: var(--white);
  }
  
  body.dark-mode .header {
    background-color: var(--primary-black);
  }
  
  body.dark-mode .nav-menu a:not(.button) {
    color: var(--white);
  }
  
  body.dark-mode .feature,
  body.dark-mode .faq-item {
    background-color: var(--secondary-gray);
    color: var(--white);
  }
  
  body.dark-mode .features,
  body.dark-mode .faq,
  body.dark-mode .mission,
  body.dark-mode .vision,
  body.dark-mode .team,
  body.dark-mode .why-choose {
    background-color: #1a1a1a;
  }
  
  body.dark-mode .faq-search input {
    background-color: var(--secondary-gray);
    color: var(--white);
    border-color: var(--primary-black);
  }
  
  body.dark-mode .button {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  /* Media Queries for Responsiveness */
  @media (max-width: 992px) {
    .nav-menu {
      gap: 1.5rem;
    }
    
    .hero h1 {
      font-size: 2.3rem;
    }
  }
  
  @media (max-width: 768px) {
    section {
      padding: 4rem 1rem;
    }
    
    .header {
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
    }
    
    .nav-menu {
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
    }
    
    .hero {
      padding: 6rem 1rem;
    }
    
    .hero h1 {
      font-size: 2rem;
    }
    
    .hero p {
      font-size: 1rem;
    }
    
    .feature-grid,
    .about-content,
    .faq-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .hero h1 {
      font-size: 1.7rem;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .social-icons {
      justify-content: center;
    }
    
    .about-content h3::after,
    .faq-item h3::after {
      left: 50%;
      transform: translateX(-50%);
    }
    
    .about-content {
      text-align: center;
    }
  }
  
  /* Animation Keyframes */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Apply animations */
  .hero, .feature, .about-content > div, .faq-item {
    animation: fadeIn 0.8s ease-out forwards;
  }
  
  .feature:nth-child(1) { animation-delay: 0.1s; }
  .feature:nth-child(2) { animation-delay: 0.2s; }
  .feature:nth-child(3) { animation-delay: 0.3s; }
  .feature:nth-child(4) { animation-delay: 0.4s; }