/* Work With Us Page Styles */

/* Hamburger Menu Styles */
.nav__menu {
    position: fixed;
    top: 100px;
    right: -250px;
    width: 250px;
    height: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.nav__menu.open {
    right: 20px;
}

.nav__menu .nav__link {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav__menu .nav__item {
    width: 100%;
}

.nav__menu .nav__link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav__menu .nav__item:first-child .nav__link:hover {
    border-radius: 15px 15px 0 0;
}

.nav__menu .nav__item:last-child .nav__link:hover {
    border-radius: 0 0 15px 15px;
}

.nav__menu .nav__link:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #ffffff;
}

/* Submenu */
.nav__item--has-submenu {
    position: relative;
}

.nav__submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
}

.nav__menu.open .nav__submenu {
    display: block;
}

.nav__submenu-arrow {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav__item--has-submenu.open .nav__submenu-arrow {
    transform: rotate(90deg);
}

.nav__submenu .nav__submenu-item {
    position: relative;
}

.nav__bullet {
    position: absolute;
    left: 1rem;
    color: #e0e7ff;
    transition: color 0.3s ease;
}

.nav__submenu .nav__submenu-item:hover .nav__bullet {
    color: #10b981;
}

.nav__submenu .nav__submenu-link {
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.9rem;
    display: block;
    color: #e0e7ff;
    text-decoration: none;
}

.nav__submenu .nav__submenu-link:hover {
    background: rgba(0, 212, 255, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    color: #e0e7ff;
}

.large-modal {
    max-width: 900px;
    width: 95%;
}

.modal .close {
    color: #e0e7ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.modal .close:hover {
    color: #10b981;
}

/* Work With Us specific styles */
.work-main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 160px);
}

.work-title {
    font-size: 3rem;
    color: #e0e7ff;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.work-section {
    margin-bottom: 0.5rem;
    max-width: 600px;
}

.work-section h2 {
    color: #e0e7ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.work-section p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.work-section ul {
    color: #cbd5e1;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.work-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.work-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.work-table th, .work-table td {
    padding: 1rem;
    text-align: center;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: middle;
}

.work-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    vertical-align: middle;
}

.work-table td {
    background: rgba(255, 255, 255, 0.05);
}

.work-table th:first-child, .work-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.work-table tr:first-child th, .work-table tr:first-child td {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.work-table tr:last-child th, .work-table tr:last-child td {
    border-bottom: none;
}

.work-table th:last-child, .work-table td:last-child {
    border-right: none;
}

.marque-message {
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: marqueGlow 3s ease-in-out infinite;
}

.dark-contrast-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-top: 1rem;
}

.dark-contrast-container ul {
    color: #ffffff;
    margin: 0;
}

.glyph-heading {
    margin-bottom: 1rem;
}

.glyph {
    font-weight: bold;
    background: rgb(10, 54, 71);
    color: #ffffff;
    padding: 1rem 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    display: inline-block;
    margin: 0.25rem 0;
}

.aim-glyph {
    color: #10b981;
}

.chat-glyph {
    color: #CBA135;
}

.read-glyph {
    color: #00d4ff;
}

.disclaimer-glyph {
    color: #ff6b35;
}

.return-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.return-link:hover {
    color: #00ff88;
}

/* Position selection modal */
.position-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.position-option {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    color: #000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.position-option:hover {
    background: rgba(0, 212, 255, 0.5);
}

.position-option.selected {
    background: rgba(0, 212, 255, 0.6);
    border-color: rgba(0, 212, 255, 0.8);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e0e7ff;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    color: #e0e7ff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 0 3px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.form-submit {
    text-align: center;
}

/* Character count */
#charCount {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Q-Map Modal */
.map-container {
    margin: 2rem 0;
    height: 300px;
}

.map-split {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.map-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.map-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #e0e7ff;
    padding: 1rem;
    z-index: 1000;
}

.address-text {
    font-size: 0.9rem;
}

.map {
    height: 300px;
    width: 100%;
}

/* Video Modal Height Fix */
#explainer-videoModal .modal-content,
#quantum-demoModal .modal-content {
    max-height: 90vh;
}

/* Responsive */
@media (max-width: 768px) {
    .work-main {
        padding: 2rem 1rem;
    }

    .work-title {
        font-size: 2rem;
    }

    .work-content {
        padding: 2rem;
    }

    .work-section h2 {
        font-size: 1.25rem;
    }

    .work-table,
    .work-table th,
    .work-table td {
        display: block;
    }

    .work-table th,
    .work-table td {
        text-align: left;
        padding: 0.5rem 0;
    }

    .work-table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .work-table th {
        font-weight: bold;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .marque-message p {
        font-size: 0.9rem;
    }

    .position-options {
        gap: 0.5rem;
    }

    .map-container {
        height: 300px;
    }

    .map-split {
        flex-direction: column;
    }

    .map-card {
        height: 250px;
    }

    .address-text {
        font-size: 0.8rem;
    }
}
