/* ─── Global Styles & Section Layout ─────────────────────────────── */
:root {
  --section-padding: 5rem 1.5rem;
  --section-max-width: 1100px;
}
body { overflow-x: hidden; }
.section { max-width: var(--section-max-width); margin: 0 auto; padding: var(--section-padding); }
.section-title { margin-bottom: 0.75rem; color: var(--text-dark); font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; text-align: center; line-height: 1.2; }
.section-subtitle { max-width: 720px; margin: 0 auto 3rem auto; color: var(--text-medium); font-size: clamp(1rem, 2.5vw, 1.1rem); text-align: center; }

/* ─── Hero Carousel (with Video) ─────────────────────────────────── */
.hero-section { width: 100%; background-color: var(--primary-blue); overflow: hidden; }
.hero-swiper { width: 100%; height: 500px; }
.slide { position: relative; background-position: center; background-size: cover; }
.video-slide .slide-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 0; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.slide-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; padding: 2rem; color: var(--text-light); text-align: center; }
.slide-content h2 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.slide-content p { font-size: clamp(1rem, 2.5vw, 1.15rem); margin-bottom: 1.5rem; max-width: 500px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.btn-carousel {
  padding: 0.8rem 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  transition: all 0.3s ease;
}
.btn-carousel:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { color: var(--text-light) !important; --swiper-navigation-size: 2.2rem; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.7); }
.hero-swiper .swiper-pagination-bullet-active { background: var(--accent-yellow); }

/* ─── Trusted By Section ─────────────────────────────────────────── */
.trusted-by-section { padding-top: 3rem; padding-bottom: 3rem; background-color: var(--background-light); }
.trusted-by-title { text-align: center; color: var(--text-medium); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 2rem; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; }
.logo-wall img { max-height: 35px; width: auto; max-width: 120px; object-fit: contain; opacity: 0.6; transition: opacity 0.3s ease; }
.logo-wall img:hover { opacity: 1; }

/* ─── How It Works Section ─────────────────────────────────────── */
#how-it-works { background-color: var(--background-white); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.how-step { padding: 2rem; text-align: center; background: var(--background-light); border-radius: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.how-step:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.05); }
.step-badge { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 1.25rem; color: white; font-weight: 600; font-size: 1.25rem; background: var(--primary-blue); border-radius: 50%; }
.how-step h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.how-step p { font-size: 0.95rem; color: var(--text-medium); }

/* ─── Explore Solutions Section ────────────────────────────────── */
#explore-solutions { background-color: var(--background-light); }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.explore-card { position: relative; padding: 1.75rem; text-align: left; background: var(--background-white); border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.explore-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }
.explore-card-icon { width: 50px; height: 50px; margin-bottom: 1.25rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-blue), var(--primary-green)); }
.explore-card-icon svg { color: white; width: 24px; height: 24px; }
.explore-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; line-height: 1.3; }
.explore-card > p { font-size: 0.95rem; color: var(--text-medium); flex-grow: 1; margin-bottom: 1rem;}
.card-details { max-height: 0; margin-top: 0; padding-top: 0; border-top: 1px solid transparent; overflow: hidden; opacity: 0; transition: all 0.5s ease; }
.card-details p { font-size: 0.9rem; line-height: 1.5; color: var(--text-medium); }
.explore-card.active .card-details { max-height: 200px; opacity: 1; margin-top: 1.25rem; padding-top: 1.25rem; border-top-color: #dee2e6; }
.expand-arrow { position: absolute; right: 1.25rem; top: 1.25rem; color: var(--text-medium); opacity: 0.7; transition: all 0.4s ease; }
.explore-card:hover .expand-arrow { opacity: 1; }
.explore-card.active .expand-arrow { transform: rotate(180deg); color: var(--primary-blue); }
.section-button-wrapper { text-align: center; margin-top: 3rem; }
.category-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-green);
  background-color: #e2f5ec;
  border-radius: 50px;
  margin-bottom: 1rem;
  width: fit-content;
}

/* ─── Tabs Section ─────────────────────────────────────────────── */
#pentazero-section { background-color: var(--background-white); }
.tab-navigation { display: flex; justify-content: center; margin-bottom: 3rem; background: var(--background-light); border-radius: 50px; padding: 0.3rem; width: fit-content; margin-left: auto; margin-right: auto; }
.tab-link { padding: 0.75rem 1.75rem; border: none; color: var(--text-medium); font-weight: 500; background: transparent; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; }
.tab-link.active { color: var(--text-dark); background: var(--background-white); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInPanel 0.5s ease; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.tab-text { text-align: left; }
.tab-text h3 { font-size: 2rem; margin-bottom: 1rem; }
.tab-text p { font-size: 1.05rem; margin-bottom: 1.5rem; color: var(--text-medium); }
.tab-text ul { list-style: none; padding: 0; margin-bottom: 2rem; }
.tab-text li { position: relative; padding-left: 2em; margin-bottom: 1rem; }
.tab-text li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-green); font-weight: bold; font-size: 1.2em; }
.tab-image img { width: 100%; max-width: 400px; border-radius: 16px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

/* ─── Real-World Impact Section ────────────────────────────────── */
.impact-stories-section { 
  background-color: var(--background-light); 
}
.impact-swiper { 
  position: relative; 
  padding-bottom: 3rem; 
  max-width: 900px; 
  margin: 0 auto; 
}
.story-card { 
  background: var(--background-white); 
  padding: 2rem; 
  border-radius: 16px; 
  height: auto; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
}
.story-content {
  flex-grow: 1;
}
.story-card h3 {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}
.story-text { 
  font-size: 1rem; 
  color: var(--text-medium); 
  line-height: 1.6; 
  margin-bottom: 2rem; 
}
.story-footer { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center; 
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.story-tech {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
}
.story-tech i {
  color: var(--primary-green);
  font-size: 1.1rem;
}
.impact-swiper .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 1rem;
  text-align: center;
}
.impact-swiper .swiper-pagination-bullet-active { 
  background-color: var(--primary-blue); 
}

/* ─── About Us Preview Section ─────────────────────────────────── */
#about-preview { background-color: var(--background-white); }
.about-box { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 3rem; text-align: left; }
.about-image-container { display: flex; justify-content: center; gap: 1rem; }
.about-img { width: 180px; height: 180px; object-fit: cover; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.about-img:hover { transform: translateY(-5px); }
.about-text h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.about-description { font-size: 1.1rem; line-height: 1.7; color: var(--text-medium); margin-bottom: 2rem; }
.highlight { background: linear-gradient(to top, var(--accent-yellow-light) 50%, transparent 50%); padding: 0 0.1em; margin: 0 -0.1em; }

/* ─── Animations & Responsive ──────────────────────────────────── */
.fade-in, .stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible, .stagger-children > *.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .about-box { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .about-image-container { margin-bottom: 2rem; }
  .about-text { text-align: center; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 1.5rem; }
  .tab-inner { grid-template-columns: 1fr; gap: 2rem; }
  .tab-image { order: -1; }
  .about-img { width: 140px; height: 140px; }
  .logo-wall { gap: 2rem; }
  .logo-wall img { max-height: 25px; }
}