* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    
}


header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}



 img {
    width: 20rem;
    hight: 20rem;
    display: inline-block;
    
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.hero {
    background-color: #0A0C19;
    color: white;
    padding: 2rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #E67E22;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1; /* Default z-index */
}

.service-card.active {
    z-index: 0; /* Lower z-index when active */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-details {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: ECE5CD;
    border-radius: 0 0 10px 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Higher z-index for dropdown */
    animation: slideDown 0.3s ease-out;
}

.service-card.active .service-details {
    display: block;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.service-details li:last-child {
    border-bottom: none;
}

.service-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.service-details p {
    font-size: 0.9rem;
    color: #666;
}

.service-toggle {
    background: none;
    border: none;
    color: #3498db;
    padding: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* New Contact Form Styles */
.contact-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #E67E22;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Base styles remain the same until media queries */

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    @media screen and (max-width: 768px) {
        .nav-links {
            display: none;
            flex-direction: column;
            width: 100%;
            background-color: #2c3e50;
            position: absolute;
            top: 60px;
            left: 0;
            padding: 1rem 0;
            z-index: 10;
        }
    
        .nav-links a {
            display: block;
            padding: 0.75rem;
            color: white;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
    
        .nav-links a:last-child {
            border-bottom: none;
        }
    
        .menu-icon {
            display: block;
        }
    
        /* Show dropdown when active */
        .nav-links.show {
            display: flex;
        }
    }

    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Services Section */
    .services {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .service-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Handle service details on mobile */
    .service-details {
        position: static;
        display: none;
        box-shadow: none;
        padding: 1rem 0 0 0;
    }

    .service-card.active .service-details {
        display: block;
    }

    /* Contact Form */
    .contact-section {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Additional improvements for very small screens */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* Fix for iOS form input zoom */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important;
    }
}

/* Improve touch targets */
@media (hover: none) {
    .nav-links a,
    .cta-button,
    .service-toggle,
    .submit-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.close-modal {
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate
;}}