* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Marzo W00 Regular";
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
	font-family: "Lucida Console", "Courier New", monospace;
    background: linear-gradient(to bottom, #236275, #000000);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    font-family: "Lucida Console", "Courier New", monospace;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00a86b;
}

header {
    background-image: url('./images/services-header.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

header h1 {
    background-color: #252525;
    background: transparent linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    border: #000000 2px solid;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 2rem;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.service-card {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; 
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00a86b;
}

.service-card p {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #cccccc;
    flex-grow: 1; 
}

.service-card a {
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem; 
}

.service-card a:hover {
    color: #00a86b;
}

.service-card:nth-child(-n+3) a {
    margin-top: auto; 
}

.service-card:nth-child(4) {
    grid-column: 1 / -1; 
    min-height: auto; 
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #00a86b;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-container label {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-align: left;
}

.form-container input,
.form-container textarea,
.form-container select {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    background-color: #3a3a3a;
    color: #ffffff;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 168, 107, 0.5);
}

.form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.form-container select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 1.5rem;
}

.form-container button {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #00a86b;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #008f59;
}

footer {
    background: linear-gradient(to top, #236275, #000000);
    text-align: center;
    padding: 2rem 0;
}

footer img.logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

footer p {
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.9rem;
    color: #cccccc;
}

@import url(https://db.onlinewebfonts.com/c/1e6ec96c95301fa73aa1d026f161a269?family=Marzo+W00+Regular); 

@font-face {
    font-family: "Marzo W00 Regular";
    src: url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.eot");
    src: url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.svg#Marzo W00 Regular")format("svg");
}

/* Mobile adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 0; 
    }

    nav ul {
        gap: 0.5rem; 
        padding: 0 0.5rem;
        max-width: 100%; 
    }

    nav ul li a {
        font-size: 0.75rem; 
    }

    header {
        height: 125px;
        margin-top: 40px; 
    }

    header h1 {
        font-size: 1rem; 
        padding: 0.75rem 1.5rem;
    }

    main {
        padding: 1.5rem; 
        max-width: 100%; 
    }

    .services-container {
        gap: 1.5rem; 
        padding: 0.5rem;
        justify-content: center; 
    }

    .service-card {
        padding: 1.5rem; 
        min-height: 250px; 
    }

    .service-card h3 {
        font-size: 1.5rem; 
    }

    .service-card p {
        font-size: 0.9rem; 
    }

    .modal {
        align-items: center; 
        justify-content: center; 
    }

    .modal-content {
        padding: 0.8rem; 
        width: 90%; 
        max-height: 70vh; 
        overflow-y: auto; 
    }

    .modal-content h2 {
        font-size: 1.2rem; 
        margin-bottom: 0.6rem;
    }

    .close-button {
        font-size: 1.1rem; 
        top: 5px;
        right: 8px;
    }

    .form-container {
        gap: 0.6rem; 
    }

    .form-container label {
        font-size: 0.8rem; 
    }

    .form-container input,
    .form-container textarea,
    .form-container select {
        font-size: 0.8rem; 
        padding: 0.3rem; 
    }

    .form-container textarea {
        min-height: 60px; 
    }

    .form-container select {
        background-size: 0.7rem; 
        padding-right: 1rem; 
    }

    .form-container button {
        font-size: 0.8rem; 
        padding: 0.3rem 0.7rem; 
    }

    footer {
        padding: 1.5rem 0; 
    }

    footer p {
        font-size: 0.8rem; 
    }
}