/* Reset default body and html padding/margin */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent sideways scroll */
}

/* Apply box-sizing border-box globally */
*, *::before, *::after {
  box-sizing: border-box;
}
/* background */

.flyer{
    padding: 20px;
    font-size:2rem;
  }

  .flyer :hover{
    color: red;
  }

  .back-smart-water-manage {
    position: relative;
    width: 100%;
    height: auto;
    top: -180px;
    margin-bottom: -180px;
    aspect-ratio: 16 / 9; /* Maintain landscape shape */
    background-image: url(../images/banner/hvismp2.avif); /* Use your image path */
    background-size: contain; /* Show full image without cropping */
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #042a4a; /* Fallback background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Optional overlay for text readability */
.back-smart-water-manage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0); /* Adjust transparency if needed */
}

/* Headline text styling */
.back-smart-water-manage h1 {
  position: relative;
  z-index: 2;
  color: white;
  margin: 0;
  top: 80px;
  bottom:-80px;
  font-size: 8rem; /* Responsive font size */
  font-weight: bold;
  text-align: left; /* Left-align the text */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure the h1 takes up full width for alignment */
  padding-left: 40px; /* Optional: Adds some left padding to avoid sticking to the edge */
}


/* Tablet screens */
@media (max-width: 1024px) {
    .back-smart-water-manage {
        aspect-ratio: 16 / 10;
        top: -160px; /* Adjust the top spacing for smaller screens */
        margin-bottom: -160px; /* Adjust the bottom margin for smaller screens */
    }

    .back-smart-water-manage h1 {
        font-size: 5vw;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .back-smart-water-manage {
        aspect-ratio: 16 / 10;
        top: -80px; /* Adjust the top spacing for smaller screens */
        margin-bottom: -80px; /* Adjust the bottom margin for smaller screens */
    }

    .back-smart-water-manage h1 {
        font-size: 6vw;
    }
}
/* For Small Screens like Surface Duo (540px x 720px) */
@media (max-width: 540px) {
    .back-smart-water-manage {
        aspect-ratio: 16 / 12; /* Maintain appropriate aspect ratio for small screens */
        top: -100px; /* Adjust top spacing for very small screens */
        margin-bottom: -100px; /* Adjust bottom margin for small screens */
        background-size: contain; /* Make sure the image is fully visible */
    }

    .back-smart-water-manage h1 {
        font-size: 8vw; /* Make the text responsive for small screens */
    }
}

/* Small phones */
@media (max-width: 480px) {
    .back-smart-water-manage {
        aspect-ratio: 16 / 12;
        background-size: contain;
        top: -50px; /* Adjust the top spacing for smaller screens */
        margin-bottom: -50px; /* Adjust the bottom margin for smaller screens */
    }

    .back-smart-water-manage h1 {
        font-size: 7vw;
    }
}

/* Small phones */
@media (max-width: 300px) {
    .back-smart-water-manage {
        aspect-ratio: 16 / 12;
        background-size: contain;
        top: -10px; /* Adjust the top spacing for smaller screens */
        margin-bottom: -10px; /* Adjust the bottom margin for smaller screens */
    }

    .back-smart-water-manage h1 {
        font-size: 7vw;
    }
}

/* General Container Styling */
.hvismp-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 70px;
}

/* Hero Section Styling */
.hvismp-hero-section {
    position: relative;
    background-image: url('https://source.unsplash.com/1600x900/?high-voltage');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hvismp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hvismp-hero-content {
    position: relative;
    z-index: 2;
}

.hvismp-hero-content h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hvismp-hero-content p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1.5s ease;
}

/* Keyframes for Hero Section Animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Content Section Styling */
.hvismp-content-section {
    background: #ffffff;
    padding: 60px 20px;
    margin-top: -50px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.hvismp-content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hvismp-content-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #222;
}

.hvismp-content-section p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hvismp-hero-content h1 {
        font-size: 3rem;
    }

    .hvismp-hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hvismp-hero-content h1 {
        font-size: 2.5rem;
    }

    .hvismp-hero-content p {
        font-size: 1rem;
    }
}


/* hvismp-key-container */

.hvismp-point-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
  }
  
  .hvismp-point-title h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    font-size: 2.4rem;
  }
  
  .hvismp-point-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
  }
  
  .hvismp-point-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: start;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }
  
  .hvismp-point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .hvismp-point-card i {
    font-size: 2rem;
    color: #0072ff;
    margin-right: 1rem;
    align-self: flex-start;
  }
  
  .hvismp-point-card p {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    text-align: justify;
  }


  
  @media (max-width: 768px) {
    .hvismp-point-card i {
      font-size: 1.5rem;
    }
  
    .hvismp-point-card p {
      font-size: 1rem;
    }
  }
  
  .hvismp-point-card-animation {
    animation: slideUp 0.5s ease-out;
  }
  
  @keyframes slideUp {
    0% {
      transform: translateY(30px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
 

