
.hero {
  background-size: cover;
  background-position: center;
}

.solution-components {
  background-image: url('images/nums.png');
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: -10px;
}

.container {
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0 clamp(15px, 5vw, 30px);
}

.btn-primary {
  background: linear-gradient(to right, #1570f0, #4e95f8);
  color: #fff;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
  border: none;
  margin-bottom: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 350;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  cursor: pointer;
}

.btn-secondary {
  background: linear-gradient(to right, #ff5a36, #f7785c);
  color: #fff;
  margin-bottom: 10px;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 350;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image:
  linear-gradient(to bottom, #0047abd9, #002b7cae),
  url('images/network.png');
  width: 100%;
  min-height: clamp(400px, 50vh, 600px);
  height: auto;
  display: flex;
  flex-direction: column;
  background-size: cover;
  color: white;
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

@media (max-width: 1200px) {
.hero .container {
  flex-direction: column; /* Stack items vertically */
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: clamp(10px, 2vw, 20px);
}
.hero {
  flex-direction: column; /* Stack items vertically */
  text-align: center;
  align-items: center;
  justify-content: center;
}

.hero-container {
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5%;
}

.hero-content {
  margin-top: 10px;
  flex-direction: column;
  padding-right: 0%;
  text-align: center !important;
  align-items: center !important;
}
.hero-content p{
width: 90% !important;
padding-left: 10%;
}
}


.hero h1 {
font-size: clamp(1.5rem, 5vw, 2.5rem);
margin-bottom: 0.5rem;
}

.hero p {
font-size: clamp(1rem, 3vw, 1.5rem);
margin-bottom: 1rem;
margin-right: 2rem;
width: 75%;
}

.hero-content{
width: 100%;
flex: 1;
text-align: left;
}

.hero-card {
background-image: url(images/Hydroview.png);
color: #333;
padding: clamp(2rem, 5vw, 10rem) 2rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
color: #ffff;
max-width: 380px;
width: 100%;
}

.hero .container{
display: flex;
text-align: center;
justify-content: center;
max-width: 1500px;
margin: 0 auto;
padding: 0 clamp(15px, 5vw, 30px);
gap: clamp(2rem, 2vw, 5rem);
}

.hero-card h3{
  margin-bottom: 0px;
}

.hero-card p{
  margin-top: 0px;
}

/*Carousel*/
.carousel {
position: relative;
flex: 2;
width: 100%;
height: auto;
min-width: 400px;
max-width: 800px;
overflow: hidden;
}

.carousel-track {
display: flex;
transition: transform 0.5s ease-in-out;
}

.carousel-card .widget .top-right-icon {
position: absolute;
top: 10;
right: 100;
width: 30px; /* Adjust size as needed */
height: 30px;
}

.carousel-card .top-right-icon img {
width: 100%;
height: 100%;
}

.carousel-card .product-tag {
display: inline-block;
position: absolute;
background: linear-gradient(to right, #1570f0, #4e95f8);
color: rgba(255, 255, 255, 0.614);
padding-left: 6px;
padding-right: 6px;
padding: 2px;
margin-top: 5px;
border-radius: 4px;
font-size: clamp(0.3rem, 2vw, 0.6rem);
text-transform: uppercase;
cursor: pointer;
}

.carousel-card .text{
  border-radius: 15px;
  padding: 10px;
  position: absolute;
  bottom: 10px;
  left: 5px;
}

.carousel-card {
flex: 0 0 100%;
position: relative;
aspect-ratio: 16 / 9;
border-radius: 15px;
overflow: hidden;
color: #fff;
text-align: left;
}

.carousel-card .bkg {
  width: 100%;
  margin: -175px 0px 0px 0px;
  min-height: 400px;
  height: auto;
}

.carousel-card .content {
position: absolute;
bottom: 20px;
top: 10px;
left: 20px;
right: 20px;
padding: 15px;
padding-bottom: 2%;
border-radius: 10px;
}

.carousel-card .content h3 {
margin-bottom: 5px;
font-size: 1.5rem;
}

.carousel-card .content p {
margin-bottom: 10px;
font-size: 1rem;
}

.carousel-card .content a {
display: inline-block;
padding: 10px 15px;
background: #ff5a36;
color: #fff;
text-decoration: none;
border-radius: 5px;
}

.carousel-card .widget {
margin-top: 2px;
padding: 1rem;
width: 55%;
background: rgba(255, 255, 255, 0.625);
color: #333;
border-radius: 15px;
text-align: left;
position: relative;
}

.carousel-card .widget .fill-rate {
font-size: 1.2rem;
font-weight: 350;
padding-right: 10px;
color: #233D73;
}

.carousel-card .widget .top-right-icon {
position: absolute;
z-index: 999;
top: 0; /* Adjust as needed */
right: 0; /* Adjust as needed */
}

.carousel-card .widget .top-right-icon img {
display: inline-block;
width: 100%;
height: 100%;
}

.carousel-card .widget .flooding-info {
display: flex;
justify-content: space-between;
align-items: left;
margin-top: 10px;
}

.carousel-card .widget .flooding-info span {
padding-top: 5px;
font-size: 1rem;
}

.carousel-card .widget .flooding-info .highlight {
background: linear-gradient(to right, #ff5a36, #f7785c);
color: #fff;
padding: 5px 10px;
border-radius: 5px;
}

.carousel-buttons {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
display: flex;
justify-content: space-between;
pointer-events: none;
}

.carousel-button {
pointer-events: all;
background: rgba(0, 0, 0, 0.5);
color: #fff;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}

.carousel-indicators {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
}

.carousel-indicator {
width: 10px;
height: 10px;
background: #ddd;
border-radius: 50%;
cursor: pointer;
}

.carousel-indicator.active {
background: #ff5a36;
}

@media (max-width: 768px) {
  .carousel-card{
      width: 330px !important;
      height: 500px !important;
  }
  
  .carousel-card .text{
      top: 200px !important;
      left: 5px;
  }
.carousel-card .content h3 {
    font-size: 1.2rem;
}

.carousel-card .content p {
    font-size: 0.9rem;
}

.carousel-card .widget{
  width: 100%;
}

.carousel-card .content a {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.carousel-buttons {
    width: 95%;
}

.carousel-card .bkg {
  width: 100%;
  margin: 0px 0px 0px 0px !important;
  min-height: 400px;
  height: auto;
}

}

@media (max-width: 480px) {
.carousel-card .content h3 {
    font-size: 1rem;
}

.carousel-card .content p {
    font-size: 0.8rem;
}

.carousel-card .content a {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.carousel-button {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.carousel-card .bkg {
  width: 100%;
  margin: 0px 0px 0px 0px !important;
  min-height: 400px;
  height: auto;
}
}

/* Solution Components */

.solution-components .container{
padding: clamp(20px, 5vw, 60px);
background-image:
linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgba(252, 251, 252, 0.203)),
url('images/nums.png');
background-size: cover;
background-position: center;
font-size: clamp(0.9rem, 2.5vw, 1.2rem);
padding-bottom: 10%;
padding-top: 2%;
height: auto;
max-width: 1200px;
min-height: clamp(400px, 60vh, 550px);
color: #333;
}

@media (max-width: 1200px) {
.solution-components {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px;
}
.components-grid {
  grid-template-columns: 1fr !important; /* Single column layout for smallest screens */
  justify-self: center !important;
  gap: clamp(10px, 2vw, 20px);

}
}

@media (max-width: 900px) {
  .solution-components {
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px;
  }
  .components-grid {
    grid-template-columns: 1fr !important; /* Single column layout for smallest screens */
    gap: clamp(10px, 2vw, 20px);
    padding-bottom: 5% !important;


  }
  }

.solution-components h2 {
margin-bottom: clamp(1rem, 5vw, 2rem);
font-size: clamp(1.5rem, 4vw, 2rem);
text-align: center;
}

.components-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 30vw, 400px), 1fr)); /* Full row layout for large screens */
justify-content: center;
align-items: start; /* Aligns items at the top to maintain spacing */
gap: clamp(20px, 2vw, 30px); /* Consistent gap between rows and columns */
margin-top: clamp(20px, 2vw, 40px);
padding: 0 clamp(5%, 5vw, 10%);
}

.component-card {
background: white;
display: flex;
flex-direction: column;
justify-content: top;
align-items: center;
text-align: center;
position: relative;
color: #333;
padding: clamp(15px, 3vw, 20px);
border: 1px solid #ddd;
border-radius: 18px;
margin-top: 10px;
width: 100%;
height: 100%;
max-width: 500px; /* Prevents cards from becoming too large */
aspect-ratio: 9 / 11;
}

.component-card img{
  width: 65px;
  height: 65px;
  padding-top: 10px;
  box-shadow: #233D73;
}


/* Call-to-Action Section */
.cta {
  background: linear-gradient(to right, #0047abd9, #002b7cae), url(images/network2.png);
  color: #fff;
  min-height: 200px;
  height: auto;
  text-align: center;
  padding: 3rem 0;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
}

.cta-buttons a {
  margin: 0 0.5rem;
}
