/* General Styles */
body {
  background-color: #181a20;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: white;
}

.blue-heading {
  color: #2970ff;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(41, 112, 255, 0.3);
  margin-bottom: 20px;
}
/* About Title with enhanced styling */
.about-title {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #2970ff, #4a90e2, #2970ff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
  margin: 20px 0 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(41, 112, 255, 0.3);
  animation: gradient 8s ease infinite;
  position: relative;
}

.about-title::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 4px;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(41, 112, 255, 0),
    rgba(41, 112, 255, 1),
    rgba(41, 112, 255, 0)
  );
  border-radius: 2px;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Content wrapper with improved positioning */
.content-wrapper {
  position: relative;
  width: 100%;
  min-height: 650px;
  margin-bottom: 60px;
  perspective: 1000px; /* Add perspective for 3D effects */
}

/* Expanded content styles */
.expanded-content {
  width: 100%;
  max-width: 900px; /* Reduced width */
  margin: 40px auto; /* Centered and added margin */
  display: block !important; /* Always show */
  background: linear-gradient(135deg, #22252b 0%, #2c2f33 100%);
  border-radius: 16px;
  padding: 50px 80px; /* Increased horizontal padding */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(41, 112, 255, 0.4); /* Changed from cyan to blue */
}

/* Animation for content elements */
.expanded-content h2,
.expanded-content h3,
.expanded-content p,
.expanded-content li {
  opacity: 0;
  transform: translateY(20px);
}

/* Animation for content elements */
.expanded-content h2 {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.expanded-content h3 {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.expanded-content p {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.expanded-content li {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s; /* Base delay for list items */
}

.expanded-content h2 {
  animation-delay: 0.1s;
}

.expanded-content h3 {
  animation-delay: 0.2s;
}

.expanded-content p {
  animation-delay: 0.3s;
}

.expanded-content li {
  animation-delay: 0.4s; /* Base delay for list items */
}

/* Staggered animation delay for list items */
.expanded-content li:nth-child(1) {
  animation-delay: 0.4s;
}
.expanded-content li:nth-child(2) {
  animation-delay: 0.5s;
}
.expanded-content li:nth-child(3) {
  animation-delay: 0.6s;
}
.expanded-content li:nth-child(4) {
  animation-delay: 0.7s;
}
.expanded-content li:nth-child(5) {
  animation-delay: 0.8s;
}

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

.expanded-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Two column layout for expanded content (reused from services) */
.expanded-info {
  flex: 1;
  padding: 0 40px 30px 0; /* Adjusted padding */
  min-width: 300px;
}

.expanded-images {
  flex: 1;
  padding: 0 0 30px 40px; /* Adjusted padding */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 300px;
}

.expanded-title {
  font-size: 2.5rem;
  color: #2970ff !important; /* Changed to solid blue and added !important */
  margin-bottom: 30px; /* Increased margin */
  position: relative;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(41, 112, 255, 0.4); /* Keep blue text shadow */
}

.expanded-title:after {
  content: "";
  position: absolute;
  bottom: -15px; /* Adjusted position */
  left: 0;
  width: 80px; /* Increased width */
  height: 4px; /* Increased height */
  background: linear-gradient(
    135deg,
    #2970ff,
    #4a90e2,
    #2970ff
  ); /* Keep gradient */
  border-radius: 3px;
}

.subtitle {
  color: #2970ff; /* Changed from cyan to blue */
  margin-top: 30px;
  font-size: 1.4rem;
}

.info-text {
  font-size: 1.1rem;
  line-height: 1.8; /* Increased line height */
  color: #ffffffee;
  text-align: justify;
}

.info-text p {
  margin-bottom: 20px; /* Added margin to paragraphs */
}

.service-list {
  /* Renamed from .card ul */
  margin-left: 5px;
  margin-bottom: 25px;
  list-style-type: none;
  padding-left: 5px;
}

.service-list li {
  /* Renamed from .card ul li */
  margin-bottom: 12px; /* Increased margin */
  position: relative;
  padding-left: 30px; /* Increased padding */
}

.service-list li i {
  /* Renamed from .card ul li::before */
  color: #2970ff; /* Keep blue */
  margin-right: 10px;
  position: absolute;
  left: 0;
  top: 5px; /* Adjusted position */
}

.service-list li strong {
  /* Renamed from .card ul li strong */
  color: #2970ff; /* Changed from cyan to blue */
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
  position: relative;
}

.service-list li strong::after {
  /* Renamed from .card ul li strong::after */
  content: "";
  position: absolute;
  bottom: -3px; /* Adjusted position */
  left: 0;
  width: 0;
  height: 2px; /* Increased height */
  background: #2970ff; /* Changed from cyan to blue */
  transition: width 0.3s ease;
}

.service-list li:hover {
  transform: translateX(5px); /* Subtle slide on hover */
  color: #ffffff; /* Highlight text color */
}

.service-list li:hover i {
  color: #4a90e2; /* Highlight icon color */
}

.service-list li:hover strong::after {
  /* Renamed from .card ul li:hover strong::after */
  width: 100%;
}

/* Image gallery in expanded view (reused from services) */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Increased gap */
  width: 100%;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.image-wrapper:hover .service-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(13, 17, 23, 0.7),
    rgba(13, 17, 23, 0)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.service-image {
  width: 100%;
  max-width: 500px;
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
}

/* Add highlight effect to emphasized words */
.highlight-word {
  position: relative;
  color: #2970ff; /* Changed from cyan to blue */
  font-weight: 500;
}

.highlight-word::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(41, 112, 255, 0.4); /* Changed from cyan to blue */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.highlight-word:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Enhanced animation for showcase image transition */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(41, 112, 255, 0.3),
    /* Changed from cyan to blue */ rgba(0, 0, 0, 0.6) /* Darkened slightly */
  );
  opacity: 0;
  transition: opacity 0.8s ease;
  mix-blend-mode: overlay;
}

.showcase-image.active .image-overlay {
  opacity: 1;
}

/* Add a floating decorative element */
.floating-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(41, 112, 255, 0.15),
    rgba(41, 112, 255, 0)
  );
  pointer-events: none;
  top: -50px;
  right: -50px;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Title container with animation */
.title-container {
  position: relative;
  text-align: center;
  margin: 4rem 0 3rem;
}

.title-decoration {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(41, 112, 255, 0),
    rgba(41, 112, 255, 1),
    rgba(41, 112, 255, 0)
  );
  border-radius: 2px;
  animation: pulse-width 3s infinite alternate;
}

@keyframes pulse-width {
  0% {
    width: 100px;
    opacity: 0.7;
  }
  100% {
    width: 200px;
    opacity: 1;
  }
}

/* Image overlay hover effect */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(23, 24, 32, 0.7)
  );
  opacity: 1;
  transition: opacity 0.8s ease, background 0.8s ease;
}

.showcase-image.active .image-overlay {
  background: linear-gradient(
    to bottom,
    rgba(21, 26, 48, 0.3),
    rgba(21, 26, 48, 0.7)
  );
}
