/* DSsell Invest Inc - Main Stylesheet */

:root {
  --primary-color: #2670c5;
  --secondary-color: #2ab27b;
  --dark-color: #333;
  --light-color: #f8f9fa;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #343a40;
  overflow-x: hidden;
  padding-top: 56px; /* Default navbar height */
}

@media (min-width: 768px) {
  body {
    padding-top: 72px; /* Larger navbar on desktop */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Navigation Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 1rem 0;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
              url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  min-height: 100vh;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Service Page Heroes */
.hero-googleads {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
              url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2015&q=80') center/cover no-repeat;
          min-height: 100vh;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-seo {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
              url('https://images.unsplash.com/photo-1432888622747-4eb9a8efeb07?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80') center/cover no-repeat;
              min-height: 100vh;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-ai {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
              url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
              min-height: 100vh;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-about {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
              url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
}

.hero-contact {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
              url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80') center/cover no-repeat;
}

/* Smaller hero for inner pages */
.hero-inner {
  min-height: 70vh;
  padding-top: 120px; /* Add extra padding to account for fixed navbar */
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: #1c5aa0;
  border-color: #1c5aa0;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.btn-outline-light {
  border-width: 2px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.btn-secondary:hover {
  background-color: #238a63;
  border-color: #238a63;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sections */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-img-container {
  overflow: hidden;
  height: 250px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

/* Features */
.feature-item {
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2);
  color: var(--secondary-color);
}

/* Testimonials */
.testimonial-card {
  padding: 3rem 2rem;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Process Steps */
.process-step {
  position: relative;
  padding-left: 100px;
  margin-bottom: 3rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Problem/Solution Cards */
.problem-card {
  border-left: 4px solid var(--danger-color);
  padding: 2rem;
  background-color: #fff5f5;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.problem-card:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.solution-item {
  display: flex;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.solution-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Stats/Benefits */
.stats-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), 
              url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80') center/cover no-repeat;
  color: white;
  padding: 8rem 0;
  text-align: center;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-links h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #dfe6e9;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  margin-right: 15px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Contact Form Styles */
#contact-form-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
}

#contact-form-modal {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 15px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.form-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 15px 15px 0 0;
  text-align: center;
  position: relative;
}

.close-form-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-form-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.form-content {
  padding: 2.5rem;
}

.form-control, .form-select {
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(38, 112, 197, 0.25);
  outline: none;
}

.submit-btn {
  background: linear-gradient(135deg, var(--secondary-color), #1e8a5f);
  color: white;
  padding: 18px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badges */
.badge-primary {
  background-color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 25px;
}

.badge-danger {
  background-color: var(--danger-color);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 25px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Service-specific styles */
.service-highlight {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.benefit-item {
  display: flex;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-right: 1.5rem;
  margin-top: 0.5rem;
}

/* Contact page styles */
.contact-info-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 767.98px) {
  body {
    padding-top: 73px; /* Larger navbar on desktop */
  }
  .hero-inner {
    min-height: 50vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .process-step {
    padding-left: 0;
    padding-top: 90px;
    text-align: center;
  }
  
  .step-number {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .solution-item {
    flex-direction: column;
    text-align: center;
  }
  
  .solution-item .me-4 {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
  
  .benefit-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  #contact-form-modal {
    margin: 5% 15px;
    max-width: calc(100% - 30px);
  }
  
  .form-content {
    padding: 2rem 1.5rem;
  }
}

/* Form error states */
.form-control.error, .form-select.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}