/* assets/css/index.css */

/* Banner Section */
.banner-section {
    /* margin-top: var(--header-height); */
    /* Offset fixed header */
    height: calc(100vh - 118px);
    position: relative;
    overflow: hidden;
}
.banner-section .swiper{
    padding-left: 0;
    padding-right: 0;
}
.banner-section .swiper-wrapper{
  padding: 0;
}
.banner-slide {
    height: calc(100vh - 118px);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 20px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Products Section */
.product-slider .swiper-slide {
  height: auto;
  padding-bottom: 20px; /* Space for shadow */
}

.products-section {
    padding-bottom: 60px;
}

.product-card {
  background: var(--white);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  box-shadow: 0 0px 5px rgba(0,0,0,0.1);
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-img {
  height: 250px;
  background-color: #eee;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-info {
  padding: 25px 20px;
  text-align: center;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-black);
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--primary-red);
}

.prod-tags span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.product-card:hover .prod-tags span {
    transform: scale(1.05);
}

/* Solutions Section (Redesigned) */
.solutions-section {
  position: relative;
  min-height: 600px;
  background: var(--primary-black);
  padding: 80px 20px;
  display: flex;
  align-items: center;
}

.solutions-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://x-naturegrass.com/wp-content/themes/GlobalZT/assets/images/home/HOME-Industry-Solutions-Football-field.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.solutions-bg-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.glass-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.solutions-tabs-container {
  display: flex;
  gap: 40px;
  min-height: 300px;
}

.solutions-tabs {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sol-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 15px 20px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sol-tab:hover, .sol-tab.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.solutions-content-area {
  flex: 1;
  color: var(--white);
  position: relative;
}

.sol-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.sol-content.active {
  display: block;
}

.sol-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.sol-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
  opacity: 0.9;
}

.sol-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.sol-features i {
  color: var(--primary-green);
}

/* Company Intro (Enhanced) */
.intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-black);
}

.intro-text p {
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Counters */
.stats-container {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat-card {
  background: var(--white);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0px 15px rgba(0,0,0,0.1);
  text-align: center;
  flex: 1;
  transition: all 0.3s ease;
  /* border-bottom: 3px solid var(--primary-red); */
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Photo Wall */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pw-item {
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
  transform: scale(0); /* Initial state for animation */
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pw-item.active {
  transform: scale(1);
}

.pw-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pw-item:hover img {
  transform: scale(1.1);
}

/* Video Section */
.video-section {
  height: 400px;
  background-image: url('https://x-naturegrass.com/wp-content/themes/GlobalZT/assets/images/home/HOME-Manufacturing-Excellence.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.video-overlay {
  position: relative;
  background: url('https://x-naturegrass.com/wp-content/themes/GlobalZT/assets/images/home/HOME-Manufacturing-Excellence.webp') no-repeat fixed center / cover;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.video-overlay>*{
  position: relative;
  z-index: 5;
}
.video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-red);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px; /* Visual center adjustment */
}

/* Ripple Effect */
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.play-btn::before, .play-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-red);
  z-index: -1;
  animation: ripple 2s infinite ease-out;
}

.play-btn::after {
  animation-delay: 1s;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.advantage-item {
    padding: 40px 20px;
    background: var(--white);
    box-shadow: 0 0px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    color: var(--white);
}

/* Cases Section (Tabbed) */
.cases-section.bg-light {
  position: relative;
  background: url('https://x-naturegrass.com/wp-content/themes/GlobalZT/assets/images/home/HOME-Company-Cases-Tangshan-Nanhu-Football-Park.webp') no-repeat fixed center / cover;
}
.cases-section .section-title{
  color: white;
}
.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.cases-section .container{
   position: relative;
   z-index: 5;
}
.cases-tabs {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.case-tab {
  background: transparent;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  padding: 10px 30px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.case-tab:hover {
    color: var(--primary-red);
    background: rgba(211, 47, 47, 0.05); /* Light red hover */
}

.case-tab.active {
  color: var(--white);
  background: var(--primary-red);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.case-tab::after {
  display: none;
}

.case-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.case-pane.active {
  display: block;
}

.case-split {
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  /* border: 1px solid rgba(0,0,0,0.03); */
}

.case-text {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-black);
}
.case-text .btn{
  width: fit-content;
}
.case-desc {
  color: #555;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.case-details {
  margin-bottom: 35px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  /* border-left: 4px solid var(--primary-red); */
}

.case-details li {
  margin-bottom: 12px;
  color: var(--primary-black);
  display: flex;
  font-size: 0.95rem;
  border-bottom: 1px dashed #e0e0e0;
  padding-bottom: 8px;
}

.case-details li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.case-details strong {
    min-width: 100px;
    color: #888;
    font-weight: 500;
}

.case-img {
  flex: 1;
  min-height: 400px;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* News Section */
.news-slider .swiper-slide {
  height: auto;
  padding-bottom: 20px; /* Space for shadow */
}

.news-card {
  background: var(--white);
  border: none;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.news-card .short{
  font-size:0.85rem; 
  color:#666; 
  margin-bottom:10px; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden;
}
.news-img {
  height: 220px;
  background: #eee;
  overflow: hidden;
  position: relative;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--primary-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-date::before {
    content: '\f073'; /* FontAwesome calendar */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--primary-black);
  transition: color 0.3s ease;
}

.news-card:hover .news-title {
  color: var(--primary-red);
}

.news-content a {
    margin-top: auto;
    display: inline-flex;
    align-items: center; 
    gap: 5px;
    transition: gap 0.3s ease;
}

.news-card:hover .news-content a {
    gap: 10px;
}

/* Partners */
.partners-section {
    /* background-color: var(--light-gray); */
    padding: 50px 0;
}

.partner-logo {
    /* filter: grayscale(100%); */
    opacity: 0.2;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.partner-logo:hover {
    opacity: 0.5;
}
/* CTA Block */
.cta-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://x-naturegrass.com/wp-content/themes/GlobalZT/assets/images/home/HOME-Ready-to-Start-Your-Project.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

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

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-title{
        font-size: 2rem;
    }
    .banner-subtitle{
        font-size: 1rem;
    }
    .glass-container{
        padding: 20px;
    }
    .solutions-tabs-container,
    .stats-container{
        flex-direction: column;
    }
    .intro-container{
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cases-tabs{
        width: 100%;
        flex-direction: column;
        border-radius: 15px;
    }
    .case-split{
        flex-direction: column;
    }
    .case-img{
        min-height: auto;
    }
    .case-text{
        padding: 20px;
    }
    .photo-wall{
        grid-template-columns: repeat(3, 1fr);
    }
    
}

/* Scroll Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity;
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}