/* ==========================================================================
   EarnEasy Premium Theme - USA Style
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-color: #0f172a;      /* Deep Blue */
  --secondary-color: #2563eb;    /* Electric Blue */
  --accent-color: #06b6d4;       /* Cyan Accent */
  --text-dark: #1e293b;          /* Dark Text */
  --text-light: #64748b;         /* Light Text */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;           /* Off-white Background */
  --border-color: #e2e8f0;
  --success-color: #10b981;
  
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reusable Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.section-bg-dark .section-title,
.section-bg-dark p {
  color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-desc {
  color: var(--text-light);
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.39);
}

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

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

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

.btn-white:hover {
  background-color: var(--bg-light);
  color: var(--secondary-color);
}

/* ==========================================================================
   1. Header / Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  background: none;
  border: none;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  position: relative;
  overflow: hidden;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--secondary-color);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-title span {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image-wrapper {
  flex: 1;
  position: relative;
}

.hero-image {
  border-radius: 20px;
  box-shadow: var(--box-shadow-hover);
  position: relative;
  z-index: 2;
}

.hero-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.1;
}

/* ==========================================================================
   3. Trusted By
   ========================================================================== */
.trusted-by {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.trusted-title {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logos-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.logos-grid:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-item {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--secondary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--secondary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.feature-desc {
  color: var(--text-light);
}

/* ==========================================================================
   5. How It Works
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Line connecting steps */
.steps-line {
  position: absolute;
  top: 25px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

/* ==========================================================================
   6. About Snippet
   ========================================================================== */
.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image-wrapper {
  flex: 1;
  position: relative;
}

.about-image {
  border-radius: 16px;
  box-shadow: var(--box-shadow);
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--box-shadow-hover);
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-experience-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.about-content {
  flex: 1;
}

.about-list {
  margin: 20px 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.about-list i {
  color: var(--success-color);
}

/* ==========================================================================
   7. Services Highlight
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: 12px;
  transition: var(--transition);
}

.service-card:hover {
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ==========================================================================
   8. Stats / Counters
   ========================================================================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px;
}

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 10px;
}

.stat-title {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ==========================================================================
   9. Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
}

.stars {
  color: #fbbf24;
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 30px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light);
}

.client-details h4 {
  font-size: 1rem;
  font-weight: 700;
}

.client-details p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==========================================================================
   10. Media / Video
   ========================================================================== */
.video-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow-hover);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  padding-left: 5px; /* Visual center for play icon */
}

.play-btn:hover {
  transform: scale(1.1);
  background-color: var(--accent-color);
}

/* ==========================================================================
   11. Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--secondary-color);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.pricing-features {
  margin: 30px 0;
}

.pricing-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features i {
  color: var(--success-color);
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary-color);
}

.faq-icon {
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-light);
}

.faq-answer p {
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

/* ==========================================================================
   13. App Download
   ========================================================================== */
.app-download-container {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 24px;
  padding: 60px;
  gap: 50px;
  color: var(--bg-white);
  overflow: hidden;
}

.app-content {
  flex: 1;
}

.app-content .section-title,
.app-content p {
  color: var(--bg-white);
}

.app-btns {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.app-btn {
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid #333;
}

.app-btn:hover {
  background-color: #333;
}

.app-btn i {
  font-size: 1.75rem;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
}

.app-btn-text span:first-child {
  font-size: 0.65rem;
  text-transform: uppercase;
}

.app-btn-text span:last-child {
  font-size: 1.1rem;
  font-weight: 600;
}

.app-image-wrapper {
  flex: 1;
  text-align: right;
  margin-bottom: -150px; /* Overlap effect */
}

/* ==========================================================================
   14. Newsletter
   ========================================================================== */
.newsletter-wrapper {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  color: var(--bg-white);
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 30px auto 0;
  background-color: var(--bg-white);
  padding: 5px;
  border-radius: 10px;
}

.newsletter-input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

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

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

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.footer-links li {
  margin-bottom: 15px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container,
  .about-container,
  .app-download-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-btns,
  .about-list li,
  .app-btns {
    justify-content: center;
  }
  
  .steps-line {
    display: none;
  }
  
  .steps-grid,
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .app-image-wrapper {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .steps-grid,
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
    background-color: transparent;
    gap: 15px;
  }
  
  .newsletter-input {
    border-radius: 8px;
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
