/* General Styles */
:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --text-light: #777;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

body {
  /* background-color: #fff; */
  background-color: rgb(240, 238, 238);
  color: var(--text-color);
  overflow-x: hidden !important;
  line-height: 1.6;
  width: 100vw;
}

/* تخصيص شريط التمرير */
body::-webkit-scrollbar {
  width: 10px !important;
}

/* تغيير لون ومظهر المقبض (thumb) */
body::-webkit-scrollbar-thumb {
  background-color: rgba(59, 59, 59, 0.58) !important;
  border-radius: 50px !important;
}

/* تغيير لون المسار (track) */
body::-webkit-scrollbar-track {
  background-color: rgb(209, 208, 208) !important;
  border-radius: 50px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 20px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 20px auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: capitalize;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 84, 200, 0.4);
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
}

.loader {
  position: relative;
  width: 150px;
  height: 150px;
  perspective: 600px;
}

.loader-square {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  animation: rotate 2s infinite ease-in-out;
  transform-origin: center center;
}

.loader-square:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.loader-square:nth-child(2) {
  top: 0;
  left: 50px;
  animation-delay: 0.2s;
}

.loader-square:nth-child(3) {
  top: 0;
  left: 100px;
  animation-delay: 0.4s;
}

.loader-square:nth-child(4) {
  top: 50px;
  left: 0;
  animation-delay: 0.6s;
}

.loader-square:nth-child(5) {
  top: 50px;
  left: 50px;
  animation-delay: 0.8s;
}

.loader-square:nth-child(6) {
  top: 50px;
  left: 100px;
  animation-delay: 1s;
}

.loader-square:nth-child(7) {
  top: 100px;
  left: 0;
  animation-delay: 1.2s;
}

@keyframes rotate {
  0%,
  100% {
    transform: rotateX(0) rotateY(0);
    background: var(--primary-color);
  }
  25% {
    transform: rotateX(180deg) rotateY(0);
    background: var(--secondary-color);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
    background: var(--accent-color);
  }
  75% {
    transform: rotateX(0) rotateY(180deg);
    background: var(--secondary-color);
  }
}

/* Header */
.header {
  /* background-color: rgba(26, 26, 46, 0.9); */
  background-color: rgba(255, 255, 255, 0.95); /* تغيير إلى لون أبيض شفاف */
  backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 30px 20px rgba(0, 0, 0, 0.1); /* إضافة ظل */
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-toggler{
  background: var(--primary-color);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  color: var(--dark-color); /* تغيير لون النص إلى داكن */
}

.navbar-brand .logo {
  height: 40px;
  margin-left: 10px;
}

.navbar-brand span {
  color: #000 !important;
}

.navbar-brand span:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  color: var(--dark-color); /* تغيير لون النص إلى داكن */
  font-weight: 600;
  padding: 8px 15px;
  margin: 0 5px;
  position: relative;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color); /* تغيير لون النص عند التحويم */
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/pattern.png") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.hero-waves svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.shape-fill {
  fill: #fff;
}

/* About Section */
.about-image {
  position: relative;
}

.about-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(78, 84, 200, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.about-content p {
  margin-bottom: 20px;
}

.about-features {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-left: 15px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.feature-text p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Services Section */
.services-section,
.contact-section {
  background-color: #f9f9f9;
}

.service-item {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover::before {
  opacity: 1;
}

.service-item:hover .service-icon,
.service-item:hover h3,
.service-item:hover ul li {
  color: #fff;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.service-item ul {
  margin-bottom: 20px;
}

.service-item ul li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.service-item ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-item:hover ul li::before {
  color: #fff;
}

.service-hover {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.service-item:hover .service-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Packages Section */
.package-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
}

.package-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.package-header {
  padding: 30px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  text-align: center;
}

.package-header h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0;
}

.price span {
  font-size: 16px;
  font-weight: 400;
}

.package-body {
  padding: 30px;
  text-align: center;
}

.package-body ul {
  margin-bottom: 30px;
}

.package-body ul li {
  margin-bottom: 15px;
  position: relative;
  padding-right: 25px;
}

.package-body ul li i {
  position: absolute;
  right: 0;
  color: var(--primary-color);
}

.package-item.featured {
  transform: scale(1.05);
  z-index: 1;
}

.package-item.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.package-badge {
  position: absolute;
  top: 20px;
  left: -30px;
  background: var(--accent-color);
  color: #fff;
  padding: 5px 30px;
  font-weight: 600;
  transform: rotate(-45deg);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.dedicated-freelancers {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.dedicated-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.dedicated-content p {
  margin-bottom: 20px;
}

.dedicated-features {
  margin: 30px 0;
}

.dedicated-features .feature-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.dedicated-features .feature-item i {
  color: var(--primary-color);
  margin-left: 10px;
  font-size: 18px;
}

/* Enterprise Section Styles */
.enterprise-section {
  position: relative;
  overflow: hidden;
}

.text-gradient {
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.enterprise-features {
  margin-top: 30px;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(78, 84, 200, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-left: 15px;
  flex-shrink: 0;
}

.feature-text h4 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 18px;
}

.feature-text p {
  color: #7f8c8d;
  margin-bottom: 0;
}

.custom-list {
  list-style: none;
  padding-right: 0;
}

.custom-list li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 10px;
}

.custom-list li i {
  position: absolute;
  right: 0;
  top: 5px;
  color: #4e54c8;
}

/* Enterprise Card */
.enterprise-card {
  background: #fff;
  border-radius: 15px;
  /* overflow: hidden; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.card-header {
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
}

.card-header h3 {
  font-size: 24px;
  margin-bottom: 0;
}

.price-label {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #4e54c8;
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 30px;
}

.price-details {
  text-align: center;
  margin-bottom: 30px;
}

.price-details p {
  color: #7f8c8d;
  margin-bottom: 5px;
}

.starting-from {
  font-size: 18px;
  margin-top: 10px;
}

.starting-from span {
  font-weight: bold;
  color: #4e54c8;
  font-size: 24px;
}

.enterprise-cta {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.enterprise-cta h5 {
  color: #2c3e50;
  margin-bottom: 5px;
}

.enterprise-cta p {
  color: #7f8c8d;
  margin-bottom: 0;
}

.enterprise-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  border-radius: 50px;
  padding: 10px 15px;
  margin-top: 20px;
}

.enterprise-badge i {
  color: #f39c12;
  margin-left: 10px;
  font-size: 20px;
}

.enterprise-badge span {
  color: #2c3e50;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .enterprise-card {
    margin-top: 50px;
  }

  .feature-box {
    padding: 15px;
  }
}

@media (max-width: 767.98px) {
  .card-header h3 {
    font-size: 20px;
  }

  .starting-from span {
    font-size: 20px;
  }

  .enterprise-cta {
    padding: 15px;
  }
}

/* Contact Section */
.contact-section {
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-left: 15px;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  color: var(--dark-color);
  margin-bottom: 8px;
  font-size: 18px;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Animated Illustration */
.contact-visual {
  position: relative;
  padding: 30px;
}

.animated-illustration {
  position: relative;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center; /* لتوسيط الصورة أفقيًا */
  align-items: center; /* لتوسيط الصورة عموديًا */
  margin: 0 auto; /* لتوسيط العنصر نفسه */
}

.animated-illustration img {
  position: relative;
  z-index: 2; /* للتأكد من ظهور الصورة فوق النقاط */
  max-width: 80%; /* يمكنك تعديل هذه النسبة حسب الحاجة */
}

.animated-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: float 6s infinite ease-in-out;
}

.dot-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.dot-2 {
  top: 60%;
  left: 25%;
  animation-delay: 1s;
}

.dot-3 {
  top: 30%;
  right: 20%;
  animation-delay: 2s;
}

.dot-4 {
  bottom: 20%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
}

/* Social Icons */
.social-links {
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #fff;
  color: var(--primary-color);
  border-radius: 50%;
  margin: 0 8px;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  transform: translateY(-5px);
}

/* CTA Box */
.cta-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.cta-box h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-buttons .btn {
  padding: 10px 20px;
  font-size: 15px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .contact-visual {
    margin-top: 50px;
  }

  .cta-box {
    padding: 20px;
  }

  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .cta-buttons .btn.me-2 {
    margin-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-icon {
    margin: 0 auto 15px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin: 0 5px;
  }
}

/* Footer */
.footer {
  background: #f8f9fa; /* تغيير إلى لون فاتح */
  color: var(--dark-color); /* تغيير لون النص إلى داكن */
  position: relative;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05); /* إضافة ظل */
}

.footer-top {
  padding: 100px 0 50px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-widget h3 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  bottom: 0;
  right: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light); /* تعديل لون الروابط */
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color); /* تعديل لون الروابط عند التحويم */
  padding-right: 5px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-left: 10px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: translateY(-5px);
}

.newsletter-form {
  position: relative;
}

.newsletter-form input {
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50px;
  padding: 0 20px;
  color: #000;
  border: 1px solid #000;
}

/* .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
} */

.newsletter-form button {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: rotate(360deg);
}

.footer-bottom {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.03); /* تعديل لون الخلفية */
}

.copyright p {
  margin-bottom: 0;
  color: var(--text-light);
}

.footer-links a {
  /* color: rgba(255, 255, 255, 0.7); */
  margin-left: 15px;
  transition: var(--transition);
}

/* .footer-links a:hover {
  color: #fff;
} */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(78, 84, 200, 0.4);
}

/* Animations */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInDown {
  animation-name: fadeInDown;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInLeft {
  animation-name: fadeInLeft;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(50px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInRight {
  animation-name: fadeInRight;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .section-padding {
    padding: 80px 0;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .navbar-collapse {
    background: rgba(26, 26, 46, 0.95);
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
    color: #fff;
  }

  .about-content {
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-section {
    padding: 120px 0 80px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-image {
    margin-top: 30px;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .package-item.featured {
    transform: scale(1);
  }

  .package-item.featured:hover {
    transform: scale(1) translateY(-10px);
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 24px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .btn {
    padding: 10px 20px;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto 15px;
  }

  .footer-widget {
    text-align: center;
  }

  .footer-widget h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom .row {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    margin-top: 15px;
  }

  /* .footer-links a {
    margin: 0 7.5px;
  } */
}

/* Add these styles to your existing CSS file */

/* AOS Animation Duration Control */
[data-aos] {
  transition-property: opacity, transform;
}

/* Custom Animation Delays */
[data-aos-delay="100"] {
  transition-delay: 0.1s;
}
[data-aos-delay="200"] {
  transition-delay: 0.2s;
}
[data-aos-delay="300"] {
  transition-delay: 0.3s;
}
[data-aos-delay="400"] {
  transition-delay: 0.4s;
}
[data-aos-delay="500"] {
  transition-delay: 0.5s;
}

/* Smooth Transitions for All Elements */
.service-item,
.package-item,
.feature-item,
.contact-info-item,
.footer-widget {
  transition: all 0.5s ease;
}

/* Enhanced Hover Effects */
.service-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.package-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-item.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

/* Smooth Loading for Images */
img {
  transition: opacity 0.8s ease;
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* Enhanced Button Animations */
.btn {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Smooth Section Transitions */
section {
  transition: all 0.6s ease;
}

/* Enhanced Navbar Animation */
.navbar-nav .nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Animation for Hero Image */
.hero-image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Pulse Animation for Call-to-Action */
.btn-primary {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(78, 84, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
  }
}

/* Fade-in Animation for Preloader */
.preloader.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Smooth Back to Top Button */
.back-to-top {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0s !important;
  }
}
