body, html {
    margin: 0;
    padding: 0;
	width: 100%;
    height: 100%; 
    color: #00ff00; /* Change text color to green */

}

#matrix-bg {
    position: fixed;
    top: 0;
	left: 0;
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    pointer-events: none;
    z-index: -10; /* Place it behind other elements */
}

header {
	max-width: 100vw !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 102px; /* Fixed height */
    padding: 5px 20px; /* Compact padding */
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
	right: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.7);
    animation: kitt-color-scan 4s linear infinite;
}

.language-switch {
    display: flex;
    gap: 10px;
}

.language-switch button {
    background: linear-gradient(45deg, #333, #555);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.6);
}

.language-switch button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.language-switch button:hover::before {
    left: 100%;
}

/*----------###----------*/

.radio-controls {
    display: flex;
    gap: 10px;
}

.radio-controls button {
    background: linear-gradient(45deg, #333, #555);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.6);
}

.radio-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.radio-controls button:hover::before {
    left: 100%;
}

.menu-container {
    display: flex;
    align-items: center;
}



.main-menu ul {
    display: flex;
    list-style-type: none;
    padding: 0;
}

.main-menu ul li {
    margin: 0 15px;
}

.main-menu ul li a {
    text-decoration: none;
    color: #00ff00;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #00ff00;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.main-menu ul li a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.main-menu ul li a:hover::after {
    transform: scaleX(1);
}

.home-section {
	display: flex;
	flex-wrap: wrap;
    position: relative;
    align-items: center;
    justify-content: space-between; /* Distributes content evenly */
    padding: 5vh 5vw;  /* Adjust vertical and horizontal padding */
    text-align: left; /* Aligns text to the left */
	scroll-margin-top: 120px;
    z-index: 1;
    color: #00ff00; /* Green text color */
}


.home-graphics img {
    width: 400px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #00ff00);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes kitt-color-scan {
    0%, 100% {
        box-shadow: -200px 0 30px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 200px 0 60px rgba(0, 255, 0, 1);
    }
}

.about-section, .contact-section {
	background: transparent !important;
    padding: 60px;
    text-align: center;
    position: relative;
	scroll-margin-top: 120px;
    z-index: 1;
    color: #00ff00; /* Change services, about, and contact sections text color to green */
}

services{
	background: rgba(0, 0, 0, 0.7);
}

.services-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 20px;
    width: 250px;
    border-radius: 10px;
    transition: transform 0.3s;
    border: 1px solid #00ff00;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.6);
    color: #00ff00; /* Change service item text color to green */
}

.service-item:hover {
    transform: rotateY(15deg) scale(1.1);
    border-color: #ffffff;
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px #00ff00);
}

.contact-section form {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #00ff00;
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.5);
	scroll-margin-top: 120px;
    color: #00ff00; /* Change form text color to green */
}

.contact-section input, .contact-section textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #00ff00;
    background: black;
    color: #00ff00;
}

.contact-section button {
    background: #333;
    color: #00ff00;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.contact-section button:hover {
    background: #555;
    transform: translateY(-3px);
}

footer {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 15px rgba(0, 255, 0, 0.7);
	background: rgba(0, 0, 0, 0.8);
    animation: kitt-color-scan 4s linear infinite;
}

.social-media {
    margin-top: 20px;
}

.social-media .social-icon {
    margin: 0 10px;
    display: inline-block;
}

.social-media img {
    width: 30px;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 5px #00ff00);
}

.social-media img:hover {
    transform: scale(1.2);
}

/* Styling for form inputs */
#contact-form input, #contact-form textarea {
    background: black;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px;
}

/* Styling for reCAPTCHA container */
.g-recaptcha {
    margin: 10px 0;
    border: 1px solid #00ff00;
    padding: 10px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.7);
}

/* Button hover effect */
#contact-form button:hover {
    background: black;
    color: #00ff00;
    border: 1px solid #00ff00;
}

/* Social Media Icons */
.social-media .social-icon {
    margin: 0 10px;
    display: inline-block;
}

.social-media img {
    width: 30px;
    filter: drop-shadow(0 0 5px #00ff00);
    transition: transform 0.3s;
}

.social-media img:hover {
    transform: scale(1.2);
}
/* Breathing animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1); /* Original size */
    }
    50% {
        transform: scale(1.1); /* Slightly larger */
    }
}

/* Apply the animation to the logo */
.animated-logo {
    width: 200px; /* Adjust size as needed */
    filter: drop-shadow(0 0 20px #00ff00);
    animation: breathe 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* On hover, make it slightly bigger */
.animated-logo:hover {
    transform: scale(1.2);
}

/* Adjust the container holding the logo and language buttons */
.header {
    position: fixed; /* Keeps the header fixed at the top */
    top: 0; /* Aligns the header to the top of the viewport */
	left: 0;
    width: 100%; /* Ensures the header spans the full width */
    
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.7);
}


/* Logo Styling */
.logo img {
    filter: drop-shadow(0 0 20px #00ff00);
    animation: breathe 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Language Buttons Styling */
.language-switch {
    display: flex;
    gap: 8px; /* Slightly reduce gap between buttons */
}

.language-switch button {
    background: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 3px 8px; /* Smaller padding for smaller buttons */
    font-size: 12px; /* Reduce font size */
    transition: all 0.3s ease;
}

.language-switch button:hover {
    background: #00ff00;
    color: black;
}

.radio-controls {
	
    display: flex;
    gap: 8px; /* Slightly reduce gap between buttons */
}

.radio-controls button {
    background: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 3px 8px; /* Smaller padding for smaller buttons */
    font-size: 12px; /* Reduce font size */
    transition: all 0.3s ease;
}

.radio-controls button:hover {
    background: #00ff00;
    color: black;
}

.services-section {
	scroll-margin-top: 120px;
	text-align: center; /* Center-align text and content */
    margin: 0 auto; /* Ensure the section stays centered */
}

.services-list {
    display: flex;
    justify-content: center; /* Center the service items horizontally */
    flex-wrap: wrap; /* Ensure items wrap on smaller screens */
    gap: 20px; /* Add spacing between service items */
}

.service-item {
    width: 250px; /* Ensure consistent width for service items */
}

#home img {
	filter: drop-shadow(0 0 20px #00ff00);
    max-width: 100%; /* Ensure the image scales properly */
    height: auto;
    animation: float 6s ease-in-out infinite; /* Add floating animation */
}
#home {
	scroll-margin-top: 120px;
    margin-top: 120pxpx; /* Set to a maximum of 30px */
}


/* Logo */
.logo {
	margin-left: 40px; /* Reset any extra margin */
    max-height: 100%; /* Constrain the logo height to the header height */
	width: 125px;
    height: 99px; /* Maintain aspect ratio */
    display: block; /* Prevent inline image behavior */
}

.logo img {
	width: 100%;
    height: 99px; /* Maintain aspect ratio */
    display: block; /* Prevent inline image behavior */
}

.language-switch {
    display: flex;
    gap: 10px;
}

.main-menu ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.main-menu ul li {
    margin: 0 15px;
}





/* Add Hamburger Menu Styling */
.hamburger {
    display: none; /* Hidden by default for desktop view */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000; /* Keep above other elements */
    position: relative; /* Position it within the header */
    right: 10px; /* Align to the far right */
    top: 50%; /* Vertically center within the header */
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #00ff00; /* Green bars */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Icon Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg); /* Top bar becomes part of the "X" */
}

.hamburger.active span:nth-child(2) {
    opacity: 0; /* Middle bar disappears */
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg); /* Bottom bar becomes part of the "X" */
}
.language-switch{
	display: flex;
	top: 50%;
}
.radio-controls {
	display: flex;
	top: 50%;
}
@media (max-width: 768px) {

    /* Hamburger Menu */
    .hamburger {
        display: flex; /* Show hamburger on mobile */
        position: absolute;
        right: 10px; /* Far-right alignment */
        top: 40%; /* Vertically center */
        transform: translateY(-50%);
    }

    /* Rearrange Header Elements */
    .container {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center-align elements */
    }

    .logo {
        order: 1; /* Take up remaining space to push other items */
        margin-left: 0; /* Reset any extra margin */
        flex: 0 1 auto; /* Prevent the logo from stretching */
		}

    .language-switch {
        order: 2;
        display: flex;
        justify-content: center; /* Center the buttons */
        gap: 10px; /* Add spacing between buttons */
    }

    .main-menu {
        order: 3; /* Menu positioned below language buttons */
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 50%; /* Below header */
        right: 1;
        width: 100%; /* Full screen width */
        background-color: rgba(0, 0, 0, 0.9); /* Dark background */
        z-index: 999;
        padding: 10px 0;
    }

    .main-menu.active {
        display: flex; /* Show menu when hamburger is active */
    }
	.logo img {
        max-width: 120px; /* Scale the logo down for mobile */
        height: auto; /* Maintain aspect ratio */
    }
}


/* Desktop View */
@media (min-width: 769px) {
    .hamburger {
        display: none; /* Hide hamburger on larger screens */
    }
    .logo {
		margin-left: 40; /* Reset any extra margin */
		max-height: 100%; /* Constrain the logo height to the header height */
		width: 125px;
		height: 99px; /* Maintain aspect ratio */
		display: block; /* Prevent inline image behavior */
    }
    .main-menu {
        display: flex !important; /* Always show menu on desktop */
        flex-direction: row; /* Horizontal menu */
        position: static; /* Default position */
        background: none; /* Transparent background */
        padding: 0;
        width: auto;
    }

    .main-menu ul {
        flex-direction: row; /* Horizontal layout */
    }

    .main-menu ul li {
        margin: 0 15px; /* Horizontal spacing */
    }

    .main-menu ul li a {
        font-size: 16px; /* Regular font size for desktop */
    }
}


/*header, .logo, .language-switch, .hamburger, .main-menu {
    outline: 1px dashed red; /* Temporary for debugging alignment issues 
}*/

/*Messages section*/

.title {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-size: 2rem;
    margin: 0;
}

/* Section Styling */
#messages-section {
    margin-top: 120px;
    padding: 20px;
}

.subtitle {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Messages Container */
#messages-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual Message Styling */
.message {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border: 1px solid #00ff00;
}

/* Message List */
.message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.message-item {
    margin-bottom: 5px;
    color: #00ff00;
    font-size: 1rem;
}

/* Last Item Spacing */
.message-item:last-child {
    margin-bottom: 0;
}

#matrix-bg1 {
    position: fixed;
    top: 0;
	left: 0;
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    pointer-events: none;
    z-index: -10; /* Place it behind other elements */
}	

.language-switch {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to the next row */
    gap: 10px; /* Adds spacing between buttons */
    justify-content: center; /* Center-aligns buttons horizontally */
}

.language-switch button {
    flex: 1 1 calc(50% - 10px); /* Makes each button take half the width, minus the gap */
    max-width: calc(50% - 10px); /* Ensures buttons don't stretch too much */
    padding: 5px 10px;
    text-align: center;
}

/*scattered*/

/* General Style for Animated Text */
body span {
    display: inline-block;
    opacity: 0; /* Start hidden */
    transform: translate(calc(-50px + 100px * var(--randomX)), calc(-50px + 100px * var(--randomY))) scale(0.5);
    animation: scatter-reconstruct 2s ease forwards;
    animation-delay: calc(var(--delay) * 0.05s); /* Staggered animation */
}

/* Animation Keyframes */
@keyframes scatter-reconstruct {
    0% {
        opacity: 0;
        transform: translate(calc(-50px + 100px * var(--randomX)), calc(-50px + 100px * var(--randomY))) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(0, 0) scale(1.1); /* Slightly overshoot */
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1); /* Final position */
    }
}

.animated-text {
    animation: scatter-reconstruct 2s ease forwards; /* Replace with your animation */
}
