/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* Modern font for a clean look */
    color: #333;
    overflow-x: hidden;
}

/* Hero Section with Video Background */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: white;
    z-index: 2;
    text-align: left;
}

.title {
    margin: 0;
    font-family: 'DM-Sans';
    font-size: 40px; 
    font-weight: light; 
    /* letter-spacing: 2px; */
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.subtitle {
    margin: 0;
    font-family: 'DM-Sans';
    font-size: 30px;
    font-weight: 100;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
}

/* About Me Section */
#about {
    background-color: #CFCABE;
    padding: 60px 20px;
    text-align: center;
    /* margin-top: 50px; */
}

#about .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

#about p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 25px;
    font-size: 1em;
    background-color: #363d44;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    margin-top: 20px;
}

.btn:hover {
    background-color: #96999e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s;
    text-align: center;
}

.close-btn {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

.close-btn:hover {
    color: red;
}

/* Footer Styles */
footer {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
    /* margin-top: 50px; */
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    display: inline;
    margin: 0 15px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-weight: 300;
}

footer ul li a:hover {
    text-decoration: underline;
}

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

@font-face {
    font-family: 'DM-Sans';
    src: url('/fonts/DMSans-Light.ttf');
    font-weight: light;
}

@font-face {
    font-family: 'DM-Sans';
    src: url('/fonts/DMSans-Thin.ttf');
    font-weight: 100;
}

@font-face {
    font-family: 'DM-Sans';
    src: url('/fonts/DMSans_24pt-Light.ttf');
    font-weight: lighter;
}

@font-face {
    font-family: 'DM-Sans';
    src: url('/fonts/DMSans-LightItalic.ttf');
    font-weight: 200;
}

@font-face {
    font-family: 'DM-Sans';
    src: url('/fonts/DMSans-Regular.ttf');
    font-weight: normal;
}


/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #414141;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    position: relative;
    font-family: 'DM Sans', sans-serif;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.contact-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
}

.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.submit-btn:hover {
    background-color: #96999e;
}

/* Styling for Name and Surname in the Same Row */
.name-row {
    display: flex;
    gap: 10px; /* Space between the fields */
    margin-bottom: 20px; /* Space below the row */
}

.name-row input[type="text"] {
    width: 100%; /* Make both fields equally wide */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    color: #333;
}