/* ===============================================
   MOBILE RESPONSIVE STYLES FOR STEAM INDIA
   =============================================== */

/* =============== CSS VARIABLES - DEFINE COLORS =============== */
:root {
  --blue-primary: #2981F9;
  --blue-secondary: #3150CF;
  --blue-accent: #3858D6;
  --blue-light: #66C9FF;
  --white-primary: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #666666;
}

/* =============== GLOBAL MOBILE FIXES =============== */
@media screen and (max-width: 768px) {
  
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Container adjustments */
  .main-content,
  .container,
  .nav-container,
  .hero-container,
  .filter-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* Hide desktop navigation */
  .nav-links {
    display: none !important;
  }

  /* Adjust contact button in navbar */
  .contact-btn {
    font-size: 0.9rem !important;
    padding: 8px 16px;
    display: none; /* Hide desktop contact button on mobile */
  }

  /* =============== TOP CONTACT BAR MOBILE =============== */
  .top-contact-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 1rem;
  }

  /* =============== HERO SECTION MOBILE =============== */
  .hero-section {
    padding: 30px 1rem 50px 1rem;
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-title {
    font-size: 2.2rem !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    text-align: center !important;
  }

  .hero-description {
    font-size: 1.2rem !important;
    text-align: center !important;
  }

  .hero-cta-btn {
    font-size: 1rem !important;
    padding: 14px 28px;
    width: auto;
    max-width: 280px;
  }

  /* =============== HEADINGS MOBILE CENTER =============== */
  .section-title,
  .category-title-new,
  .filter-title,
  .product-title,
  h1, h2, h3, h4, h5, h6 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .section-title {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .category-title-new {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }

  .filter-title {
    font-size: 1.6rem !important;
  }

  /* =============== FILTER SECTION MOBILE - HIDE DROPDOWN =============== */
  .filter-section {
    padding: 30px 1rem;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .search-box {
    min-width: 100%;
    border-radius: 12px;
  }

  .search-box input {
    padding: 14px 16px;
    font-size: 16px !important;
  }

  .search-btn {
    padding: 14px 16px;
  }

  /* Hide dropdown on mobile */
  .filter-select {
    display: none !important;
  }
  
  .search-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* =============== PRODUCT CARDS MOBILE =============== */
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
  }

  .card__article {
    max-width: 100%;
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
  }

  .card__img,
  .carousel-image {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
  }

  .card__data {
    width: 95%;
    padding: 1.2rem 1.5rem;
  }

  .card__title {
    font-size: 1.2rem !important;
    text-align: center;
  }

  .card__description {
    font-size: 0.85rem !important;
    text-align: center;
  }

  .card__details {
    font-size: 0.9rem !important;
    text-align: center;
  }

  /* =============== OIL & GAS SHOWCASE MOBILE =============== */
  .oil-gas-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-top: 1rem !important;
  }

  .showcase-content {
    padding: 1rem 0;
    text-align: center;
  }

  .main-product-img {
    max-height: 280px;
    margin: 0 auto;
  }

  .product-title {
    font-size: 1.4rem !important;
    text-align: center !important;
  }

  .product-description {
    text-align: center;
    font-size: 0.95rem !important;
  }

  .components-grid {
    justify-content: center;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .component-item {
    min-height: 70px;
  }

  .overlay-text {
    font-size: 0.75rem !important;
  }

  /* =============== FLOATING IMAGES MOBILE =============== */
  .floating-images-container {
    height: 320px;
  }

  .floating-image {
    width: 300px;
    height: 300px;
  }

  /* =============== GLASS ORBS MOBILE =============== */
  .glass-orb-1 { width: 150px; height: 150px; }
  .glass-orb-2 { width: 120px; height: 120px; }
  .glass-orb-3 { width: 100px; height: 100px; }
  .glass-orb-4 { width: 130px; height: 130px; }
  .glass-orb-5 { width: 80px; height: 80px; }

  /* =============== FOOTER MOBILE =============== */
  .footer {
    padding: 40px 1rem 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-title {
    font-size: 1.5rem !important;
  }
}

/* =============== SMALL MOBILE FIXES =============== */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  .category-title-new {
    font-size: 1.6rem !important;
  }

  .filter-title {
    font-size: 1.4rem !important;
  }

  .card__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .card__article {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }

  .card__img,
  .carousel-image {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }

  .glass-orb {
    display: none;
  }

  .components-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .floating-images-container {
    height: 280px;
  }

  .floating-image {
    width: 260px;
    height: 260px;
  }
}

/* =============== VERY SMALL SCREENS =============== */
@media screen and (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem !important;
  }

  .section-title {
    font-size: 1.3rem !important;
  }

  .category-title-new {
    font-size: 1.4rem !important;
  }

  .main-content,
  .container {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  .hero-section {
    padding: 25px 0.8rem 40px 0.8rem;
  }

  .filter-section {
    padding: 25px 0.8rem;
  }
}

/* =============== TABLET SPECIFIC (768px - 1024px) =============== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    display: flex !important;
  }

  .hero-title {
    font-size: 3rem !important;
  }

  .section-title {
    font-size: 1.7rem !important;
  }

  .category-title-new {
    font-size: 2rem !important;
  }

  .card__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .oil-gas-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .main-product-img {
    max-height: 350px;
  }
}
