/* Global Styles */
:root {
    --primary-color: #1E3A8A; /* Darker blue */
    --secondary-color: #065F46; /* Darker green */
    --text-color: #1F2937;
    --background-color: #F3F4F6;
    --white: #FFFFFF;
    --gray: #4B5563;
    --light-blue: #93C5FD; /* New color for footer titles */
    --bright-green: #10B981; /* New bright green color for the Send Message button */
}

* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header:hover {
    background-color: rgba(255, 255, 255, 1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    cursor: default;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

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

.nav-links li a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh; /* Changed from fixed height to min-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New overlay styles */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#hero {
    background-image: url('background_1.jpg');
}

#why-choose {
    background-image: url('background_2.jpg');
}

#cta {
    background-image: url('background_3.jpg');
}

.parallax-content {
    width: 100%;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px; /* Increased padding */
    text-align: center;
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
    background-color: rgba(0, 0, 0, 0.6);
    max-width: 1200px;
    border-radius: 12px;
}

#why-choose > div.parallax-content {
    max-width: 100%;
}

.parallax-content > * {
    width: 100%;
}

/* Hero Section */
#hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
#about {
    padding: 80px 20px;
    background-color: var(--white);
    text-align: center;
}

#about h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

#about p {
    font-size: 18px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

#why-choose h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 0.5fr));
    gap: 10px;
    margin-top: 40px;
}

.feature {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.feature h3 {
    color: var(--primary-color);
    margin-top: 15px;
}

.feature p {
    color: var(--text-color);
}

.feature i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Values Section */
#values {
    padding: 80px 20px;
    background-color: var(--white);
}

#values h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value {
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value:hover {
    transform: translateY(-5px);
}

.value h3 {
    color: var(--primary-color);
    margin-top: 15px;
}

.value i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* CTA Section */
#cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Contact Form Styles */
#contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    cursor: pointer;
    border: none;
}

/* Updated styles for the "Send Message" button */
.send-message-button {
    display: inline-block;
    background-color: var(--bright-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.send-message-button:not(:disabled):hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.send-message-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer Styles */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--light-blue); /* Updated footer title color */
    margin-bottom: 20px;
    font-size: 20px; /* Increased font size for better visibility */
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--light-blue); /* Updated hover color to match new footer title color */
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        position: relative;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
        opacity: 0;
    }

    .nav-links.active {
        display: flex;
        max-height: 500px; /* Adjust this value based on your menu's height */
        opacity: 1;
    }

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

    .parallax-section {
        background-attachment: scroll;
    }

    #hero h1 {
        font-size: 36px;
    }

    #hero p {
        font-size: 18px;
    }

    .feature-grid, .value-grid {
        grid-template-columns: 1fr;
    }

    .parallax-content {
        padding: 60px 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.feature, .value {
    animation: fadeIn 0.8s ease-out, slideIn 0.8s ease-out;
}

.cta-button, .send-message-button:not(:disabled) {
    transition: all 0.3s ease;
}

.cta-button:hover, .send-message-button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-links {
    transition: max-height 1.3s ease-out, opacity 1.2s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.nav-links.active {
    max-height: 300px; /* Adjust this value based on your menu's height */
    opacity: 1;
}

@media (min-width: 768px) {
    .nav-links {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
}