/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    line-height: 1.6;
    background-color: #F4F4F4;
}

body, input, textarea, button {
    font-family: 'Montserrat', sans-serif;
}

/* Prevent horizontal scroll or dragging */
body, html {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Transparent Header */
.transparent-header {
    background-color: rgba(244, 244, 244, 0);
    color: #333333;
    padding: 10px 10px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
	border-bottom: none; /* No border by default */
}

.transparent-header.scrolled {
    background-color: rgba(244, 244, 244, 1); /* Full white background on scroll */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow at the bottom */
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.transparent-header .logo {
    flex: 0 0 auto;
}

.transparent-header .logo img {
    height: 100px;
    width: auto;
}

.transparent-header nav {
    flex: 1;
    text-align: right;
}

.transparent-header nav ul {
    list-style: none;
    margin: 0;
    padding: 30px;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.transparent-header nav ul li a {
    color: #333333;
    text-decoration: none;
    font-size: 18px;
	display: inline-block; /* Ensure a is treated as a block-level element */
    transition: transform 0.3s ease, color 0.3s ease;
}

.transparent-header nav ul li a:hover {
	color: #00bbf1;
    transform: scale(1.1); /* Scale up the text slightly when hovered */

	
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 30px;
    color: #00bbf1;
    cursor: pointer;
    position: fixed; /* Keep it fixed within the viewport */
    top: 20px; /* Adjust the top position */
    right: 20px; /* Ensure the menu stays within the viewport */
    z-index: 1002; /* Ensure it's above other elements */
    width: 40px; /* Adjust width for visibility */
    height: 40px; /* Set height to match width */
	background-color: transparent; /* Ensure no background obstructs */
}

/* Hamburger icon styling */
.mobile-menu span {
    display: block;
    text-align: center;
    line-height: 40px; /* Center the icon within the box */
}

@media (max-width: 768px) {  
	.mobile-menu {
        display: block;
    }
	/* Mobile menu container */
    .mobile-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(244, 244, 244, 1); /* Dark background for menu */
        z-index: 1000;
        display: none; /* Hidden by default */
        flex-direction: column;
        justify-content: center;
		overflow-y: auto; /* Ensure menu scrolls if content overflows */
    }
	
	/* Show the mobile menu when it's open */
    .mobile-menu-container.show {
        display: flex;
    }
	
	 /* Keep the logo visible at the top */
    .mobile-menu-container .logo {
        position: absolute;
        top: 10px;
        left: 15%;
        transform: translateX(-50%);
		max-width: 100px; /* Fix logo size */
        height: auto;
    }
	
	.mobile-menu-container .logo img {
		height: 100px;
		width: auto;
	}
	
	  .mobile-menu-container nav ul {
        display: flex;
        list-style: none;
		flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
		margin: 0;
    }

    .mobile-menu-container nav ul li {
        margin: 20px 0;
    }

    .mobile-menu-container nav ul li a {
        color: #333333;
        font-size: 24px; /* Larger font size for mobile menu */
		text-decoration: none; /* Remove underline */
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .mobile-menu-container nav ul li a:hover {
        color: #FFFFFF;
    }

    .transparent-header nav ul {
        display: none; /* Hide default menu */
    }
	
	    /* Disable scroll on body when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }
	
}

/* Hide the mobile menu container on larger screens */
@media (min-width: 769px) {
    .mobile-menu-container {
        display: none !important;
    }

    /* Show the normal desktop menu */
    .transparent-header nav ul {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh; 
    overflow: hidden;
}


/* Parallax Hero Section 
.hero-section {
    background: url('images/heroimage.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}
*/

/* Hero Video Styling */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures the video covers the hero area */
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding-top: 30vh; /* Push content down a bit */
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #FFFFFF; /* Ensure text color is white */
}

.hero-section p {
    font-size: 24px;
    color: #FFFFFF; /* Ensure text color is white */
    margin-bottom: 30px;
}

.hero-section h1,
.hero-section p {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 2s ease-out forwards;
}

.hero-section .hero-content {
    text-align: center;
    z-index: 2;
}


/* Keyframes for fade-in and slide-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.services-section {
    background-color: #F4F4F4;
    padding: 20px 0;
    text-align: center;
}

.services-section h2 {
    color: #333333;
	font-size: 32px;
	font-weight: 400;
    margin-bottom: 20px;
}

/* Flexbox layout for services */
.service-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.service-item {
     flex: 1;
    margin: 0 15px;
    background-color: #fff;
    border-radius: 5px;
    height: 375px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    font-size: 24px;
    color: #333333;
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease, background-image 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Initial subtle drop shadow */
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

/* Button styling for a large block */
.accordion-button {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align: left;
    padding: 0;
	margin: 0; /* Ensure no default margin */
    width: calc(100% - 40px); /* Adjust width to fit within service-item */
    height: auto;
    display: block; /* Ensure text is displayed as block */
    border: none;
    cursor: pointer;
    outline: none;
    color: #333333;
    font-size: 24px;
    font-weight: 400;
    background: none;
    z-index: 1; /* Ensure it's above other content initially */
    transition: opacity 0.3s ease, transform 0.5s ease, background-color 0.5s ease; /* Smooth color and opacity transition */
	opacity: 1;
}
.service-item.wireless-dev {
    background-image: url('images/service1.jpg'); 
}

.service-item.hardware-design {
    background-image: url('images/service3.jpg');
}

.service-item.test-automation {
    background-image: url('images/service5.jpg'); 
}

.service-item.wireless-test {
    background-image: url('images/service2.jpg'); 
}

.service-item.embedded-dev {
    background-image: url('images/service4.jpg'); 
}

.service-item.devops {
    background-image: url('images/service6.jpg'); 
}

/* Hover effect: color change, scale, and shadow animation */
.service-item:hover {
	background-color: #00bbf1; /* Change background color to hide the image */
	transform: scale(1.05); /* Slightly enlarge the item */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-image: none; /* Remove background image on hover */
}

.service-item:hover .accordion-button {
    opacity: 0;
	color: transparent; /* Make the button text disappear smoothly */
	transition: transform 0.5s ease, opacity 0.3s ease; /* Smooth color transition */
}

.service-item:hover .service-content {
    display: block; /* Make the content visible */
    opacity: 1; /* Make content fully visible on hover */
}

/* Content that appears on hover */
.service-content {
	 position: absolute; /* Position relative to .service-item */
    top: 20px;
    left: 20px;
    width: calc(100% - 40px); /* Adjust width to avoid overflow */
    color: #ffffff;
    display: none; /* Hidden initially */
    opacity: 0;
	z-index: 2; /* Ensure it appears above the button on hover */
    transition: opacity 0.3s ease; /* Delay content appearance slightly */
    
}

/* Align the heading and content properly */
.service-content h3, .service-content p, .service-content ul, .service-content li {
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.service-content h3 {
    color: #ffffff;
	font-size: 24px;
	font-weight: 500;
	margin: 0; /* Remove any default margin */
    padding: 0; /* Ensure no padding */
	margin-bottom: 15px;
	text-align: left;
}

.service-content p {
    color: #ffffff;
	font-size: 16px;
    margin-bottom: 20px;
	text-align: left;
}

.service-content ul {
    margin: 0;
    padding-left: 20px; /* Add padding for indent */
    text-align: left;
}

.service-content li {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
    text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* General styling for services section */
     .service-row {
		 display: flex;
		justify-content: flex-start; /* Ensures no shrinking of items */
        flex-direction: column;
        margin-bottom: 0px;
    }
 .service-item {	 
		 min-height: 290px !important;
		 height: 290x !important;
		 overflow: hidden;
		 margin-bottom: 30px;
		 transition: min-height 0.3s ease;
	}	
	.accordion-button {
		font-size: 16px;
		font-weight: 500;
	}
	.service-content h3 {
		font-size: 16px;
		margin-bottom: 10px;
	}
   .service-content p, .service-content ul {
		font-size: 16px;
		margin-bottom: 10px;
	}
	.service-content li {
		font-size: 12px;
	}
}

/* For medium screens (tablets and small laptops) */
@media (max-width: 1024px) {
	.service-item {
		 height: 275px;
	}	
	.accordion-button {
		font-size: 16px;
		font-weight: 500;
	}
	.service-content h3 {
		font-size: 16px;
		margin-bottom: 10px;
	}
   .service-content p, .service-content ul {
		font-size: 12px;
		margin-bottom: 10px;
	}
	.service-content li {
		font-size: 12px;
	}
}
/* About Section */
.about-section {
    background-color: #F4F4F4;
    padding: 20px 0;
    text-align: center;
}

.about-section h2 {
    color: #333333;
	font-size: 32px;
	font-weight: 400;
    margin-bottom: 20px;
}

/* Footer Section */
.footer-section {
	background-color: rgba(244, 244, 244, 1);
    color: #333333;
    padding: 30px;
    text-align: center;
}

.footer-section p {
    margin: 0;
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background-color: #F4F4F4;
    padding: 20px 15px;
    text-align: center;
	max-width: 1400px; /* Ensure it uses the max-width defined */
    margin: 0 auto; /* Center the section horizontally */
    width: 100%; /* Ensure the section uses the full available width */
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-section p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
	margin-top: 20px;
	width: 100%; /* Full width for the container */
    max-width: 1400px; /* Constrain the container to 1400px max */
    margin: 0 auto; /* Center the container on the page */
}

.contact-form {
    flex: 1 1 45%;
    margin: 10px;
	max-width: 45%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #00bbf1;
}

.contact-item p {
    margin: 0;
}

.contact-form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 94%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #FFFFFF;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #00bbf1;
    outline: none;
    background-color: #fff;
}

.contact-form textarea {
    resize: vertical;
    height: 150px;
    margin-bottom: 20px;
}

.contact-form .cta-button {
    display: block;
    width: 100%;
    background-color: #00bbf1;
    color: #333333;
    padding: 12px 20px;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .cta-button:hover {
    background-color: #00bbf1;
    transform: scale(1.05);
}

.map-container {
	flex: 1 1 45%; /* Adjusted width to make it a bit closer */
	margin: 10px; /* Remove margins */
	max-width: 45%;
	position: relative;
    margin-top: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
	pointer-events: none; /* Disable map interactions */
    position: relative;
    z-index: 1;
}

/* Full clickable map overlay */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Ensure this overlay is above everything */
    cursor: pointer;
    background: transparent; /* Transparent clickable area */
}

/* Optional: Hover effect for feedback */
.map-overlay:hover {
    background: rgba(0, 0, 0, 0.1); /* Light hover effect for user feedback */
}

.contact-info-overlay {
    position: absolute;
    top: 10px; /* Adjusts the position on top of the map */
    left: 10px; /* Aligns text towards the left */
    background-color: rgba(255, 255, 255, 0.9); /* White background with some transparency */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Ensures the overlay appears on top of the map */
	pointer-events: none; /* Allow clicks to pass through to the map */
}

.contact-info-overlay p {
    margin: 5px 0;
    font-size: 14px; /* Font size for the contact info */
    color: #333;
	 text-align: left;
}

.contact-info-overlay i {
    margin-right: 8px;
    color: #00bbf1; /* Icon color */
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Ensure button is visibly disabled and not clickable */
.cta-button.disabled {
    pointer-events: none; /* Prevent clicks */
    opacity: 0.6; /* Visually indicate it's disabled */
    cursor: not-allowed; /* Show the "not allowed" cursor */
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 120px 15px; /* Adjust padding for top/bottom and left/right */
		overflow-x: hidden;
		margin: 0 auto;      /* Center-align the section */
        box-sizing: border-box; /* Ensure padding doesn't affect width */
    }
	.contact-container {
        flex-direction: column; /* Stack items on mobile */
		padding: 0 15px; /* Ensure some padding on the sides */
		width: 100%; /* Ensure full width */
        max-width: 100%; /* No width constraints */
		margin: 0 auto; /* Center the container */
        box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    }

    .contact-form, .map-container {
        width: 100%; /* Full width on mobile */
        max-width: 100%; /* Ensure it uses the entire width */
        padding: 0 15px; /* Add padding for some spacing on the sides */
		margin: 0 auto 20px auto; /* Center the form/map with equal margins */
		box-sizing: border-box; /* Prevent padding from affecting the width */
    }

    .contact-form .form-group {
        flex-direction: column; /* Stack input fields on mobile */
        gap: 10px; /* Reduce gap between fields */
    }

    .contact-form input, .contact-form textarea {
        width: 100%; /* Full width for inputs */
        box-sizing: border-box; /* Prevent padding from causing overflow */
    }

    .contact-form .cta-button {
        width: 100%; /* Full width for inputs */
        box-sizing: border-box; /* Prevent padding from causing overflow */
    }

}