/* index.css — Alphex Engineers */

/* ================================================================
   1. UTILITIES
   ================================================================ */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, var(--primary), #187091);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #555;
  margin-top: 10px;
  line-height: 1.7;
}

/* ================================================================
   2. LOADER
   ================================================================ */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(135deg, var(--dark1), var(--dark2), var(--dark3));
  z-index: 9999;
  transition: opacity var(--transition), visibility var(--transition);
  padding: 20px;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 6s infinite ease-in-out;
}

.circle.one {
  width: clamp(180px, 25vw, 320px);
  height: clamp(180px, 25vw, 320px);
  background: var(--primary);
  top: 10%;
  left: 10%;
}

.circle.two {
  width: clamp(160px, 22vw, 280px);
  height: clamp(160px, 22vw, 280px);
  background: #ff4ecd;
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

.circle.three {
  width: clamp(140px, 18vw, 230px);
  height: clamp(140px, 18vw, 230px);
  background: var(--accent);
  top: 40%;
  right: 30%;
  animation-delay: 4s;
}

.loader-content {
  text-align: center;
  z-index: 10;
  width: 100%;
  max-width: 700px;
}

.brand-text {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-text span {
  display: inline-block;
  animation: wave 1.5s infinite;
}

/* Wave animation delays for each letter (15 spans) */
.brand-text span:nth-child(1)  { animation-delay: 0s; }
.brand-text span:nth-child(2)  { animation-delay: 0.1s; }
.brand-text span:nth-child(3)  { animation-delay: 0.2s; }
.brand-text span:nth-child(4)  { animation-delay: 0.3s; }
.brand-text span:nth-child(5)  { animation-delay: 0.4s; }
.brand-text span:nth-child(6)  { animation-delay: 0.5s; }
.brand-text span:nth-child(7)  { animation-delay: 0.6s; }
.brand-text span:nth-child(8)  { animation-delay: 0.7s; }
.brand-text span:nth-child(9)  { animation-delay: 0.8s; }
.brand-text span:nth-child(10) { animation-delay: 0.9s; }
.brand-text span:nth-child(11) { animation-delay: 1s; }
.brand-text span:nth-child(12) { animation-delay: 1.1s; }
.brand-text span:nth-child(13) { animation-delay: 1.2s; }
.brand-text span:nth-child(14) { animation-delay: 1.3s; }
.brand-text span:nth-child(15) { animation-delay: 1.4s; }

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  margin: 20px auto 0;
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary);
  animation: fillBar 2s ease forwards;
}

.loading-text {
  margin-top: 18px;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--muted-white);
  letter-spacing: 4px;
  font-weight: 500;
  animation: blink 1s infinite;
}

/* ================================================================
   3. HERO SECTION
   ================================================================ */
.product-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/img/home-bg.webp") center / cover no-repeat;
  z-index: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-slider {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.hero-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  color: white;
}

.hero-text {
  flex: 1;
  transform: translateY(40px);
  opacity: 0;
  transition: 0.8s ease;
}

.hero-slide.active .hero-text {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.hero-text h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark1);
  box-shadow: inset 0 0 13px 20px #e2e7f0a1;
}

.hero-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.hero-btn {
  padding: 10px 25px;
  background: #1e3a8a;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.hero-img {
  flex: 1;
  transform: translateX(60px);
  opacity: 0;
  transition: 0.8s ease;
}

.hero-slide.active .hero-img {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.6s;
}

.hero-img img {
  width: 100%;
  max-width: 500px;
}

.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-controls button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 15px;
  margin: 0 10px;
  cursor: pointer;
}

/* ================================================================
   4. ABOUT / WHO WE ARE
   ================================================================ */
.ydb-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #f2f6f8, #dbe7ee, #f2f6f8);
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.text-col {
  flex: 1 1 55%;
  min-width: 320px;
}

.section-overline {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #0077b6;
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  min-height: 3em;
}

.description p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  min-width: 80px;
}

.trusted-globally {
  font-size: 1.7rem;
  border-left: 6px solid #0077b6;
  padding-left: 1.5rem;
  margin-top: 2rem;
}

/* ================================================================
   5. PRODUCT RANGE
   ================================================================ */
.product-box {
  margin: 90px 0;
}

.product-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.product-slider {
  display: flex;
  gap: 25px;
  transition: transform 0.6s ease;
}

.product-card {
  flex: 0 0 calc(33.333% - 17px);
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.4s ease;
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 95, 153, 0.18);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 20px;
}

.product-content {
  padding: 20px;
}

.product-content h3 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.product-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 18px;
}

.product-content a {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}

.product-content a:hover {
  background: #111;
  color: var(--white);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* ================================================================
   6. INDUSTRIES
   ================================================================ */
.industries-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #f2f6f8, #dbe7ee, #f2f6f8);
  overflow: hidden;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 55px;
}

.industry-box {
  position: relative;
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
}

.industry-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #0d5984, #187091, #a5bdc9);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  transition: 0.4s;
}

.industry-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 95, 153, 0.25);
}

.industry-box:hover::before {
  opacity: 1;
}

.industry-box.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.8s ease;
}

.industry-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d5984, #187091);
  box-shadow: 0 10px 25px rgba(0, 95, 153, 0.25);
  transition: 0.4s ease;
}

.industry-icon i {
  font-size: 32px;
  color: var(--white);
}

.industry-box:hover .industry-icon {
  transform: rotate(8deg) scale(1.1);
}

.industry-box h4 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #0a2e4e;
}

.industry-box p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #4c5f6e;
}

/* ================================================================
   7. THANKS / CTA
   ================================================================ */
.thanks-cta-section {
  position: relative;
  width: 100%;
  padding: 80px 15px;
  /* background: url("/img/thanks.webp") center / cover no-repeat; */
  overflow: hidden;
}

.thanks-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5),
    rgba(13, 89, 132, 0.5),
    rgba(0, 0, 0, 0.5)
  );
  z-index: 1;
}

.thanks-cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 40px rgba(0, 119, 182, 0.35);
  animation: fadeUp 1.2s ease;
}

.thanks-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.thanks-cta p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(90deg, #0d5984, #187091);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.45);
  transition: 0.4s ease;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(90deg, #187091, #0d5984);
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.65);
}

/* ================================================================
   8. DOWNLOAD CATALOGUE
   ================================================================ */
.cta {
  background: linear-gradient(90deg, #0077b6, #005f99);
  padding: 60px 20px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 15px 40px rgba(0, 119, 182, 0.3);
}

.cta h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.cta p {
  line-height: 1.7;
}

.cta .btn {
  background: var(--white);
  color: #0077b6;
  font-weight: 700;
}

.cta .btn:hover {
  background: #f2f4f7;
}

/* ================================================================
   9. FAQ
   ================================================================ */
.faq-section {
  padding: 80px 0;
  background-color: #f4f7fb;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f4f7fb;
  font-weight: 600;
  color: #0a2e4e;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #e9ecef;
}

.faq-question i {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

/* ================================================================
   10. KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-40px); }
}

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
    color: var(--white);
  }
  50% {
    transform: translateY(-14px);
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.9);
  }
}

@keyframes fillBar {
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   11. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .section-heading {
    font-size: 2.2rem;
  }

  .product-card {
    flex: 0 0 calc(50% - 13px);
  }

  .stats-grid {
    gap: 1rem;
  }
}

@media (max-width: 880px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  .stat-item {
    text-align: center;
  }

  .trusted-globally {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hero-img img {
    margin-top: 12px;
  }

  .content-row {
    flex-direction: column;
  }

  .thanks-cta {
    padding: 35px 20px;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .industries-section {
    padding: 70px 0;
  }

  .industry-box {
    padding: 30px 20px;
  }

  .industry-icon {
    width: 65px;
    height: 65px;
  }

  .industry-icon i {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .section-heading {
    font-size: 1.9rem;
  }

  .description p {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .trusted-globally {
    font-size: 1.4rem;
    padding-left: 1rem;
    border-left-width: 4px;
  }
}

@media (max-width: 600px) {
  .hero-controls {
    bottom: unset;
    margin-top: 26px;
  }

  .hero-text h3 {
    font-size: 1.5rem;
  }

  .product-hero {
    height: auto;
    padding: 0 0 100px;
  }
}

@media (max-width: 480px) {
  .brand-text {
    letter-spacing: 1px;
  }

  .loading-text {
    letter-spacing: 2px;
  }

  .product-card {
    flex: 0 0 100%;
  }

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

  .industry-box {
    border-radius: 16px;
  }

  .thanks-cta-section {
    padding: 60px 12px;
  }

  .thanks-cta {
    padding: 30px 18px;
    border-radius: 16px;
  }

  .thanks-cta p {
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stat-item {
    text-align: center;
  }

  .section-heading {
    font-size: 1.7rem;
  }
}