@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }

  main > section:nth-last-of-type(1) {
    padding-bottom: 50px;
}
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    transition: transform 0.3s ease;
  }
  
  header.hidden {
    transform: translateY(-100%);
  }
  
  .nav-links {
    display: flex;
    margin-left: auto;
    list-style: none;
    overflow: hidden;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #6a9ef7;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 37px 20px;
    flex-shrink: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .nav-links a:hover, .nav-links a.active {
    background-color: #e9eef7;
    color: #004aad;
  }
  
  body {
    margin-top: 100px;
  }
  
  .upper-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 999;
  }
  
  .logo img {  
    height: 140px;  
    padding: 30px;
}  

.card-list {
    display: flex;
    overflow: hidden;
    position: relative;
}



/* products and service section */
.content-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #d3d3d3;
    color: black;
}

.content {
    flex: 1;
    text-align: left;
    margin-right: 20px;
}

.content h2 {
    font-size: 5em;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: bold;
    text-align: right;
}

.content p {
    font-size: 1.1em;
    text-align: right;
    margin-top: 20px;
    line-height: 1.5;
}

.image {
    flex: 1;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
        text-align: center;
    }

    .content {
        margin: 0;
    }

    .image {
        margin-top: 20px;
    }
}

/* Industrial Batteries Section */
.industrial-content-section {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
  }
  
  .industrial-content-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    border-bottom: 3px solid #333;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .industrial-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: start;
  }
  
  .industrial-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .industrial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .industrial-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .industrial-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
  }
  
  .industrial-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
  }

/* Renewable Energy Solutions Section */
.renewable-content-section {
    background-color: #1a2658; 
    color: #fff;
    text-align: center;
    padding: 40px;
  }
  
  .renewable-content-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 3px solid #fff;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .renewable-content-section .renewable-p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
  }
  
  .renewable-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: start;
  }
  
  .renewable-card {
    background-color: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .renewable-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .renewable-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .renewable-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .renewable-card p {
    font-size: 14px;
    line-height: 1.6;
  }



/* Power Pillar Section */  
.power-content-section {
    background-color: #f9f9f9;
    text-align: center;
    padding: 40px;
  }
  
  .power-content-section h2 {
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #333;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .power-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
  }
  
  .power-card {
    width: auto;
    height: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.power-card:hover {
    transform: scale(1.05);
}

.power-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

  /* Pop ups */
  #popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
  }
  
  #card-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: none;
    z-index: 1001;
    text-align: center;
  }
  
  #card-popup img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  
  #card-popup button {
    display: block;
    margin: 10px auto 0;
    padding: 10px 20px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
  }
  
  #card-popup button:hover {
    background: #555;
  }

  /* Pop-up (Power Pillar) */
#image-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: none;
  z-index: 1001;
  text-align: center;
}

#image-popup img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#image-popup button {
  display: block;
  margin: 10px auto 0;
  padding: 10px 20px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

#image-popup button:hover {
  background: #555;
}

  

  .renewable-card, .industrial-card {
    width: 300px; 
    height: 450px; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    overflow: hidden; 
    padding: 15px;
    box-sizing: border-box; 
  }

  .power-card{
    width: 300px; 
    height: 250px; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    overflow: hidden; 
    padding: 15px;
    box-sizing: border-box; 
  }


  .renewable-card img, .industrial-card img {
    width: 100%; 
    height: 300px; 
    object-fit: cover;
    border-radius: 8px;
    padding: 5px;
  }

  .power-card img{
    width: 100%; 
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
  }
  
  .renewable-card h3, .industrial-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px; 
    text-align: center;
}

.renewable-card p, .industrial-card p {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 500px;
    color: #666;
}


/* Energy Storage Management System Section */
#energy-storage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #d1d1d1;
    font-family: Arial, sans-serif;
}

#energy-storage .text-content {
    flex: 1;
    margin-right: 20px;
}

#energy-storage h2 {
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid black; 
    padding-bottom: 5px; 
    margin-left: 20px;
    width: 100%; 
    display: block; 
}


#energy-storage p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    margin-left: 40px;
}

#energy-storage img {
    flex: 1;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Our Service Section */  
#our-services {
    background-color: #112760; 
    color: white;
    text-align: center;
    padding: 40px 20px;
}

#our-services h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 10px;
}

.service {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background-color: white;
    color: black;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: auto;
}

.service-card p {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .service {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        max-width: 90%;
    }
}


/* Footer */  
footer {  
  padding: 10px;  
  margin: 0;  
  background-color: white;  
  color: black;  
}  

footer .footer-content {  
  display: flex;  
  justify-content: space-between;  
  align-items: center;  
}  

footer .social-icons {  
  display: flex;  
}   

footer .social-icons img {  
  width: 36px;  
  height: 36px;  
  margin: 0 5px;  
}
