  /* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
  background: #0f0c29;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #24243e, #302b63, #0f0c29); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

header.scrolled {
  background: #0f0c29;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #24243e, #302b63, #0f0c29); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  color: #ff6b6b;
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

/* Home section */
#home {
  min-height: 100vh;
  padding: 100px 5% 50px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f6f9fc, #edf1f7);
}

.home-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.left-content {
  flex: 1;
  padding-right: 2rem;
}

.left-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #333;
}

.box {
  background-color: rgba(255, 107, 107, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.box p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.box p:last-child {
  margin-bottom: 0;
}

.left-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.left-content ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.left-content ul li i {
  margin-right: 10px;
  color: #ff6b6b;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background-color: #ff6b6b;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button i {
  margin-right: 8px;
}

.cta-button:hover {
  background-color: #ff5252;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.banner {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Materials section */
.materials-section {
  padding: 80px 5%;
  background: #20002c;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #cbb4d4, #20002c);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #cbb4d4, #20002c); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

.materials-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #ffffff;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.material-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.material-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.material-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.3rem;
  color: #333;
}

.material-card p {
  padding: 0 1rem 1.5rem;
  color: #666;
  line-height: 1.5;
}

/* Eurobond showcase section */
.eurobond-showcase {
  padding: 80px 5%;
  background: #D3CCE3;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #E9E4F0, #D3CCE3);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #E9E4F0, #D3CCE3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  
}

.eurobond-showcase .container {
  max-width: 1200px;
  margin: 0 auto;
}

.eurobond-showcase h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #333;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.image-wrapper img {
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.description {
  text-align: center;
  max-width: 800px;
}

.description p {
  line-height: 1.8;
  color: #444;
}
/* team section */

.team-section {
  padding: 80px 5%;
  background-color: #f9f9f9;
}
.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #333;
} 
.team-member{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}
.team-member img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 15%;
  margin-bottom: 1rem;
}



/* product world */
.global-reach {
  padding: 60px 20px;
  background: #141E30;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #243B55, #141E30);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #243B55, #141E30); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  text-align: center;
}

.global-reach h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.global-reach p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 40px;
}

.portrait-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-items: center;
}

.video-item {
  max-width: 270px;
}

.video-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-item p {
  margin-top: 10px;
  font-weight: 500;
  color: #2ff1a0;
}



.product-gallery {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.product-gallery h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
}

.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-carousel 30s linear infinite;
}

.carousel-item {
  width: 280px;
  margin: 0 15px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  transition: 0.3s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation: zoom 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1051;
}

#modalCaption {
  margin: 20px auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 1.2rem;
}

@keyframes zoom {
  from {transform: scale(0.1)}
  to {transform: scale(1)}
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 4 - 30px * 4)); /* Width of 4 items plus margins */
  }
}

























/* Contact section */
.contact-section {
  padding: 80px 5%;
  background-color: #fff;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #333;
}

.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.contact-map {
  flex: 1;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}

.contact-info {
  flex: 1;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  color: #444;
  font-size: 1.1rem;
}

.contact-info p i {
  margin-right: 15px;
  color: #ff6b6b;
  font-size: 1.3rem;
  min-width: 20px;
}

.contact-info p a {
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info p a:hover {
  color: #ff6b6b;
}

/* Footer styles */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

.footer p {
  font-size: 0.9rem;
}




#videoModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}




.machine-videos {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.machine-videos h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.machine-videos p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #555;
}

/* Video Grid */
.video-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.video-box {
  flex: 1 1 300px;
  max-width: 500px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-box video {
  width: 100%;
  height:80%;
  border-radius: 10px;
}

.video-box p {
  margin-top: 10px;
  font-weight: bold;
}




@media (max-width: 992px) {
  .home-container {
    flex-direction: column;
    padding-top: 2rem;
  }
  
  .left-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
  }
  
  .banner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .image-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .image-wrapper img {
    width: 100%;
    max-width: 500px;
  }
  
  /* Fix for materials grid on tablet */
  .materials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .carousel-item {
    width: 240px;
    height: 190px;
  }
  
  .carousel-item img {
    height: 190px;
  }
  
  @keyframes scroll-carousel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-240px * 4 - 30px * 4));
    }
  }
}

/* Mobile specific improvements */
@media (max-width: 768px) {
  /* Header and navigation improvements */
  header {
    padding: 0.8rem 5%;
  }
  
  .logo img {
    height: 40px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: auto;
    background: #0f0c29;
    background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-radius: 0 0 0 10px;
    z-index: 1001;
  }
  
  .nav-links.show {
    right: 0;
  }
  
  .nav-links li a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .menu-icon {
    display: block;
    font-size: 1.8rem;
  }
  
  /* Homepage improvements */
  #home {
    padding-top: 100px;
    padding-bottom: 30px;
  }
  
  .left-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .box {
    padding: 1rem;
  }
  
  .left-content ul {
    max-width: 300px;
    margin: 0 auto 1.5rem;
  }
  
  .cta-button {
    padding: 0.7rem 1.3rem;
  }
  
  .banner img {
    max-width: 100%;
  }
  
  /* Materials section */
  .materials-section {
    padding: 60px 5% 40px;
  }
  
  .materials-section h2,
  .eurobond-showcase h2,
  .contact-section h2,
  .team-section h2,
  .product-gallery h2,
  .global-reach h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .material-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  /* Video grid improvements */
  .portrait-video-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .video-item {
    max-width: 150px;
  }
  
  .video-item p {
    font-size: 0.9rem;
    margin-top: 5px;
  }
  
  /* Contact section */
  .contact-section {
    padding: 60px 5% 40px;
  }
  
  .contact-map iframe {
    height: 300px;
  }
  
  .contact-info {
    padding: 1.5rem 1rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  .team-member{
    max-width: 100%;
  }
  .team-member img {
  max-width: 80%;
  max-height: 80%;
}
  .carousel-item {
    width: 200px;
    margin: 0 10px;
  }
  
  .carousel-item img {
    height: 160px;
  }
  
  @keyframes scroll-carousel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200px * 4 - 20px * 4));
    }
  }
  
  .modal {
    padding-top: 30px;
  }
  
  #modalCaption {
    font-size: 1rem;
  }
}
/* Small mobile improvements */
@media (max-width: 576px) {
  /* Header */
  header {
    padding: 0.7rem 4%;
  }
  
  .logo img {
    height: 35px;
  }
  
  .nav-links {
    top: 65px;
    width: 80%;
  }
  
  /* Home section */
  #home {
    padding-top: 90px;
    padding-left: 4%;
    padding-right: 4%;
  }
  
  .left-content h2 {
    font-size: 1.6rem;
  }
  
  .box p {
    font-size: 0.9rem;
  }
  
  .left-content ul li {
    font-size: 0.9rem;
  }
  
  /* Material and showcase sections */
  .materials-section,
  .eurobond-showcase,
  .team-section,
  .contact-section {
    padding: 50px 4% 30px;
  }
  
  .materials-grid {
    gap: 1.5rem;
  }
  
  .material-card h3 {
    font-size: 1.2rem;
  }
  
  .material-card p {
    font-size: 0.9rem;
  }
  
  /* Team section */
  .team-member img {
    max-width: 400px;
  }
  
  /* Product gallery */
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .photo-item {
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Global reach section */
  .global-reach {
    padding: 50px 4%;
  }
  
  .global-reach h2 {
    font-size: 1.6rem;
  }
  
  .global-reach p {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }
  
  .portrait-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Footer */
  .footer {
    padding: 1.2rem 4%;
  }
  
  .footer p {
    font-size: 0.8rem;
  }
  .carousel-item {
    width: 160px;
    margin: 0 8px;
  }
  
  .carousel-item img {
    height: 130px;
  }
  
  @keyframes scroll-carousel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-160px * 4 - 16px * 4));
    }
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .nav-links {
    width: 90%;
  }
  
  .left-content h2 {
    font-size: 1.4rem;
  }
  
  .portrait-video-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .video-item {
    max-width: 130px;
  }
}