/* Modern White Theme for SimpleIncome */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 80px;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  padding-top: 80px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .lead {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-image i {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  background: transparent;
}

.btn-outline-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Services Section */
.services-section {
  padding: 80px 0;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-features li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.about-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-content h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stars {
  color: var(--warning-color);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar i {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.author-info h6 {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Footer */
footer {
  background: var(--text-dark) !important;
}

.social-links a {
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--primary-color) !important;
}

/* Modals */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding-top: 60px;
    padding-bottom: 30px;
    min-height: 40vh;
    text-align: center;
  }
  
  .services-section {
    padding: 60px 0;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding-top: 50px;
    padding-bottom: 25px;
    min-height: 35vh;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .hero-image i {
    font-size: 3rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Professional Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge .badge {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.hero-stats {
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 0 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
  margin: 0.5rem 0;
}

.hero-actions .btn {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.hero-actions .btn-outline-secondary {
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  background: transparent;
}

.hero-actions .btn-outline-secondary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.trust-indicators {
  margin-top: 2rem;
}

.trust-indicators small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-indicators i {
  color: var(--success-color);
  margin-right: 0.25rem;
}

/* Enhanced About Section Image */
.about-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.about-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.about-main-image:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.overlay-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overlay-content i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.overlay-content span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.badge-item {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  animation: float 3s ease-in-out infinite reverse;
}

.badge-item i {
  font-size: 1.1rem;
}

.badge-item span {
  font-size: 0.875rem;
  font-weight: 600;
}

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

/* Responsive About Image */
@media (max-width: 768px) {
  .about-main-image {
    height: 300px;
    margin-bottom: 2rem;
  }
  
  .about-image-overlay {
    top: 15px;
    right: 15px;
    padding: 0.75rem;
  }
  
  .about-image-badge {
    bottom: 15px;
    left: 15px;
  }
  
  .badge-item {
    padding: 0.5rem 1rem;
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-divider {
    height: 30px;
  }
  
  .hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Footer Styles */
.footer-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-section h5,
.footer-section h6 {
  color: #ffffff;
  font-weight: 600;
}

.footer-section .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-section .social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-section ul li a {
  transition: color 0.3s ease;
  position: relative;
}

.footer-section ul li a:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.footer-section hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-section .fas.fa-heart {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Professional Product Cards */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.product-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
  flex-shrink: 0; /* Prevent icon from shrinking */
  min-width: 60px; /* Ensure minimum width is maintained */
  min-height: 60px; /* Ensure minimum height is maintained */
}

.product-icon i {
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-description.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-features {
  transition: all 0.4s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.product-features.expanded {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  text-align: left;
}

.feature-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-size: 0.75rem;
}

.pricing-info {
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.price-range .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.product-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-expand {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-expand:hover {
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-expand.expanded i {
  transform: rotate(180deg);
}

.btn-expand i {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.product-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.product-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-card {
    height: auto;
    min-height: 380px;
    padding: 1.5rem;
  }
  
  .product-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .product-icon i {
    font-size: 1.5rem;
  }
  
  .product-title {
    font-size: 1.1rem;
  }
  
  .product-description {
    font-size: 0.875rem;
  }
}

/* Additional fixes for product card consistency */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 380px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* Ensure consistent spacing */
  gap: 0.5rem;
}

/* Ensure product content takes available space */
.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  /* Add minimum height to prevent compression */
  min-height: 100px;
}

/* Ensure consistent title spacing */
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  /* Prevent long titles from affecting layout */
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure description area has consistent height */
.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  /* Ensure consistent minimum height */
  min-height: 4.8rem; /* 3 lines of text */
}

/* Ensure actions stay at bottom */
.product-actions {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  /* Ensure consistent spacing */
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Animation for smooth expansion */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-features.expanded {
  animation: slideDown 0.4s ease-out;
}
