/* Custom Styles for Engagex Website */

/* CSS Custom Properties */
:root {
  --primary-color: #f39439;
  --primary-hover: #e8852a;
  --secondary-bg: #f7f7f7;
  --white: #ffffff;
  --light-gray: #d3d3d3;
  --text-dark: #333;
  --text-muted: #666;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
  --border-radius: 15px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body and General Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-optical-sizing: auto;
}

/* Enhanced Typography for SAAS websites - Dual Font System */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 0.75em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Professional text sizes */
.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

/* Font weight utilities */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Font family utilities */
.font-poppins {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Special heading classes */
.display-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Navigation */
.main_nav {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.95) 0%, rgba(0, 242, 254, 0.95) 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 50px;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 40px 0 60px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-image {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-5px);
}

/* Optimized Button Styles */
.btn {
  border-radius: 30px;
  padding: 14px 32px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 147, 57, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 147, 57, 0.4);
}

/* Custom Classes */
.color-primary {
  color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-bg) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Section Headers */
.section-header {
  margin-bottom: 4rem;
}

.section-title {
  color: #333;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}



/* Legacy support - keeping for backward compatibility */
.line-double {
  position: relative;
  display: inline-block;
}

.line-double::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Product Cards */
.product-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 3rem;
}

.product-card h3 {
  font-weight: 600;
  margin-bottom: 20px;
}

.product-card p {
  color: #666;
  margin-bottom: 30px;
}

.btn-default {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-default:hover {
  background-color: #e8852a;
  transform: translateY(-2px);
}

/* Performance Optimizations */
* {
  box-sizing: border-box;
}

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

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus management for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.g-4>* {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .g-4 {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
  }

  .g-4>* {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

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

.testimonial-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
  font-style: italic;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  quotes: '"' '"';
}

.testimonial-quote::before {
  content: open-quote;
  font-size: 1.5em;
  color: var(--primary-color);
}

.testimonial-quote::after {
  content: close-quote;
  font-size: 1.5em;
  color: var(--primary-color);
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
  font-style: normal;
}

/* Pricing */
.pricing-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 0;
}

.pricing-list ul {
  list-style: none;
  padding: 0;
}

.pricing-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.pricing-list li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq-item {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
  font-weight: 600;
  margin-bottom: 15px;
}

.faq-item p {
  color: #666;
  margin-bottom: 0;
}

/* Contact */
.contact-info {
  background-color: var(--secondary-bg);
  border-radius: 15px;
  padding: 30px;
}

.contact-info h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-form {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
}

.contact-form .form-control {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(243, 147, 57, 0.25);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

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

/* Social Media Icons */
.social-media svg {
  transition: all 0.3s ease;
}

.social-media svg:hover {
  transform: scale(1.1);
  color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 40px;
    min-height: 50vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }

  .social-media {
    margin-top: 1rem;
    text-align: center;
  }

  /* Slider */
  .slider {
    height: auto;
    padding: 100px 0 80px;
  }
  .slider .content {
    text-align: center;
  }
  .slider .content .left {
    margin-bottom: 40px;
  }
  .slider .content .left h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .slider .content .left p {
    font-size: 14px;
    line-height: 22px;
  }
  .slider .content .left .btn-1 {
    padding: 10px 30px;
    font-size: 13px;
  }
  .slider .content .right {
    text-align: center;
  }
  .slider .content .right img {
    max-width: 80%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 40px 0 30px;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Slider */
  .slider {
    height: auto;
    padding: 100px 0 80px;
  }
  .slider .content {
    text-align: center;
  }
  .slider .content .left {
    margin-bottom: 40px;
  }
  .slider .content .left h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .slider .content .left p {
    font-size: 14px;
    line-height: 22px;
  }
  .slider .content .left .btn-1 {
    padding: 10px 30px;
    font-size: 13px;
  }
  .slider .content .right {
    text-align: center;
  }
  .slider .content .right img {
    max-width: 80%;
    height: auto;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Accessibility - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
  color: var(--white);
}

/* Loading optimization */
.lazyload {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazyloaded {
  opacity: 1;
}

/* Back to top button */
#scroll {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

#scroll:hover {
  background-color: #e8852a;
  transform: scale(1.1);
}

/* Video Section */
.video-container {
  position: relative;
  display: inline-block;
}

.video-container img {
  width: 100%;
  border-radius: 15px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: #e8852a;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
}

/* About Content */
.about-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    text-decoration: none;
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    .whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}