:root {
    --primary-color: #4a90e2;
    --secondary-color: #5cb85c;
    --accent-color: #f0ad4e;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --dark-gray: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hide the mobile menu button on larger screens */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide the regular nav links on mobile */
    }

    .mobile-menu {
        display: block; /* Show the mobile menu button */
        font-size: 2rem;
        cursor: pointer;
    }

    /* Styles for the mobile menu when it's open */
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        text-align: center;
    }

    .nav-links.show li {
        margin: 10px 0;
    }
}


main {
    margin-top: 60px;
}

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    background-color: rgba(74, 144, 226, 0.8);
    padding: 3rem;
    border-radius: 15px;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #ec971f;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.about {
    background-image: url('media/images/storm.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    position: relative;
}

.about-content {
    background-color: rgba(255, 255, 255, 0.7); /* 70% white, adjust as needed */
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.features {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.customers {
    padding: 6rem 0;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.customer-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.customer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.customer-item img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.customer-item:hover img {
    transform: scale(1.15);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
    width: 30px; /* Set a fixed width for icons to align text */
}

.contact-item p {
    margin: 0;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

.contact-form .submit-button-container {
    display: flex;
    justify-content: flex-start; /* Aligns the button to the left or you can use center*/
}

.contact-form .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.contact-form .cta-button:hover {
    background-color: #ec971f;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonial-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
}


.faq-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(5, 161, 44, 0.831);
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-width: 150px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .nav-links {
        display: none;
    }

    .about-content,
    .contact-info,
    .footer-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contact-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem;
    }

    .customer-item img {
        max-width: 100px;
    }
}

/* Hide the mobile menu on larger screens */
.mobile-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Show the mobile menu on smaller screens */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    /* Hide the nav-links on mobile by default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        text-align: center;
    }

    /* Show the menu when the 'show' class is added */
    .nav-links.show {
        display: flex;
    }
}
