/* CSS Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --background-color: #ecf0f1;
    --text-color: #333;
    --font-family: 'Montserrat', sans-serif;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background: var(--secondary-color);
    color: #fff;
    padding: 20px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--accent-color);
}

header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    width: 100%;
    text-align: center;
}

/* Container */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Sections */
section {
    margin: 40px 0;
}

section h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Why Choose Us */
.why-choose-us {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.why-choose-us div {
    background: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.why-choose-us div strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: normal;
}

.why-choose-us div i {
    font-size: 3em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.why-choose-us div p {
    margin-top: 10px;
    font-size: 1em;
    color: var(--text-color);
}

.why-choose-us div:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Industries and Capabilities */
.industries, .capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.industries div, .capabilities div {
    background: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

.industries div i, .capabilities div i {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.industries div p, .capabilities div p {
    margin-top: 10px;
    font-size: 1em;
    color: var(--text-color);
}

.industries div:hover, .capabilities div:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Popup Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Call to Action */
.cta {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 40px 20px;
    border-radius: 5px;
    margin-top: 40px;
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta a {
    background: #2299ce;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background 0.3s;
}

.cta a:hover {
    background: var(--accent-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #fff; /* Set the default text color in the footer to white */
}

footer p {
    margin-bottom: 10px;
    color: #fff; /* Ensure paragraph text is white */
}

footer a {
    color: #fff; /* Change footer links to white */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color); /* Optionally keep hover color as is */
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    header nav ul li {
        margin: 10px 0 0 0;
    }

    header nav ul li:first-child {
        margin-top: 0;
    }
}

 /* Video background styling */
        .video-background {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }
        .video-background video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 100%;
            min-height: 100%;
            z-index: -1;
        }
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }
        .text-carousel-container {
            position: relative;
            z-index: 2;
            text-align: center;
            color: #fff;
            font-size: 2rem;
            font-family: Arial, sans-serif;
            top: 50%;
            transform: translateY(-50%);
        }
        .text-carousel {
            display: inline-block;
        }
        .text-carousel span {
            display: none;
        }
        .text-carousel span.active {
            display: inline;
            animation: fadeIn 1s ease-in-out;
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
