html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background: #fefefe;
    color: #333;
}

header {
    background: #ffdddd;
    padding: 20px;
    text-align: center;
}

header .logo {
    max-width: 200px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2rem;
    margin: 10px 0;
    color: #333;
}

header p {
    font-size: 1.2rem;
    color: #555;
}

nav {
    background: #f4a4a4;
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 10px;
    transition: color 0.3s, background 0.3s;
}

nav a:hover {
    background: #e74c3c;
    color: #fff;
    border-radius: 5px;
}

main {
    flex: 1; /* Push the footer to the bottom */
    padding: 20px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

main h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

main p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.call-button {
    display: inline-block;
    margin-top: 20px;
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
}

.call-button:hover {
    background: #c0392b;
    transform: scale(1.05); /* Slight zoom effect on hover */
}

footer {
    background: #ffdddd;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: #333;
}

/* Job Descriptions Section */
.job-descriptions {
    margin: 40px auto;
    max-width: 1200px;
    text-align: center;
}

.job-descriptions h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.job-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.job-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.job-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 0;
    }

    nav a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    header .logo {
        max-width: 150px;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main p {
        font-size: 0.9rem;
    }

    .call-button {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    footer {
        font-size: 0.8rem;
    }

    .job-card {
        padding: 15px;
    }

    .job-card h4 {
        font-size: 1.3rem;
    }

    .job-card p {
        font-size: 0.9rem;
    }
}

/* Media query for very small screens (max-width: 480px) */
@media (max-width: 480px) {
    nav a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    header .logo {
        max-width: 120px;
    }

    main h2 {
        font-size: 1.2rem;
    }

    main p {
        font-size: 0.8rem;
    }

    .call-button {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-content h3 {
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input,
.modal-content button {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.modal-content button {
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-content button:hover {
    background: #c0392b;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}