/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    font-size: 16px; /* Base font size */
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d3e50;
    padding: 15px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav img {
    width: 30px;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav .nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav .nav-links li a:hover {
    color: #007bff;
}

/* Header Section */
header {
    color: white;
    text-align: center;
    padding: 5px 5px;
}

header img {
    width: 500px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 3rem;
    margin: 0;
}

/* Main Body */
main .section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    color: #2d3e50;
    margin-bottom: 20px;
}

#about {
    background-color: #f9f9f9;
    padding: 20px 20px;
}

.about-container {
    width: 80%;
    margin: auto;
}

#about p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
}

/* Slider Container */
.slider {
    width: 150%; /* Full width */
    height: 600px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: auto;
    margin-top: 20px;
}

/* Slide Wrapper (Ensures Smooth Loop) */
.slides {
    display: flex;
    width: max-content;
    animation: slide 20s linear infinite;
}

/* Slide Images */
.slides img {
    height: 500px;
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Add spacing between images */
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}


/* Technologies Section */
#technologies {
    background-color: #f4f4f4;
    padding: 20px;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
}

.tech-item {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #333;
}

.tech-item p {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tech-item:hover img {
    transform: scale(1.1);
}

/* Applications Section */
#applications {
    background-color: #f4f4f4;
    padding: 20px;
}

.applications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
}

.application-item {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    text-align: center;
}

.application-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.application-item h3 {
    font-size: 1.6rem;
    margin-top: 20px;
    color: #333;
    font-weight: bold;
}

.application-item p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
}

.application-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.application-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
#contact-section {
    background-color: #f9f9f9;  
    padding: 20px;
}

.container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-section,
.form-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.footer-section .copyright {
    text-align: center;
    margin-top: auto;  /* Pushes the copyright text to the bottom */
    padding-top: 20px;  /* Adds some space between the content and the copyright */
}

.footer-section img{
    width: 300px;
}

.form-section {
    flex: 2;
}

.footer-section a {
    text-decoration: none;
    color: inherit;
}

.footer-section a i {
    transform: scaleX(-1);
    margin-right: 5px;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Flexbox layout for form rows */
.form-row {
    display: flex;
    gap: 20px; /* Space between fields */
    margin-bottom: 15px;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

/* Ensure each input field takes up equal space */
.input-field {
    flex: 1;
}

/* Label and input field styling */
label {
    text-align: left;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Styling for the textarea to ensure it stays full width */
textarea {
    height: 150px; /* Adjust as needed */
}

/* Submit button styling */
button {
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover effect for the submit button */
button:hover {
    background-color: #003d7a;
}

/* Media Query for Small Devices */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Smaller font size */
    }

    .hamburger {
        display: block;
    }

    nav .nav-links {
        position: fixed;
        top: 82px;
        right: -200px; 
        background-color: #2d3e50;
        width: 200px;
        height: 100%;
        flex-direction: column;
        align-items: center;
        display: flex;
        gap: 20px;
        transition: right 0.3s ease;
    }

    nav .nav-links.active {
        right: 0;
    }

    nav .nav-links li a {
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .slider {
        width: 90%;
        height: 200px;
    }

    .slides img {
        height: 150px;
        width: auto; /* Maintain aspect ratio */
        margin-right: 5px; /* Add spacing between images */
    }

    header h1 {
        font-size: 2.5rem;
    }

    header img {
        width: 250px;
    }

    .about-container {
        width: 90%;
    }

    .tech-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .tech-item h3 {
        font-size: 1.3rem;
    }

    .applications-container {
        flex-direction: column;
        align-items: center;
    }

    .application-item {
        width: 90%;
        margin-bottom: 20px;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section,
    .form-section {
        width: 100%;
    }

    .footer-section img{
        width: 150px;
    }

    .form-section {
        order: -1; /* Make form appear on top */
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    /* Make sure input fields and labels take full width on mobile */
    .input-field {
        width: 100%;
    }

    /* Ensure textarea also stretches on mobile */
    textarea {
        width: 100%;
    }

    input, textarea {
        font-size: 0.9rem; /* Smaller text for smaller devices */
    }
}

/* Media Query for Medium Devices (tablets, small desktops) */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    header img {
        width: 400px;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .slider {
        width: 80%;
        height: 400px;
    }

    .slides img {
        height: 350px;
        width: auto; /* Maintain aspect ratio */
        margin-right: 5px; /* Add spacing between images */
    }

    .tech-item h3 {
        font-size: 1.4rem;
    }

    .application-item h3 {
        font-size: 1.5rem;
    }

    input, textarea {
        font-size: 1rem;
    }

    .footer-section img{
        width: 200px;
    }
}

/* Media Query for Large Devices (large screens and desktops) */
@media (min-width: 1025px) {
    body {
        font-size: 16px; /* Default font size */
    }

    .slider {
        width: 80%;
        height: 500px;
    }

    .tech-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .tech-item h3 {
        font-size: 1.6rem;
    }

    .application-item h3 {
        font-size: 1.6rem;
    }
}
