/* Hero Section Styles */
.hero-section {
  background: linear-gradient(59deg, #bbebff, white, #ffa4a4);
  padding: 100px 0 60px;
  overflow: hidden;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.hero-section img {
  animation: float 6s ease-in-out infinite;
}


/* Decorative circles */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  background-image: url('/assets/deco_circle.png');
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
  width: 400px;
  height: 400px;
}

@media (max-width: 992px) {
  .hero-section::before,
.hero-section::after {
  display: none;
}
}

.hero-section::before {
  right: -50px;
  top: -50px;
}

.hero-section::after {
  width: 80%;
  height: 80%;
  left: 40%;
  bottom: -10%;
}

.hero-section .hero-title {
  color: #00a1e4;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .hero-section .hero-title {
      font-size: 2rem;
  }
}


/* Service Steps Section Styling */
.service-steps .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-steps .section-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.step-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px !important;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
}

.step-number {
  position: absolute;
  top: -30px;
  left: 20px;
  width: 80px;
  height: 80px;
  background-color: #fff0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #00a1e4;
}

/* Features Section Styling */
.feature-list {
  list-style-type: none;
  padding-left: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-list i {
  margin-right: 1rem;
  font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
  background-color: #0d6efd;
}

/* Features Section Styling */
.features-section {
  padding: 0;
}

.feature-item {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.feature-item:nth-child(odd), .feature-item:nth-child(even) {
  background: none;
}

.feature-label {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ff6e6e;
  font-weight: 700;
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #00a1e4!important;
  position: relative;
  display: inline-block;
}


.feature-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  max-width: 90%;
}

.feature-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, opacity;
  transform-origin: center right;
}

.feature-item-reverse .feature-image {
  transform-origin: center left;
}

/* Make sure there's no other transition that could interfere */
.feature-image img {
  max-width: 100%;
  /* Remove any transitions from the img itself */
  transition: none;
}

/* Remove the hover effect on the image since we now have the scroll animation */
.feature-item:hover .feature-image img {
  transform: none;
}

/* Update the feature-content to support the animation */
.feature-content {
  gap: unset;
  transform-origin: center left;
  will-change: transform, opacity;
  padding: 20px;
  border-radius: 10px;
  position: relative;

}

.feature-item-reverse .feature-content {
  transform-origin: center right;
}

.feature-image {
  box-shadow: unset;
}

/* The transition properties will be set by JavaScript for smoother control */

/* Add responsive styling */
@media (max-width: 991.98px) {
  .feature-item {
    padding: 60px 0;
  }
  
  .feature-title {
    font-size: 2rem;
  }
  
  .feature-description {
    max-width: 100%;
  }
  
  .feature-content {
    margin-bottom: 40px;
  }
  
  .feature-item-reverse .feature-content {
    margin-bottom: 0;
    margin-top: 40px;
  }
  
  .order-lg-1, .order-lg-2 {
    order: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .feature-item {
    padding: 40px 0;
  }
  
  .feature-title {
    font-size: 1.8rem;
  }
}

/* SchoolWeb Services Section */
.schoolweb-service {
  background-color: #ffffff;
  padding: 80px 10px;
}

.schoolweb-service .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 80px;
}

.service-row {
  margin-bottom: 50px;
}

.service-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
  min-height: 120px;
}

.service-icon {
  position: absolute;
  left: 0;
  top: 0;
}

.service-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #00a1e4;
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 0;
}

.service-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
  padding-left: 0;
}

/* Divider styling - more like the horizontal line in the image */
.divider {
  position: relative;
  text-align: center;
  height: auto;
  margin: 20px 0;
}

.divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e0e0e0;
  transform: translateY(-50%);
}

.divider-text {
  position: relative;
  display: inline-block;
  background-color: #fff;
  padding: 0 40px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .service-row {
    margin-bottom: 20px;
  }
  
  .service-item {
    margin-bottom: 0;
  }
  .schoolweb-service .section-title {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .schoolweb-service .section-title {
    font-size: 1.8rem;
  }

  .service-item {
    padding-left: 60px;
  }

  .service-icon img {
    width: 40px;
    height: 40px;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-description {
    font-size: 0.9rem;
  }
  
  .divider {
    margin: 10px 0;
  }
  
  .divider-text {
    padding: 0 20px;
    font-size: 1.5rem;
  }
}


.portfolio-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(-45deg, #fec5d5, #ffffff, #c5e7fd, #fef3f6, #ddfaff);
  background-size: 200% 200%;
  animation: gradientBG 10s ease infinite;
  overflow: hidden;
}

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

.deco-circle {
  position: absolute;
  width: 30%;
  height: 30%;
  background-image: url('/assets/deco_circle.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  animation: zoomEffect 12s ease-in-out infinite;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1) ;
  }
}

.deco-circle.top-right {
  top: 50px;
  right: -100px;
}

.deco-circle.center-left {
  left: -100px;
  top: 400px;
  animation-delay: -6s;
}

.portfolio-categories {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.category-btn {
  padding: 10px 30px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-btn:hover {
  background: #00a1e4;
  color: white;
  transform: translateY(-2px);
}

.category-btn.active {
  background: #00a1e4;
  color: white;
}

.portfolio-group {
  position: relative;
  z-index: 2;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portfolio-group.active {
  display: block;
  opacity: 1;
}

.portfolio-item {
  display: block;
  text-decoration: none;
  perspective: 1000px;
  margin: 15px 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card {
  position: relative;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
  border: 2px solid white;
  transition: all 0.5s ease;
  box-shadow: 0 8px 25px rgba(86, 95, 178, 0.154);
  transform-origin: center center;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) rotateZ(-2deg);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(24 115 231 / 12%) 100%);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(54, 88, 173, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-title {
  color: white;
  font-size: 1rem;
  margin: 0;
  padding: 1rem;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  font-family: 'Montserrat';
  line-height: 1.5;
}

.portfolio-item:hover .portfolio-card {
  transform: perspective(1000px) rotateY(0) rotateX(0) rotateZ(0);
  box-shadow: 0 15px 35px rgba(70, 78, 113, 0.2);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-title {
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .portfolio-categories {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .category-btn {
    width: 200px;
    padding: 8px 20px;
    font-size: 1rem;
  }

  .portfolio-card {
    height: 200px;
    transform: unset;
  }

  .portfolio-group .row>* {
    margin: 0;
  }

  .portfolio-group .row {
  .portfolio-title {
    font-size: 1rem;
  }
}
}

