body {
    min-height: 100vh;
    font-family: 'Open Sans';
    margin: 0;
    padding: 0;
}

.dflex {
    display: flex;
}

.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero h1 {
    font-size: 150px;
}

.hero p {
    font-size: 60px;
    margin-top: 10px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.748);
    z-index: -1;
}

nav {
    display: flex;
    flex-wrap: wrap;
    background: #023364;
    padding: 10px;
    text-align: center;
    justify-content: space-between;
}

nav.img img {
    nav img {
        width: 120px;
        height: auto;
    }
}

nav a {
    color: white;
    text-decoration: none;
    margin: 5px 15px;
    font-size: 18px;
    padding: 5px 10px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffcc00;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(57, 0, 86, 0.329);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 18rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: #fff;
}

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

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 2, 103, 0.825);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card:hover::before {
    opacity: 1;
}

.card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #004283;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.card-overlay a:hover {
    background: #005bb5;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.contact-form label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form button {
    margin-top: 15px;
    padding: 12px;
    background: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #005bb5;
}

@media (max-width: 768px) {
    .card {
        width: 100%;
        margin-bottom: 20px;
    }
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    nav img {
        width: 100px;
        margin-bottom: 10px;
    }
    nav .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .hero h1 {
        font-size: 80px;
    }
    .hero p {
        font-size: 30px;
    }
}