/* index.css - Modern React-like styling for AdAMS homepage */

:root {
  /* Color palette */
  --primary: #4a90e2;
  --primary-light: #6eaef5;
  --primary-dark: #3a73b4;
  --primary-gradient: linear-gradient(135deg, #4a90e2, #3a73b4);
  
  --accent: #5c6ac4;
  --secondary: #27ae60;
  
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-light: #f8f9fa;
  
  --background: #f8f9fa;
  --background-light: #f0f7ff;
  --background-dark: #edf2f7;
  --card-bg-white: #ffffff;
  --card-bg-blue: #f0f7ff;
  
  /* Spacing system */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* This fixes the issue with section titles being buried under navbar */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section background alternating colors */
.section-light {
  background-color: var(--background-light);
}

.section-white {
  background-color: white;
}

.section-dark {
  background-color: var(--background-dark);
}

/* Header Styles */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Brand with subtitle */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the subtitle under the logo */
  text-align: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-top: -2px;
  text-align: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.nav-links a:hover {
  color: var(--primary);
  background-color: rgba(74, 144, 226, 0.08);
}

.auth-buttons {
  display: flex;
  gap: var(--space-md);
}

.login-btn, .signup-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.login-btn {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.signup-btn {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 5px rgba(74, 144, 226, 0.3);
}

.login-btn:hover {
  background-color: rgba(74, 144, 226, 0.08);
}

.signup-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  overflow: hidden;
  margin-top: 60px;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-container:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.4), 
    rgba(0, 0, 0, 0.7)
  );
}

.content-container {
  max-width: 800px;
  text-align: center;
  color: white;
  z-index: 1;
  padding: var(--space-lg);
}

/* More formal corporate text styling for hero section */
.corporate-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mae {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.content-container p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(74, 144, 226, 0.5);
}

/* Section Styling */
section {
  padding: var(--space-xxl) var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.5px;
}

.section-divider {
  height: 4px;
  width: 70px;
  background-color: var(--primary);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

/* Card Grid Styling */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* React-like Card Styling */
.card {
  background-color: var(--card-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

/* Alternating card colors */
.card:nth-child(odd) {
  background-color: var(--card-bg-white);
}

.card:nth-child(even) {
  background-color: var(--card-bg-blue);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card:focus {
  outline: 2px solid var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Centered icon styling */
.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

/* Centered icon inside card */
.centered-icon {
  margin-left: auto;
  margin-right: auto;
}

.card:hover .card-icon {
  transform: scale(1.1);
  background-color: var(--primary-dark);
}

.card-content {
  flex-grow: 1;
  text-align: center;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* List Style Cards */
.card-list ul {
  margin-top: var(--space-md);
  text-align: left;
  padding-left: var(--space-md);
}

.card-list li {
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.card-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

/* Analysis Section */
.analysis-section {
  background-color: var(--background-light);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.insight-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.insight-card h3 {
  padding: var(--space-lg);
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.insight-image {
  height: 250px;
  overflow: hidden;
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.insight-card:hover .insight-image img {
  transform: scale(1.05);
}

/* Testimonials Section */
.customers-section {
  background-color: white;
}

.testimonial-container {
  max-width: 900px; /* Reduced from 1000px */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.testimonial-card {
  background-color: var(--background-light); /* Changed to light blue */
  border-radius: var(--radius-lg);
  padding: var(--space-lg); /* Reduced padding */
  box-shadow: var(--shadow-md);
  max-width: 350px; /* Reduced from 400px */
  text-align: center;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-image {
  width: 80px; /* Reduced from 100px */
  height: 80px; /* Reduced from 100px */
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--primary-light);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating {
  color: #ffc107;
  margin-bottom: var(--space-md);
  font-size: 1rem; /* Slightly smaller */
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md); /* Reduced */
  color: var(--text-secondary);
  font-size: 0.95rem; /* Slightly smaller */
}

.testimonial-author h4 {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-size: 1rem; /* Slightly smaller */
}

.testimonial-author p {
  color: var(--text-secondary);
  font-size: 0.85rem; /* Smaller */
}

.see-reviews {
  display: block;
  text-align: center;
  margin-top: var(--space-xl);
  color: var(--primary);
  font-weight: 500;
  transition: all var(--transition-normal);
}

.see-reviews:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* CTA Section - Made more compact */
.cta-section {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: var(--space-xl) var(--space-lg); /* Reduced padding */
}

/* Specifically for compact CTA */
.compact-cta {
  padding: var(--space-xl) var(--space-lg); /* Even more reduced */
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.compact-cta .cta-content h2 {
  font-size: 1.8rem; /* Smaller */
}

.compact-cta .cta-content p {
  font-size: 1rem; /* Smaller */
  margin-bottom: var(--space-lg); /* Reduced */
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm); /* Reduced */
  letter-spacing: -0.5px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg); /* Reduced */
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.primary-button, .secondary-button {
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.primary-button {
  background-color: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.secondary-button {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Footer - with button links */
.footer {
  background-color: #1E293B;
  color: white;
  padding: var(--space-xl) var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto var(--space-lg);
}

/* Condensed footer styling */
.footer-content.condensed {
  gap: var(--space-md);
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Button links for footer */
.button-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  text-align: center;
}

.footer-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-form input {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button.footer-btn {
  background-color: var(--primary);
}

.newsletter-form button.footer-btn:hover {
  background-color: var(--primary-dark);
}

.social-media {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: white;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.social-media a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer p {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .mae {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }

  /* Keep logo subtitle visible but smaller */
  .logo-subtitle {
    font-size: 0.65rem;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    gap: var(--space-xl);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .mae {
    font-size: 2rem;
  }
  
  .content-container p {
    font-size: 1.1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .testimonial-container {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* Center brand elements on mobile */
  .brand {
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 0 var(--space-md);
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo-subtitle {
    font-size: 0.6rem;
  }
  
  .mae {
    font-size: 1.75rem;
  }
  
  .content-container p {
    font-size: 1rem;
  }
  
  .content-container {
    padding: var(--space-md);
  }
  
  section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .insight-image {
    height: 200px;
  }
  
  .card {
    padding: var(--space-lg);
  }

  .footer {
    padding: var(--space-lg) var(--space-md);
  }
  
  /* Full width footer buttons on smallest screens */
  .footer-btn {
    width: 100%;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* For low-end devices */
@media screen and (max-width: 768px) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .testimonial-card:hover,
  .insight-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .insight-card:hover .insight-image img {
    transform: none;
  }
  
  .card:hover .card-icon {
    transform: none;
  }
}

/* Font Display Swap for better loading performance */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter Regular'), local('Inter-Regular'),
       url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'), local('Inter-Medium'),
       url('https://fonts.googleapis.com/css2?family=Inter:wght@500&display=swap');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter SemiBold'), local('Inter-SemiBold'),
       url('https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter Bold'), local('Inter-Bold'),
       url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
       url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');
}