/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    background-color: #121212;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #d3d3d3;
    padding: 10px 30px;
}

.logo {
    max-width: 300px;
}

.main-nav {
    flex-grow: 1;
    text-align: right;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 30px;
}

.main-nav ul li {
    display: inline;
}

.main-nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.main-nav ul li a:hover {
    color: #3cb07e;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
}

.hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Products Page Styles */
.products-section {
    padding: 40px 20px;
    background-color: #444;
    color: #e0e0e0;
    text-align: center;
}

.products-section h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #e0e0e0;
}

/* Sub-Navigation Styles */
.sub-nav {
    text-align: center;
    margin: 20px 0;
}

.sub-nav ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.sub-nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.sub-nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
}

.sub-nav ul li a:hover {
    color: #3cb07e;
}

.module-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Module Enlarging Styles */
.module-item {
    background-color: #555;
    padding: 20px;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    color: #e0e0e0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.module-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.module-item h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
/*
.module-item.enlarged {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
*/
/* Enlarge module on hover */
.module-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
/* Module Icons Container */
.module-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto;
	margin-bottom: 5px;
    font-size: 25px;
    color: #e0e0e0;
    width: 100%;
}

/* Show icons on hover or click */
.module-item:hover .module-info-overlay{
    display: flex; /* Show icons on hover or click */
}

/* Individual Icon Styles */

.doc-icon,
.download-icon {
    cursor: pointer;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

/* Hover Effect for Icons */

.doc-icon:hover,
.download-icon:hover {
    color: #3cb07e;
}

/* Popup modal for module info */
.module-info {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 80%;
    overflow-y: auto;
}


/* Dark overlay for modal effect */
.module-info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

.module-item:hover .module-info{
	display: block;
    opacity: 1
}


.get-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #a5a5a5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.get-btn:hover {
    background-color: #74a791;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: #e0e0e0;
    margin-top: 20px;
    font-size: 0.9em;
}

/* Contact Page Styles */
.contact-section {
    padding: 40px 20px;
    background-color: #444;
    color: #e0e0e0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

#contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#contact-form input[type="text"],
#contact-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #333;
    color: #e0e0e0;
}

#contact-form textarea {
    width: 100%;
    height: 250px;
    padding: 10px;
    resize: none;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #333;
    color: #e0e0e0;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    border-color: #3cb07e;
    outline: none;
}

.checkbox-container {
    display: none;
    font-size: 13px;
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a5a5a5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #74a791;
}

/* Carousel Section */
.carousel-section {
    text-align: center;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
}

.carousel-container {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

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

.carousel-slide img,
.carousel-slide video {
    flex: 0 0 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* About Us Section */
.about-section {
    padding: 50px 20px;
    background-color: #555;
    color: #fff;
    text-align: center;
}

.about-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #fff;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 10px;
    }

    .logo {
        max-width: 150px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .hero {
        padding: 20px 10px;
    }

    .hero h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .carousel-slide img,
    .carousel-slide video {
        max-height: 350px; /* Adjusted for smaller screens */
        width: 100%; /* Ensure video takes full width */
    }

    .products-section {
        padding: 30px 10px;
    }

    .about-section p {
        font-size: 1em;
    }

    #contact-form {
        width: 100%;
        padding: 0 10px;
    }

    #contact-form input[type="text"],
    #contact-form input[type="email"],
    #contact-form textarea {
        width: 90%;
    }
	
	.checkbox-container {
	  font-size: 12px;
	}
}

@media (max-width: 480px) {
    .header-container {
        padding: 5px;
    }

    .logo {
        max-width: 120px;
    }

    .main-nav ul {
        gap: 10px;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .carousel-slide img,
    .carousel-slide video {
        max-height: 250px; /* Further adjustment for very small screens */
        width: 100%; /* Ensure video takes full width */
    }

    .products-section h3 {
        font-size: 1.5em;
    }

    .about-section h2 {
        font-size: 1.5em;
    }

    .about-section p {
        font-size: 0.9em;
    }

    #contact-form input[type="text"],
    #contact-form input[type="email"],
    #contact-form textarea {
        width: 100%;
    }
	
	.checkbox-container {
	  font-size: 12px;
	}
	
	.buy-icon {
		cursor: pointer;
		color: #e0e0e0;
		font-size: 25px;
		transition: color 0.3s ease;
	}
	.buy-icon:hover {
		color: #3cb07e;
	}
}

.modal-overlay,            
#purchase-overlay {        
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 999;            /* behind the modal box */
}


.purchase-modal {
  
  display: block !important;
  opacity:    1   !important;
  
  position: fixed;
  top:      50%;
  left:     50%;
  transform: translate(-50%,-50%);
  
  background-color: #333;
  color:            #fff;
  padding:          20px;
  width:            90%;
  max-width:        800px;
  border-radius:    10px;
  box-shadow:       0 5px 15px rgba(0,0,0,0.7);
  z-index:          1000;    /* above the overlay */
  
  max-height:       80%;
  overflow-y:       auto;
}

/* Reuse your existing form‐styles */
#purchase-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
#purchase-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 5px;
  border:       1px solid #ddd;
  background:   #333;
  color:        #e0e0e0;
}
#purchase-form input:focus {
  border-color: #3cb07e;
  outline:      none;
}
#purchase-form .checkbox-container {
  font-size:    13px;
  margin-bottom: 15px;
}
#purchase-form .submit-btn {
  margin-right: 10px;
}

/* Style for the Country Dropdown */
#purchase-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 25px; /* Increased gap from next element */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #ddd;
    background-color: #333;
    color: #e0e0e0;
    font-size: 1rem; /* Slightly bigger text */
}

/* Consistent focus styling */
#purchase-form select:focus {
    border-color: #3cb07e;
    outline: none;
}

/* Bigger Address Textbox */
#purchase-form input#address {
    height: 50px; /* Increased height */
    font-size: 1rem;
}

/* Optional: Increase spacing below address */
#purchase-form input#address {
    margin-bottom: 20px;
}
