/* Modern Theme Variables */
:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --dark-color: #ffffff;
  --light-color: #ffffff;
  --gray-color: #ffffff;
  --light-gray: #ffffff;
  --text-color: #ffffff; /* Added text color variable */
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: transparent;
  padding: 5rem 0;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  margin-right: 3px;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: transparent;
}

.contact-info, .contact-form, .about-section, .freelance_section {
  height: 100%;
  background: #3b6bbe4a;

}

.contact-info h4, .contact-form h4 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.contact-info h4:after, .contact-form h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.contact-info h5 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-info p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.social-links a {
  display: inline-block;
  transition: var(--transition);
  margin-right: 10px;
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.contact-form .form-control {
  height: 50px;
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  padding: 10px 15px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
  border-color: var(--primary-color);
}

.contact-form textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: none;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  border: none;
}

/* Form Floating Labels */
.form-floating > label {
  color: white;
  padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary-color);
  opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* To account for fixed navbar 
  background-color: #ffffff;*/
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

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

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

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

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

/* Navigation */
.navbar {
  padding: 1rem 0;
  background-color: rgba(51, 64, 80, 0.304);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color);
  color: var(--dark-color) !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 50px;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 10px 20px !important;
  color: var(--dark-color) !important;
  position: relative;
  margin: 0 5px;
  transition: var(--transition);
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gradient);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
  padding: 8rem 0 5rem;
  /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--dark-color);
}

.hero-content p.lead {
  font-size: 1.25rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
  padding: 5rem 0;
  /*background-color: white;*/
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

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

.section-title p {
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  /*background: #ffffff;*/
}

.feature-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  margin-bottom: 30px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--box-shadow);
  text-align: center;
  height: 100%;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--gradient);
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 7rem 0 4rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p.lead {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:after {
    display: none;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-content p.lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility Classes */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* WhatsApp API Section */
#whatsapp-api {
  background-color: #f8f9fa;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

#whatsapp-api::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyMjQsIDIzMCwgMjUxLCAwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+') repeat;
  opacity: 0.5;
  z-index: 0;
}

#whatsapp-api .container {
  position: relative;
  z-index: 1;
}

#whatsapp-api .section-title h2 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

#whatsapp-api .divider {
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 1rem 0 2rem;
  display: block;
}

#whatsapp-api ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

#whatsapp-api ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

#whatsapp-api ul li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--primary-color);
  font-size: 1rem;
}

#whatsapp-api .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

#whatsapp-api img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

#whatsapp-api img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  #whatsapp-api {
    text-align: center;
  }
  
  #whatsapp-api .divider {
    margin-left: auto;
    margin-right: auto;
  }
  
  #whatsapp-api .btn {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
  }
  
  #whatsapp-api img {
    margin-top: 2rem;
    max-width: 80%;
  }
}

@media (max-width: 767.98px) {
  #whatsapp-api {
    padding: 4rem 0;
  }
  
  #whatsapp-api ul li {
    font-size: 1rem;
    padding-left: 1.75rem;
  }
  
  #whatsapp-api .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}
