/* Import Google Font asynchronously */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');

/* Import FontAwesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #fff;
    color: #222;
    text-align: center;
    line-height: 1.6;
}

/* Header - Desktop (Horizontally Aligned) */
header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures elements are in one line */
    padding: 20px 40px;
    border-bottom: 4px solid #222;
    text-align: left;
    background-color: #f5f5f5; /* Light grey background */
}

/* Header H1 */
header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Header Right Side (Language Switcher + Contact Button) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-switcher {
    font-weight: 600;
}

.language-switcher a {
    text-decoration: none;
    color: #222;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s;
}

.language-switcher a:hover {
    color: #ff6600;
}

.active-lang {
    font-weight: 700;
    color: #ff6600;
    padding: 5px;
}

/* Contact Button (Desktop Only) */
.contact-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #ff6600;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-button:hover {
    background-color: #cc5500;
    transform: scale(1.05);
}

/* Video Banner */
.video-banner {
    margin: 20px auto;
    max-width: 75%;
    border: 2px solid #222;
    border-radius: 10px;
    overflow: hidden;
}

/* Adjust video size while keeping aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    max-height: 500px; /* Prevents excessive height */
}

.video-container video {
    width: 100%;
    height: auto; /* Keeps video fully visible */
}

/* About Us Section - Centered */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #222;
}

.container h1 {
    font-size: 24px;
    color: #222;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 5px;
    display: inline-block;
    font-weight: 700;
}

.container p {
    font-size: 18px;
    font-weight: 400;
    padding: 30px 0; /* More spacing above & below */
}

/* Services Section - 3 columns per row */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Service Tiles */
.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #222;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Icons inside Service Tiles */
.service-tile i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ff6600;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effects */
.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.service-tile:hover i {
    transform: scale(1.2);
}

/* Previous Projects Section */
.previous-projects {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5f5f5;
}

.previous-projects p {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

/* View Projects Button */
.projects-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #222;
    border-radius: 25px; /* Rounded edges */
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.projects-button:hover {
    background-color: #ff6600;
    transform: scale(1.05);
}

/* Contact Button (Footer on Mobile) */
.footer-contact {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #ff6600;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.footer-contact:hover {
    background-color: #cc5500;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 30px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

footer p {
    font-size: 14px;
}

footer a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
}

footer a:hover {
    color: #ff6600;
}

/* Optimize Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services {
        grid-template-columns: repeat(1, 1fr);
    }

    .previous-projects p {
        font-size: 18px;
    }

    .projects-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Mobile Header Fix */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack elements vertically */
        text-align: center;
    }

    header h1 {
        font-size: 22px;
        text-align: center;
    }

    .header-right {
        flex-direction: column; /* Stack language switcher below */
        gap: 10px;
    }

    .language-switcher {
        justify-content: center;
    }

    /* Move Contact Button to Footer on Mobile */
    .contact-button {
        display: none;
    }
}

/* Desktop Fix */
@media (min-width: 1024px) { 
    header h1 {
        margin-left: 10%; /* Aligns with the video */
        text-align: left;
    }
}
