/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   (HIGH PERFORMANCE / ZERO SCROLL LAG)
   ========================================= */

/* --- HERO SECTION & ARROW FIX --- */
.scroll-down-icon {
    font-size: 20px;
    color: var(--accent-primary);
    animation: bounce 2s infinite;
    display: inline-block;
    cursor: pointer;
    margin-top: 40px; 
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* --- WHAT WE DO SECTION --- */
.what-we-do {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.wwd-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    align-items: center;
    gap: 60px;
}

.wwd-subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.wwd-title {
    font-size: clamp(32px, 4vw, 48px);
    font-family: "Semplice Pro", sans-serif;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.wwd-main-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 400px;
}

.ceo-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ceo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
}

.ceo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.ceo-info span {
    font-size: 12px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wwd-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
}

.wwd-item {
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wwd-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.quote-item {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-start;
}

.big-q {
    font-family: "Semplice Pro", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-top: -5px;
    color: var(--accent-primary);
}

/* --- SECURE SPACES SECTION --- */
.secure-spaces {
    padding: 100px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-glass);
}

.ss-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.ss-images {
    flex: 1.2; 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.tactical-frame {
    background: rgba(17, 24, 33, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s ease;
    transform: translateZ(0); 
}

.tactical-frame:hover {
    border-color: rgba(16, 185, 129, 0.6);
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
}

.img-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 8px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 4px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.img-box:hover img {
    transform: scale3d(1.05, 1.05, 1); 
}

.ss-text {
    flex: 1;
}

.ss-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.ss-title {
    font-family: "Semplice Pro", sans-serif;
    font-size: clamp(32px, 4vw, 48px); 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}

.ss-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.ss-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.ss-features li {
    font-size: 15px;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- MARQUEE --- */
.scrolling-text-section {
    background-color: var(--bg-main); 
    padding: 60px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    contain: paint layout;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 50px;
    padding-right: 50px;
    animation: scroll-left 25s linear infinite; 
    will-change: transform; 
}

.marquee-content span {
    font-size: clamp(80px, 10vw, 150px);
    font-weight: 800;
    font-family: "Semplice Pro", sans-serif;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
    user-select: none;
}

@keyframes scroll-left {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}

/* --- TEAM SECTION (MAIN LEADERSHIP GRID) --- */
.team-section {
    padding: 100px 0;
    background: var(--bg-main); 
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-group-header {
    margin-top: 60px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-primary); 
    padding-left: 15px;
}

.group-title {
    font-family: "Semplice Pro", sans-serif;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 60px 0;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}

/* Base Clickable Cards */
.clickable-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Large Glass Cards for Leadership */
.team-card {
    width: calc(33.333% - 20px); 
    min-width: 300px;
    max-width: 380px; 
    border-radius: 12px;
    overflow: hidden;
    padding: 10px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
}

.team-card:hover {
    transform: translate3d(0, -8px, 0);
}

.member-img-wrapper {
    position: relative;
    height: 400px; 
    overflow: hidden;
    border-radius: 8px;
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; 
    filter: contrast(1.15) saturate(1.1) sepia(0.15) hue-rotate(-5deg);
    transition: transform 0.6s ease, filter 0.6s ease;
    will-change: transform, filter;
}

.team-card:hover .member-img-wrapper img {
    transform: scale3d(1.05, 1.05, 1); 
    filter: contrast(1.05) saturate(1.2) sepia(0) hue-rotate(0);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95), rgba(10, 14, 23, 0.4) 60%, transparent);
    padding: 40px 20px 20px;
    color: #fff;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.4s ease;
    text-align: center;
    font-size: 14px;
    will-change: transform;
}

.member-overlay p {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.team-card:hover .member-overlay {
    transform: translate3d(0, 0, 0);
}

.member-info {
    padding: 20px 10px 10px;
    text-align: center;
}

.member-info h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.member-info span {
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =======================================================
   CUSTOM CSS GRID ACCORDION (ZERO JANK FIX)
   ======================================================= */
.regional-accordions-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.division-accordion {
    background: linear-gradient(135deg, rgba(26, 35, 47, 0.6) 0%, rgba(17, 24, 33, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden; 
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform: translateZ(0); 
}

.division-accordion.active {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.1);
}

.division-accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid transparent;
    transition: all 0.4s ease;
    user-select: none; 
}

.division-accordion.active .division-accordion-header {
    border-left-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.05);
}

.division-accordion-header:hover {
    background: rgba(16, 185, 129, 0.1);
}

.accordion-icon {
    color: var(--accent-primary);
    font-size: 20px;
    transition: transform 0.4s ease;
}

.division-accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* 1. THE CSS GRID WRAPPER */
.division-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.division-accordion.active .division-accordion-content {
    grid-template-rows: 1fr;
}

/* 2. THE INNER WRAPPER */
.accordion-body-wrapper {
    overflow: hidden;
    min-height: 0;
}

/* 3. THE ACTUAL CONTENT */
.pill-grid {
    padding: 15px 30px 35px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.division-accordion.active .pill-grid {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- COMPACT PILL LAYOUT FOR ON-FIELD TEAMS --- */
.team-pill {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 50px; 
    padding: 8px 20px 8px 8px;
    transition: all 0.3s ease;
    cursor: pointer; 
    transform: translateZ(0);
    box-sizing: border-box;
}

.team-pill:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translate3d(0, -3px, 0); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pill-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background: #111821; 
}

.team-pill:hover .pill-avatar {
    border-color: var(--accent-primary);
}

.pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.15) saturate(1.1) sepia(0.15) hue-rotate(-5deg);
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform, filter;
}

.team-pill:hover .pill-avatar img {
    transform: scale3d(1.15, 1.15, 1); 
    filter: contrast(1.05) saturate(1.2) sepia(0) hue-rotate(0);
}

.pill-info {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0; 
}

.pill-info h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 3px 0;
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pill-info span {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   NEW: UNIFIED PROFILE MODAL (DETAILED PAGE)
   ========================================= */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.active {
    display: flex;
    opacity: 1;
}

.profile-modal-content {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 35, 47, 0.95) 0%, rgba(17, 24, 33, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 60px;
    max-width: 950px;
    width: 95%;
    border-radius: 16px;
    transform: translateY(30px) scale3d(0.95, 0.95, 1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.custom-modal.active .profile-modal-content {
    transform: translateY(0) scale3d(1, 1, 1);
}

/* ⚠️ THIS WAS THE MISSING CLASS THAT BROKE THE LAYOUT ⚠️ */
.modal-bg-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    opacity: 0.05;
    filter: grayscale(100%);
    object-fit: cover;
    pointer-events: none;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.profile-modal-body {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 50px;
    align-items: center;
}

.profile-modal-image {
    flex: 0 0 220px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.05);
}

.profile-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(1) contrast(1.05) !important; 
}

.profile-modal-text {
    flex: 1;
    text-align: left;
}

.profile-modal-text h3 {
    font-family: "Semplice Pro", sans-serif;
    font-size: 36px;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-modal-text h4 {
    color: var(--accent-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-weight: 700;
}

.profile-modal-text .divider {
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    margin-bottom: 20px;
    border-radius: 2px;
}

/* =========================================
   RESTORED: BIOGRAPHY TEXT CONTROL
   ========================================= */
#modalProfileDesc {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 20px;
}

#modalProfileDesc p { margin-bottom: 22px; display: block; }
#modalProfileDesc ul, #modalProfileDesc ol { padding-left: 20px; margin-bottom: 22px; }
#modalProfileDesc li { margin-bottom: 10px; }

#modalProfileDesc::-webkit-scrollbar { width: 4px; }
#modalProfileDesc::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
#modalProfileDesc::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }

/* =========================================
   RESTORED: SOCIAL BAR
   ========================================= */
.modal-social-bar { 
    display: flex; 
    align-items: center;
    gap: 25px; 
    margin-top: 40px; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
}

.social-icon-link { 
    font-size: 24px; 
    color: var(--text-muted); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon-link:hover { 
    color: var(--accent-primary); 
    transform: translateY(-5px); 
    text-shadow: 0 0 15px var(--accent-primary);
}

.custom-platform-icon {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: 0.3s ease;
}

.social-icon-link:hover .custom-platform-icon {
    filter: none;
    opacity: 1;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .team-card { width: calc(50% - 15px); }
    .wwd-grid { gap: 40px; }
    .ss-content { flex-direction: column; text-align: center; }
    .ss-images { max-width: 700px; width: 100%; }
}

@media (max-width: 768px) {
    .team-grid { justify-content: center; }
    .team-card { width: 100%; max-width: 400px; }
    .wwd-grid { grid-template-columns: 1fr; }
    .wwd-content-grid { grid-template-columns: 1fr; gap: 20px; }
    .division-accordion-header { padding: 20px; }
    .division-accordion-header .group-title { font-size: 18px; }
    
    /* Modal Mobile Fixes */
    .profile-modal-content { padding: 30px; }
    .profile-modal-body { flex-direction: column; text-align: center; padding: 0; }
    .profile-modal-image { width: 200px; height: 200px; flex: 0 0 200px; margin: 0 auto; }
    .profile-modal-text { text-align: center; }
    .profile-modal-text .divider { margin: 0 auto 20px auto; }
    #modalProfileDesc { text-align: left; padding-right: 10px; }
    .modal-social-bar { justify-content: center; }
}

@media (max-width: 480px) {
    .team-pill { max-width: 100%; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .profile-modal-content {
        backdrop-filter: blur(10px); /* Lowered from 30px for mobile speed */
    }
}