/* General styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3668AA;
    --text-color: #333;
    --background-color: #fff;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Opera) */
::-webkit-scrollbar {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth !important;
    scrollbar-width: none;
}

body {
    -ms-overflow-style: none;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background-color: var(--secondary-color);
    color: white;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Typography */

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
  .poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
  }
  
  .poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
  }

/*  Navbar section */


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    padding: 0;
    margin: 0;
    border: none;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: bottom;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Dropdown menu styles */

.dropdown {
    position: relative;
    display: inline-block;
    padding: 5px 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border-radius: 4px;
    min-width: 160px;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px; /* Adjusted padding for dropdown content */
    margin: 0; 
    top: 100%;
    left: 0;
    transform: translateY(0);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content ul { 
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    padding: 4px 6px; /* Adjusted padding for list items */
}

.dropdown-content li a {
    color: inherit; /* Ensure link color matches the rest */
    text-decoration: none; /* Remove underline */
}

/* Subsection >> Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero (landing page) section */

.swipe-link {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    padding: 5px 0;
}

.swipe-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

.swipe-link:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/network-bg.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    margin-top: 2rem;
}

.button {
    display: inline-block; /* Make it an inline-block for padding */
    padding: 10px 20px; /* Add some padding */
    background-color: var(--secondary-color); /* Use the secondary color */
    color: #fff; /* White text color */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.button:hover {
    background-color: #1a4f8f; /* Darken the color on hover */
}




.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: white;
}

.btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn.primary.nukib { 
    color: white !important;
}

/* General section styles */

.section {
    padding: 5rem 10%;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    text-decoration: none;
    padding-bottom: 0.5rem;
}

.section h3 {
    font-size: 1em; /* Same size as h2 */
    font-weight: bold; /* Same weight as h2 */
    margin: 1em 0; /* Same margin as h2 */
    color: #333; /* Adjust color as needed */
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Products section styles */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.products-grid a {
    text-decoration: none;
    color: var(--primary-color);
}


.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 350px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.product-card img {
    width: 70px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}   

.product-card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.product-card p {
    text-align: center;
    margin-bottom: auto;
}

.read-more-btn {
    margin-top: auto;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.read-more-btn:hover {
    color: var(--background-color);
}

.read-more-btn:hover::before {
    width: 100%;
}

/* About section styles */
#about {
    line-height: 1.85;
}

#about p { 
    padding-bottom: 1rem;
}



/* Certificates section styles */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.certificate-card img { 
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.certificate-card img:hover {
    transform: scale(1.05);    
}

/* References section styles */

.logo-slider { 
    width: 100%;
    max-width: 1200px;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;

}


.logo-slide-track {
    position: relative;
    display: flex;
    width: calc(300px * 8);
    animation: scroll 20s linear infinite;
}

.logo-slide { 
    width: 300px;
    min-width: 300px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    max-width: 270px;
    max-height: 150px;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 4)); }
}

/* Contact section styles */

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-col {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.7rem;
}

.contact-col p {
    text-align: center;
}

.contact-col iframe {
    width: 100%;
    min-height: 30vh;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);

}

.contact-form h3 {
    margin: 5rem 0 1rem;
    text-align: center;
    color: var(--primary-color);
} 

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    min-height: 150px;
}


/* NIS2 section styles */ 
#nis2 {
    margin: 0 auto;
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 2rem; /* Add padding */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.nis2-content {
    max-width: 80vw; /* Limit width */
    margin: 0 auto; /* Center content */
}

#nis2 h2 {
    color: var(--secondary-color); /* Use secondary color for headings */
    font-weight: 600; /* Slightly bolder */
}

#nis2 p {
    margin-bottom: 1rem; /* Space between paragraphs */
}

#nis2 a {
    color: var(--primary-color);
    transition: color 0.3s ease; /* Smooth transition */
}

#nis2 a:hover {
    color: var(--secondary-color); /* Change color on hover */
}

/* Footer section styles */

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    line-height: 0.8em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Modal section styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    opacity: 0;
    margin: 0 auto;
}

.modal:target {
    display: block;
    opacity: 1;
    pointer-events: auto; 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transform: none;

    top: auto;
    overflow: auto;
}


.modal-content h3 {
    padding-bottom: 1rem;
}

.modal-content p {
    padding-bottom: .7rem;
}

.modal-open {
    overflow: hidden; 
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--secondary-color);
}


/* Media Queries */

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .navbar {
        flex-direction: row;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 0.5rem;
    }

    .hero {
        height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
