* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #D9D9D9;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Navigation */
.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-bottom: 30px;
    padding-top: 20px;
    order: 2;
}

.nav-link {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(142, 142, 143, 0.4));
}

.nav-svg {
    width: 299px;
    height: auto;
    display: block;
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    order: 1;
}

/* Content */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-image {
    width: auto;
    max-width: 100%;
    height: 70vh;
    max-height: 900px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .wrapper {
        flex-direction: column;
        height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .top-nav {
        position: static;
        padding-top: 25px;
        padding-bottom: 0;
        order: 2;
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .container {
        flex-direction: column;
        padding: 0;
        order: 1;
        justify-content: center;
        align-items: center;
        flex: none;
    }

    .content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-svg {
        width: 250px;
        height: auto;
    }

    .center-image {
        width: 90vw;
        max-width: 400px;
        height: auto;
        max-height: 45vh;
        object-fit: contain;
        margin: 0;
    }

    /* Larger close button for mobile */
    .close-modal {
        font-size: 32px;
        padding: 15px 20px;
        top: 5px;
        right: 5px;
    }
}

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

.modal-content {
    background-color: #D9D9D9;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #8E8E8F;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    /* Larger touch target for mobile */
    padding: 10px 15px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.close-modal:hover,
.close-modal:active {
    color: #000;
}

.modal-content h2 {
    margin: 0 0 30px 0;
    color: #8E8E8F;
    font-size: 28px;
    text-align: center;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #8E8E8F;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #D9D9D9;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #8E8E8F;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #8E8E8F;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #757577;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    display: none;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* Socials Modal Styles */
.socials-modal-content {
    text-align: center;
    padding: 40px 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8E8E8F;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    color: #5a5a5b;
}

.social-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.social-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .social-links {
        gap: 30px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-label {
        font-size: 12px;
    }

    .socials-modal-content {
        padding: 30px 20px;
    }
}
