.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh; /* Default height for desktop */
  overflow: hidden;
}

/* Background styling */
.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; 
  height: 100%; 
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.section-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

.hero-content-container {
  position: relative;
  z-index: 2; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; 
  color: white;
  text-align: center;
  padding: 20px;
  margin: 0 auto; 
  max-width: 1200px; 
}

/* Logo styling */
.main-logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(145deg,rgb(72, 170, 42),#1a3a1d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Title and subtitle styling */
.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.dynamic-subtitle {
  font-size: 1rem;
  line-height: 1.5;
}

/* Highlighted text */
.highlight-bold {
  font-weight: 900;
  background: linear-gradient(145deg, #48aa2a, #dfe8e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 2px 4px;
}

.rotating-main {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.rotating-main::before {
  content: '12345678901';
  visibility: hidden;
}

.rotating-main span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  animation: slideRotate 6s infinite;
  -webkit-animation: slideRotate 6s infinite;

  background: linear-gradient(45deg, #aae79b, rgb(116, 163, 108));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@-webkit-keyframes slideRotate {
  0%   { opacity: 0; -webkit-transform: translateY(0.2em); transform: translateY(0.2em); }
  10%, 30% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
  40%, 100% { opacity: 0; -webkit-transform: translateY(-0.2em); transform: translateY(-0.2em); }
}

@keyframes slideRotate {
  0%   { opacity: 0; transform: translateY(0.2em); }
  10%, 30% { opacity: 1; transform: translateY(0); }
  40%, 100% { opacity: 0; transform: translateY(-0.2em); }
}

.rotating-main span:nth-child(1) { 
  animation-delay: 0s; 
  -webkit-animation-delay: 0s; 
}
.rotating-main span:nth-child(2) { 
  animation-delay: 2s; 
  -webkit-animation-delay: 2s; 
}
.rotating-main span:nth-child(3) { 
  animation-delay: 4s; 
  -webkit-animation-delay: 4s; 
}



/* Decorative elements */
.hero-decor {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  z-index: 1;
}

.decor-circle {
  width: 80px;
  height: 80px;
  border: 15px solid rgba(42, 92, 170, 0.1);
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
}

.decor-line {
  width: 40px;
  height: 40px;
  border: 8px solid transparent;
  border-right-color: rgba(42, 92, 170, 0.1);
  border-bottom-color: rgba(42, 92, 170, 0.1);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Media query for tablets */
@media (max-width: 992px) {
  .hero-section {
    min-height: 60vh; /* Reduced height for tablets */
  }

  .hero-title {
    font-size: 2.2rem; /* Smaller font size for tablets */
    text-align: center;
  }

  .dynamic-subtitle {
    font-size: 0.9rem; /* Even smaller for tablets */
  }

  .hero-decor {
    display: none; /* Hide decorative elements on smaller screens */
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh; /* Full viewport height for mobile */
  }

  .hero-title {
    font-size: 1.8rem; /* Smaller font size for mobile */
  }

  .dynamic-subtitle {
    font-size: 0.8rem; /* Even smaller for mobile */
  }

  .hero-content-container {
    padding: 10px; /* Reduce padding for smaller screens */
  }

  .rotating-main {
    width: 200px; /* Reduce width for rotating text */
    height: 50px;
  }
}
/* 2 */

.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
    overflow: hidden;
  }
  
  .service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  }

  .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 auto;
  }

  .service-card:hover .icon-circle {
    transform: rotate(15deg) scale(1.1);
  }

  .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200,150,100,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .service-card:hover .hover-overlay {
    opacity: 1;
  }

  .divider {
    position: relative;
    overflow: hidden;
    height: 4px;
  }

  .divider::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: inherit;
    animation: dividerSlide 1.5s ease-in-out infinite;
  }

  @keyframes dividerSlide {
    0% { left: -100%; }
    100% { left: 100%; }
  }


  
.image-frame {
  transform: perspective(1000px) rotateY(-15deg);
  border-radius: 1rem;
  overflow: hidden;
}

.hover-raise {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-raise:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgb(31, 101, 8) !important;
}


@media (max-width: 992px) {
  .image-frame {
    transform: none;
    margin-bottom: 2rem;
  }
  

/* Blogs */

}

  .magic-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
  }

  .magic-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg) scale(1.02);
  }

  .magic-image {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
  }

  .magic-image:hover {
    transform: scale(1.1) rotate(1deg);
  }

  .magic-title {
    background: linear-gradient(45deg, #198754, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
  }

  .magic-underline {
    width: 230px;
    height: 3px;
    background: #198754;
    animation: underlinePulse 3s ease-in-out infinite;
  }

  .magic-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(25, 135, 84, 0.4);
    border-radius: 50%;
    animation: float 3s infinite;
    filter: blur(1px);
  }

  .magic-link:hover {
    animation: linkSparkle 0.6s ease;
  }

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

  @keyframes titleGlow {
    0% { filter: drop-shadow(0 0 2px rgba(25, 135, 84, 0.3)); }
    100% { filter: drop-shadow(0 0 8px rgba(25, 135, 84, 0.6)); }
  }

  @keyframes underlinePulse {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(1.2); }
    100% { transform: scaleX(1); }
  }

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

  @keyframes linkSparkle {
    0% { transform: translateX(0); }
    25% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
  }