*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Rajdhani', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #1d1d1f;
    position: relative;
    background-image: url('https://unsplash.com/photos/YafgA_ioDf0/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTJ8fGhpZ2h0ZWNoJTIwZ2FyZGVufGVufDB8fHx8MTc0NzEzMzUwMHww&force=true&w=1920');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1d1d1f;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #86868b;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1d1d1f;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1d1d1f;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    padding: 0;
    max-width: 980px;
    margin: 0 auto;
    background: transparent;
    padding-top: 0;
}

header {
    position: static;
    background: transparent;
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
}

header p {
    font-size: 1.25rem;
    margin-top: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
}

section {
    padding: 5rem 2rem;
    margin-bottom: 0;
    border-bottom: none;
}

section p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

section:last-child {
    border-bottom: none;
}

h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-category {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    width: 45%;
    min-width: 300px;
}

.service-category h3 {
    color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

.service-category.it h3 {
    color: #1d1d1f;
}

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

li {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
    border-left: none;
    border-bottom: 1px solid #f5f5f7;
    transition: all 0.2s ease;
    color: #6e6e73;
    font-size: 1.0625rem;
}

li:hover {
    color: #1d1d1f;
    border-bottom-color: #d2d2d7;
}

li:last-child {
    border-bottom: none;
}

.contact-buttons {
    text-align: center;
}

.contact-buttons button {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 14px 28px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.0625rem;
    font-weight: 400;
    margin: 8px;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.contact-buttons button.email-btn {
    background-color: #0071e3;
}

.contact-buttons button:hover {
    background-color: #0077ed;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 3rem;
    border: none;
    width: 80%;
    max-width: 400px;
    border-radius: 0;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for the themed quote */
.themed-quote {
    font-style: italic;
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    color: #E0E0E0;
    max-width: 70%;
    border-left: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    font-size: 1.25rem;
    line-height: 1.8;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* Styles for the new contact form */
.contact-form-container {
    margin-top: 3rem;
    padding: 3rem 2.5rem;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.contact-form-container h3 {
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

.contact-form-container label {
    display: block;
    margin-bottom: 0.6rem;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.9375rem;
}

.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 0;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

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

.contact-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-container button[type="submit"] {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 14px 28px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    font-size: 1.0625rem;
    font-weight: 400;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.contact-form-container button[type="submit"]:hover {
    background-color: #0077ed;
}

/* Styles for Tarifs Section */
#tarifs {
    padding: 5rem 2rem;
    margin-bottom: 0;
}

.tarifs-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.tarif-category {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    width: 45%;
    min-width: 300px;
}

.tarif-category h3 {
    color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

.tarif-category.it h3 {
    color: #1d1d1f;
}

.tarif-category table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tarif-category th,
.tarif-category td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.tarif-category th {
    background-color: transparent;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 1rem;
}

.tarif-category tr:last-child td {
    border-bottom: none;
}

.tarif-category td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1d1d1f;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent;
    color: #fff;
    margin-top: 4rem;
    position: relative;
    font-size: 0.875rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    header {
        padding: 6rem 0 3rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .service-category,
    .tarif-category {
        width: 100%;
    }
}

