:root {
  --primary-color: #686bf1;
  --primary-dark: #5457d0;
  --primary-light: #8a8dff;
  --primary-transparent: rgba(104, 107, 241, 0.1);
  --text-color: #333;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #fff;
  --success: #28a745;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

.container {
  flex: 1;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Colors */
.bg-purple {
  background-color: var(--primary-color) !important;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.text-purple {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 12px 28px;
  transition: var(--transition);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

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

.btn-purple:hover, .btn-purple:focus {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(104, 107, 241, 0.4);
  color: var(--white);
}

.btn-light {
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

/* Navbar */
.navbar {
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.3rem;
}

.nav-link {
  font-weight: 600;
  padding: 10px 18px !important;
  border-radius: 50px;
  transition: var(--transition);
  margin: 0 3px;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

/* Section headings with decorative lines */
.section-title {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-weight: 800;
  text-align: center;
}

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

section h2 {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-weight: 800;
  text-align: center;
}

section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: 150px 0 100px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section p.lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Feature icons */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  background: var(--primary-transparent);
  width: 90px;
  height: 90px;
  line-height: 90px;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(104, 107, 241, 0.2);
}

.card:hover .feature-icon {
  transform: rotateY(180deg);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 10px 25px rgba(104, 107, 241, 0.4);
}

/* List styling */
ul.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

ul.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

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

ul.feature-list li i {
  margin-right: 12px;
  color: var(--success);
  font-size: 1.1rem;
}

/* Form styling */
.form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 15px;
  height: auto;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(104, 107, 241, 0.15);
}

.input-group-text {
  border-radius: 8px 0 0 8px;
  padding: 0 15px;
}

textarea.form-control {
  min-height: 150px;
}

/* Contact form */
.contact-form-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--white);
}

.contact-info {
  padding: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h4 {
  margin-bottom: 2rem;
  font-weight: 700;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.contact-form {
  padding: 3rem;
}

/* Footer styling */
footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 0 30px;
  margin-top: 50px;
  position: relative;
}

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

footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
}

footer ul.list-unstyled li {
  margin-bottom: 10px;
}

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

footer a.text-white:hover {
  opacity: 0.8;
  padding-left: 5px;
}

/* Responsive images */
.img-fluid {
  transition: var(--transition);
  border-radius: 10px;
}

.img-fluid:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  section {
    padding: 70px 0;
  }
  
  .hero-section {
    padding: 100px 0 70px;
  }
  
  .hero-section h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 50px 0;
  }
  
  .hero-section {
    padding: 80px 0 50px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Scroll down arrow animation */
.scroll-down-arrow {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: bounce 2s infinite;
  transition: var(--transition);
}

.scroll-down-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* App badges */
.app-badges .btn {
  min-width: 200px;
}

/* Badge styling */
.badge {
  padding: 0.5em 0.8em;
  font-weight: 600;
}

/* Contact form styling */
.contact-section .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Utility classes */
.shadow-custom {
  box-shadow: var(--box-shadow);
}

.rounded-custom {
  border-radius: var(--border-radius);
}

.bg-light-custom {
  background-color: rgba(248, 249, 250, 0.8);
}

/* Testimonials */
.testimonial-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(104, 107, 241, 0.1);
  font-family: serif;
}

.testimonial-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}