/* ==========================================================================
   Homepage (index.html) - Specific Styles
   ========================================================================== */

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  margin: 0 var(--space-sm);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.nav-btn {
  background-color: var(--accent-bright) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  font-weight: 600 !important;
  margin-left: var(--space-md) !important;
}

.nav-btn:hover {
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.logo {
  height: 40px;
  margin-right: var(--space-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(27, 122, 126, 0.9), rgba(20, 184, 166, 0.8)), 
              url('/images/img3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  animation: fadeInUp 1s ease-out 0.3s both;
  font-weight: 300;
  opacity: 0.95;
}

.hero .cta-btn {
  animation: fadeInUp 1s ease-out 0.6s both;
  font-size: 1.2rem;
  padding: var(--space-lg) var(--space-xxl);
  position: relative;
  overflow: hidden;
}

.hero .cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.hero .cta-btn:hover::before {
  left: 100%;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  animation: fadeInUp 1s ease-out 0.9s both;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.9;
}

.hero-feature i {
  color: var(--accent-color);
}

/* Common Section Styles */
.section {
  padding: var(--space-xxl) 0;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, var(--primary-alt) 0%, rgba(240, 247, 248, 0.5) 100%);
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  margin: 0 auto var(--space-xl);
  border-radius: 2px;
}

.bg-soft-gray {
  background-color: var(--primary-alt);
}

/* CTA Button */
.cta-btn {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-color));
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
  color: var(--text-light);
  text-decoration: none;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-bright));
}

/* How It Works Section */
.feature-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(27, 122, 126, 0.1);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent-color);
}

.feature-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--space-md);
  border: 3px solid var(--accent-color);
}

.feature-box h5 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature-box p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Why CaptureFlow Section */
.why-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--primary-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.why-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-light);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-lg);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.why-item h5 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.why-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Pricing Section */
.pricing-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(240, 247, 248, 0.8) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xxl);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(27, 122, 126, 0.2);
  border-color: var(--secondary-color);
}

.pricing-card h3 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.display-4 {
  color: var(--secondary-color);
  font-weight: 900;
}

.pricing-card .list-unstyled li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pricing-card .list-unstyled li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: bold;
  margin-right: var(--space-sm);
}

/* Testimonials */
.testimonial {
  background: var(--primary-color);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid var(--accent-color);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.testimonial h5 {
  color: var(--secondary-color);
  font-weight: 600;
}

.testimonial p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-light);
  padding: var(--space-xxl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.cta-section .lead {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: var(--space-xl);
}

.cta-section .cta-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.2rem;
  padding: var(--space-lg) var(--space-xxl);
  font-weight: 700;
}

.cta-section .cta-btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(27, 122, 126, 0.3);
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: var(--text-light);
  padding: var(--space-xxl) 0 var(--space-lg);
}

footer h5 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: var(--space-sm);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

footer .fab {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

footer .fab:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  padding: var(--space-xxl) 0;
  background: var(--primary-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modern Design Improvements */
body {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-alt) 100%);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
    background-attachment: scroll;
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .logo {
    height: 30px;
    margin-right: var(--space-sm);
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: var(--space-md);
  }
  
  .nav-btn {
    margin: var(--space-md) 0 0 0 !important;
    display: inline-block;
  }
  
  .why-item {
    flex-direction: column;
    text-align: center;
  }
  
  .why-icon {
    margin-right: 0;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .cta-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
}
