/* Team Page Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Office Description Sections */
.office-description {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 80px 40px 60px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 120px;
}

.office-description.palo-alto {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%),
                url('../images/palo%20bridge.webp') center/cover no-repeat;
}

.office-description.london {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%),
                url('../images/london%20bridge.png') center/cover no-repeat;
}

.office-description.dublin {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%),
                url('../images/Dublin%20bridge.jpeg') center/cover no-repeat;
}

.office-description.munich {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%),
                url('../images/Munich%20Bridge.jpg') center/cover no-repeat;
}

.office-description.paris {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%),
                url('../images/paris%20bridge.webp') center/cover no-repeat;
}

.office-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.office-description-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.office-description-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 48px;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.office-description-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.8;
    color: #ffffff;
    margin: 0;
}

/* Team Members Section */
@media (max-width: 1024px) {
    .office-description {
        min-height: 450px;
        padding: 50px 20px;
    }

    .office-description-content h2 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .office-description {
        min-height: 400px;
        padding: 40px 16px;
        background-attachment: scroll;
    }

    .office-description-content h2 {
        font-size: 32px;
    }

    .office-description-text {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .office-description {
        min-height: 350px;
        padding: 30px 16px;
    }

    .office-description-content h2 {
        font-size: 26px;
    }

    .office-description-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .team-members-container {
        grid-template-columns: 1fr;
    }
}

/* Team Members Section */
.team-members {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #f8f9fa;
}

.team-members-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 30px;
    justify-content: center;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 220px;
}

.member-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border: 2px solid #e8e8f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.member-frame:hover {
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.15);
}

.member-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628, #1a2f4d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 48px;
    transition: transform 0.3s ease;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.member-frame:hover .member-image-placeholder,
.member-frame:hover .member-image {
    transform: translateY(0);
}

.member-hover-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(10, 22, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.member-frame:hover .member-hover-bar {
    transform: translateY(0);
}

.biography-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.biography-btn:hover {
    color: #c9a962;
}

.member-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #0a1628;
    text-align: center;
    margin: 0;
}

.member-role {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #6a6a7a;
    text-align: center;
    margin: -8px 0 0;
}

.member-location {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #8a8a98;
    text-align: center;
    margin: -6px 0 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #4a4a5a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #0a1628;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1628, #1a2f4d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.modal-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.modal-initials {
    position: relative;
    z-index: 1;
}

.modal-title-section {
    flex: 1;
}

.modal-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #0a1628;
    margin: 0 0 4px 0;
}

.modal-role {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #c9a962;
    margin: 0;
}

.modal-body {
    margin-top: 20px;
}

.modal-biography {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a5a;
    margin: 0;
    text-align: justify;
}

.modal-biography p {
    margin: 0 0 16px;
}

.modal-biography p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .office-description {
        min-height: 450px;
        padding: 50px 20px;
    }

    .office-description-content h2 {
        font-size: 40px;
    }

    .team-members-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .office-description {
        min-height: 400px;
        padding: 40px 16px;
        background-attachment: scroll;
    }

    .office-description-content h2 {
        font-size: 32px;
    }

    .office-description-text {
        font-size: 16px;
    }

    .team-members-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .palo-alto-description {
        min-height: 350px;
        padding: 30px 16px;
    }

    .palo-alto-description-content h2 {
        font-size: 26px;
    }

    .palo-alto-description-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .team-members-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 40px 16px;
    }

    .member-frame {
        aspect-ratio: auto;
        min-height: 200px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .modal-name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .office-description {
        min-height: auto;
        padding: 112px 18px 42px;
    }

    .office-description-content {
        max-width: 720px;
    }

    .office-description-content h2 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .office-description-text {
        font-size: 15px;
        line-height: 1.75;
    }

    .team-members {
        padding: 48px 18px;
    }

    .team-members-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        justify-items: stretch;
    }

    .team-member-card {
        max-width: none;
        gap: 12px;
    }

    .member-name {
        font-size: 16px;
    }

    .member-role {
        font-size: 12px;
        margin-top: -4px;
    }

    .member-location {
        font-size: 11px;
        margin-top: -2px;
    }

    .modal-content {
        width: min(92vw, 560px);
        max-height: 86vh;
        padding: 24px 20px;
    }

    .modal-biography {
        font-size: 14px;
        line-height: 1.75;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .office-description {
        padding: 104px 14px 36px;
    }

    .office-description-content h2 {
        font-size: 24px;
    }

    .office-description-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .team-members {
        padding: 40px 14px;
    }

    .team-members-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .team-member-card {
        max-width: 100%;
    }

    .member-frame {
        min-height: 260px;
        aspect-ratio: 4 / 4.6;
    }

    .member-hover-bar {
        transform: translateY(0);
        height: 34px;
    }

    .biography-btn {
        font-size: 12px;
    }

    .modal-content {
        width: calc(100vw - 20px);
        padding: 18px 16px;
        border-radius: 10px;
    }

    .modal-header {
        gap: 14px;
        margin-bottom: 20px;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 16px;
    }

    .modal-name {
        font-size: 18px;
    }

    .modal-role {
        font-size: 12px;
    }

    .modal-biography {
        font-size: 13px;
        line-height: 1.7;
    }
}
