/* services main */
.service-main {
  position: relative;
  background: url("../images/service_main.png") no-repeat center center;
  background-size: 100% 100%;      /* only scale horizontally */
  background-position-x: 50%;       /* horizontal animation start */
  background-position-y: 50%;      /* fixed vertical center */
  height: 300px;
  margin: 36px 0;
  text-align: center;              
}
.service-main-div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px; 
}
.service-main-title {
    font-size: 50px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.service-header-title {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* services main */

/* services */
.services {
  background-color: #ffffff;
}
.group-header{
  text-align:center;
  padding-top: 25px;
  margin-bottom:40px;
}
.animate-section .group-title,
.animate-section .group-desc{
  opacity:0;
  transform:translateY(60px);
  transition:all 1.2s ease;
}
.animate-section.visible .group-title{
  opacity:1;
  transform:translateY(0);
}
.animate-section.visible .group-desc{
  opacity:1;
  transform:translateY(0);
  transition-delay:0.3s;
  padding: 0 10px;
}
.group-title{
  padding: 10px;
  color: var(--primary-accent);
  font-size:50px;
  font-weight:800;
  animation: glowLight 3s ease-in-out infinite alternate;
}
.group-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.747);
  animation: shine 8s infinite;
}
.group-desc{
  max-width:700px;
  margin:auto;
  color:#666;
}
.grid-3, .grid-2, .grid-1 {
  display: grid;
  gap: 30px;
  padding: 15px;
  box-sizing: border-box;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 30px;
}
.grid-1 {
  grid-template-columns: repeat(1, 1fr);
  margin-bottom: 30px;
}
.service-card {
  background: var(--background-purple-shimmer);
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  background-size: 200% 200%;
  animation: goldShimmer 5s ease-in-out infinite;
  padding-bottom: 5px;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s ease;
}
.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-content {
  padding: 20px 40px;
  transition: 0.4s ease;
}
.word{
  display:inline-block;
  opacity:0;
  transform:translateY(20px);
  transition: all 1.5s ease;
}
.word.visible{
  opacity:1;
  transform:translateY(0);
}
.service-title {
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  transition: 1.5s ease;
}
.service-desc {
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.5;
  transition: 1.5s ease;
}
.extra-info {
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  overflow: hidden;
  transition: all 1.5s ease;
}
.service-card:hover {
    background: var(--background-gold-shimmer);
    background-size: 300% 300%;
    animation: goldShimmer 5s ease-in-out infinite;
    color: #1a1a1a !important; 
    transition: transform 1.0s ease, box-shadow 1.0s ease, color 1.5s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(-4px);  
}
.service-card:hover .divider,
.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .extra-info {
    color: #1a1a1a !important;
}
.service-card:hover .extra-info {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
    margin-top: 12px;
}
.service-card.active {
    background: var(--background-gold-shimmer);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.6); 
    transform: translateY(0) scale(1.05); 
    animation: goldShimmer 5s ease-in-out infinite;
    background-size: 300% 300%;
    color: #1a1a1a !important; 
    transition: transform 0.6s ease, box-shadow 0.6s ease, color 0.5s ease;
}
.service-card.active .service-title,
.service-card.active .service-desc,
.service-card.active .extra-info,
.service-card.active .divider {
    color: #1a1a1a !important;
}
.service-card.active .extra-info {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
  margin-top: 12px;
}
.details-section {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  overflow: hidden;
  transition: all 1.2s ease;
  text-align: left;
  margin: 50px 0 20px 0;
}
.details-section.active {
  opacity: 1;
  max-height: 2000px; 
  transform: translateY(0);
}
.details-title {
  font-size: 40px;
  font-weight: bold;
  color: #222222;
  margin-bottom: 10px;
}
.details-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}
/* services */

@media screen and (max-width: 768px) {
    /* services main */
    .service-main-title {
        font-size: 30px;
    }
    .service-header-title {
        font-size: 15px;
    }

    /* services */
    .service-title {
        font-size: 30px;
    }
    .group-title {
        font-size: 28px !important;
        padding: 6px 12px !important;
    }
    .group-desc {
        font-size: 16px !important;
    }
    .grid-3, .grid-2, .grid-1 {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px; 
    }
}

@media screen and (min-width: 769px) {
    /* services */
    .service-card:hover {
        background: var(--background-gold-shimmer);
        transform: translateY(-8px);
    }
    .service-card:hover .divider,
    .service-card:hover .service-title,
    .service-card:hover .service-desc,
    .service-card:hover .extra-info {
        color: #1a1a1a;
    }
    .service-card:hover .extra-info {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
        margin-top: 12px;
    }
}

@media screen and (max-width: 460px) {
    /* services main */
    .service-main-title {
        font-size: 22px;
    }
    .service-header-title {
        font-size: 14px;
    }
}