/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrollbar */
html, body {
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

/* General body styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 0 10px; /* Padding for mobile view */
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.header-left h1 {
    font-size: 24px;
    color: black;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right a {
    margin: 0 10px;
    color: black;
    text-decoration: none;
    font-size: 14px;
}

.header-right a:hover {
    text-decoration: underline;
}

.username {
    font-size: 14px;
    color: black;
    margin-right: 10px;
}

.login-button, .logout-button {
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

.login-button:hover, .logout-button:hover {
    opacity: 0.8;
}

/* Section Styles */
.section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    min-height: 100vh;
    border-bottom: 1px solid black; /* Add border between sections */
    width: 100%;
}

/* Video Section Styles */
.video-section {
    position: relative;
    overflow: hidden;
    width: 100vw;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Ensure video covers full viewport width */
    height: 100vh; /* Ensure video covers full viewport height */
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: relative;
    z-index: 1; /* Ensure overlay is above video */
    text-align: center;
    color: white;
    max-width: 90%; /* Ensure overlay text does not exceed section width */
    margin: 0 auto; /* Center overlay text */
}

.video-overlay h2 {
    font-size: 64px;
    font-weight: bold;
}

.video-overlay p {
    font-size: 20px;
    margin: 10px 0;
}

.get-started-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px; /* Add space between subtitle and button */
}

.get-started-button:hover {
    opacity: 0.7;
}

/* Info Section Styles */
.info-section {
    background-color: white;
    display: flex;
    padding: 50px;
    border-bottom: 1px solid black; /* Add border between sections */
    flex-wrap: wrap; /* Ensure content wraps in smaller viewports */
    width: 100%;
}

.info-content {
    flex: 1;
    padding-right: 20px;
}

.info-content h2 {
    font-size: 36px;
    font-weight: bold;
    color: #03273f;
}

.info-content p {
    font-size: 15px;
    color: grey;
    margin: 10px 0;
}

.stats {
    display: flex;
    flex-wrap: wrap;
}

.stat {
    margin-right: 30px;
}

.stat h3 {
    font-size: 36px;
    color: black;
}

.stat p {
    font-size: 15px;
    color: darkblue;
}

.info-image {
    flex: 1;
}

.info-image img {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 30px; /* Add rounded corners to the image */
}

/* Innovations Section Styles */
.innovations-section {
    background-color: #f0f8ff; /* Very light color blue */
    text-align: center;
    padding: 50px;
    border-bottom: 1px solid black; /* Add border between sections */
    width: 100%;
}

.innovations-header {
    text-align: center;
    margin-bottom: 30px;
}

.innovations-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: black;
}

.innovations-header p {
    font-size: 15px;
    color: grey;
    margin: 10px 0;
}

.pictures {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Ensure images wrap in smaller viewports */
}

.row img {
    width: 25%; /* Adjust image size */
    height: auto;
    margin: 10px;
    border-radius: 15px; /* Add rounded corners to the images */
    opacity: 0;
    transition: opacity 0.5s;
}

.row img.show {
    opacity: 1;
}

/* Feedback Section Styles */
.feedback-section {
    background-color: white;
    text-align: center;
    padding: 50px;
    border-bottom: 1px solid black; /* Add border between sections */
    width: 100%;
}

.feedback-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-bottom: 10px; /* Ensure spacing below the title */
}

.feedback-section p {
    font-size: 14px;
    color: grey;
    margin: 10px 0;
}

.feedback {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ensure feedback items wrap in smaller viewports */
}

.feedback-item {
    width: 45%; /* Adjusted width for better appearance */
    background-color: lightblue;
    padding: 25px;
    margin: 12px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left; /* Align text to the left */
    opacity: 0; /* Initial opacity */
    transition: opacity 0.5s; /* Fade transition */
}

.feedback-item.show {
    opacity: 1; /* Fully opaque when visible */
}

.feedback-item .stars {
    color: grey;
    text-align: left; /* Justify stars to the left */
}

.feedback-item p {
    font-size: 14px;
    color: #355265;
    margin: 10px 0;
}

.profile {
    display: flex;
    align-items: center;
}

.profile img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.profile-info p {
    margin: 0;
    color: black;
}

.profile-info .location {
    color: grey;
}

.bottom-get-started-button {
    position: absolute; /* Position it absolutely within the relative container */
    bottom: 20px; /* Adjust as needed */
    background: transparent;
    color: black;
    border: 2px solid black;
    border-radius: 10px;
    padding: 10px 20px; /* Match the padding of the original button */
    font-size: 20px; /* Match the font size of the original button */
    text-decoration: none;
    display: inline-block;
    margin-top: 20px; /* Space from the section content if necessary */
    height: auto; /* Ensure the height is not auto to match the original button */
}

.bottom-get-started-button:hover {
    opacity: 0.7;
}

/* Contact Form Section */
.contact-form-section {
    background-color: white;
    padding: 40px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-header h1 {
    font-size: 40px;
    color: black;
}

.contact-form-header p {
    font-size: 16px;
    color: grey;
    margin-top: 10px;
}

.contact-form-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-box {
    width: 60%;
    background-color: #f0f8ff; /* Light blue background */
    padding: 20px;
    border-radius: 10px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    resize: vertical;
}

.submit-inquiry-button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.submit-inquiry-button:hover {
    opacity: 0.8;
}

.contact-form-image img {
    max-width: 100%;
}

/* Contact Info Section Styles */
.contact-info-section {
    display: flex;
    padding: 40px; /* Reduced padding */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-info-left {
    width: 100%;
    padding-right: 20px;
}

.contact-info-left h1 {
    font-size: 40px;
}

.contact-info-left p {
    font-size: 15px;
    margin-top: 10px;
    color: grey;
}

.contact-info-details h2 {
    font-size: 20px;
    margin-top: 20px;
}

.contact-info-details p {
    font-size: 15px;
    color: grey;
}

.contact-info-right {
    width: 100%;
    padding-left: 20px;
}

.contact-info-right iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square aspect ratio */
}

/* Footer Styles */
footer {
    background-color: #111;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    padding: 20px;
    border-top: 1px solid black; /* Border at the top of the footer */
    height: auto; /* Adjust height */
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    padding-right: 20px;
    position: relative; /* Ensure relative positioning for alignment */
}

.footer-left h2 {
    font-size: 24px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 10px; /* Add space between lines */
}

.footer-left .copyright {
    margin-top: 20px; /* Space at the bottom */
}

.facebook-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    margin: 10px 0;
}

.facebook-button img {
    width: 20px; /* Adjust size of the Facebook icon */
    height: auto;
}

/* Footer right section */
.footer-right {
    flex: 1;
    text-align: left; /* Align text to the left */
    position: relative; /* Ensure relative positioning for alignment */
}

.footer-right h2 {
    font-size: 24px;
}

.footer-right p {
    font-size: 14px;
    margin-bottom: 10px; /* Add space between lines */
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    max-width: 300px;
}

.newsletter-form input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
    margin-bottom: 10px;
}

.subscribe-button {
    background-color: transparent; /* Transparent background */
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.subscribe-button:hover {
    opacity: 0.8;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .header-right a, .login-button {
        margin: 10px 0;
    }

    .info-section, .innovations-section, .feedback-section, .contact-form-section, .contact-info-section, .automation-section {
        flex-direction: column;
        padding: 20px 10px;
        width: 100%;
    }
    .info-content, .info-image, .contact-info-left, .contact-info-right, .automation-content, .solutions-pictures {
        width: 100%;
    }
    .stats {
        flex-direction: column;
    }
    .stat {
        margin-bottom: 20px;
    }
    .video-overlay h2 {
        font-size: 32px;
    }
    .video-overlay p, .video-overlay .get-started-button, .bottom-get-started-button {
        font-size: 14px;
        padding: 10px;
    }
    .pictures img, .solution-item img, .automation-item img {
        width: 100%;
        margin: 10px 0;
    }
    .contact-form-box, .contact-form-image, .contact-info-left, .contact-info-right {
        width: 100%;
    }
    .footer-left, .footer-right {
        width: 100%;
        text-align: center;
    }
}

/* Adjust footer layout for mobile */
footer {
    flex-direction: column;
    text-align: center;
}

.footer-left, .footer-right {
    width: 100%;
    margin-bottom: 20px;
}

/* Specific adjustments for smaller devices */
@media (max-width: 480px) {
    .video-overlay h2 {
        font-size: 24px;
    }
    .video-overlay p, .video-overlay .get-started-button, .bottom-get-started-button {
        font-size: 12px;
    }
    .info-content h2, .innovations-header h2, .feedback-section h2, .solutions-header h1, .automation-header h1, .contact-form-header h1 {
        font-size: 24px;
    }
    .info-content p, .innovations-header p, .feedback-section p, .solutions-header p, .automation-header p, .contact-form-header p, .contact-info-left p, .contact-info-details p {
        font-size: 12px;
    }
}
