/* ===============================
   GLOBAL RESPONSIVE BASE
   =============================== */

/* Make images and embeds scale */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent horizontal scroll on small screens */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Global container */
.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Typography scaling */
h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* ===== Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
  /* About */
  .about-row {
    grid-template-columns: 1fr; /* stack vertically */
    text-align: center;
    gap: 2rem;
  }
  .about-img { order: 1; }
  .about-text { order: 2; }
  .about-text h3 { font-size: 1.5rem; }
  .about-text p { font-size: 0.95rem; }
  .about-img img { width: 100%; max-height: 400px; }

  /* Services & Products */
  .service-grid,
  .product-grid {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
    gap: 2rem;
  }

  /* Video wrapper */
  .video-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
  }
  .video-wrapper video {
    width: 80%;
    max-width: 450px;
    margin: 0 auto;
  }
  .text-content {
    max-width: 90%;
    margin: 0 auto;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-right img { max-height: 35px; }
}

/* ===== Mobile (≤600px) ===== */
@media (max-width: 600px) {
  .about-preview-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .about-preview-section .about-img,
  .about-preview-section .about-img img {
    display: none !important;
  }

  .about-preview-section .about-content {
    width: 100%;
    padding: 0 1rem;
  }

  .about-preview-section .about-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .about-preview-section .about-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .about-preview-section .about-content .btn {
    display: inline-block;
    margin: 0.5rem auto;
  }
}

  /* Services & Products */
  .service-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card img,
  .product-card img {
    margin: 0 auto;
  }

  /* ===== Responsive ===== */
@media (max-width: 1024px) { /* Tablet */
  .video-wrapper {
    position: relative;
    height: auto;              /* let container grow with text */
    display: flex;
    flex-direction: column;    /* stack elements vertically */
    justify-content: center;   /* vertical centering */
    align-items: center;       /* horizontal centering */
    text-align: center;
  
  }

  /* Hide video on tablet */
  .video-wrapper video {
    display: none;
  }

  /* Centered text */
  .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical centering inside text container */
    align-items: center;       /* horizontal centering */
    width: 100%;
    max-width: 90%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    color: #000;
    margin-right: 0.1rem;
    margin-left: 12rem;
  }

  .text-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .text-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) { 
  .text-content h3 { font-size: 1.4rem; }
  .text-content p  { font-size: 0.95rem; }
}

@media (max-width: 600px) {
  .text-content {
    width: 100%;
    padding: 1rem;
  }
  .text-content h3 { font-size: 1.3rem; }
  .text-content p  { font-size: 0.9rem; line-height: 1.4; }
}






