/* ==========================================================================
   ABOUT US HERO LAYER (Optimized Asset Loading & Perfect Centering)
   ========================================================================== */

#about-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;

    background: linear-gradient(135deg, rgba(26, 54, 93, 0.96), rgba(43, 108, 176, 0.9)),
                url("https://images.pexels.com/photos/3183150/pexels-photo-3183150.jpeg?auto=compress&cs=tinysrgb&w=1200") no-repeat center center/cover !important;

    min-height: 320px !important;
    padding: 160px 20px 110px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

/* Soft bottom fade so the hero melts into the page background instead of
   cutting off abruptly - adds a sense of depth right from the first fold */
#about-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(237, 242, 247, 0), #edf2f7);
    pointer-events: none;
}

.hero-content {
    max-width: 850px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    z-index: 2;
}

#about-hero h1 {
    font-size: 40px !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 100% !important;
    letter-spacing: -0.5px;
}

#about-hero p {
    font-size: 18px !important;
    color: #edf2f7 !important;
    font-weight: 500 !important;
    text-align: center !important;
    max-width: 650px !important;
    margin: 0 !important;
}

/* ==========================================================================
   FULL-PAGE BACKDROP (adds life & depth behind the frosted container)
   ========================================================================== */
body {
    background-color: #edf2f7;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(43, 108, 176, 0.10), transparent 40%),
        radial-gradient(circle at 88% 28%, rgba(32, 57, 221, 0.08), transparent 38%),
        radial-gradient(circle at 20% 85%, rgba(26, 54, 93, 0.08), transparent 42%),
        linear-gradient(rgba(237, 242, 247, 0.94), rgba(237, 242, 247, 0.94)),
        url("https://images.pexels.com/photos/3183150/pexels-photo-3183150.jpeg?auto=compress&cs=tinysrgb&w=1600");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: center, center, center, center, top center;
    background-size: auto, auto, auto, auto, cover;
    background-attachment: scroll, scroll, scroll, scroll, fixed;
}

@media (max-width: 900px) {
    /* Fixed backgrounds can jank on mobile browsers - fall back to scroll */
    body {
        background-attachment: scroll, scroll, scroll, scroll, scroll;
    }
}

/* ==========================================================================
   UNIFIED FROSTED GLASS PAGE CONTAINER (wider, more dimensional)
   ========================================================================== */
.page-container {
    position: relative;
    max-width: 1140px;
    margin: 70px auto;
    padding: 70px 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(26, 54, 93, 0.04),
        0 12px 30px rgba(26, 54, 93, 0.08),
        0 40px 70px -20px rgba(26, 54, 93, 0.18);
    box-sizing: border-box;
    overflow: visible;
    z-index: 1;
}

/* Decorative floating color blobs that drift slowly behind the container -
   purely atmospheric, gives the flat glass panel some dimensionality */
.page-container::before,
.page-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
    animation: blobDrift 12s ease-in-out infinite;
}

.page-container::before {
    width: 260px;
    height: 260px;
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(43, 108, 176, 0.28), transparent 70%);
}

.page-container::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(32, 57, 221, 0.20), transparent 70%);
    animation-delay: -6s;
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.08); }
}

.vision-section-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.vision-section-block p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.context-quote {
    font-style: italic;
    background: rgba(248, 250, 252, 0.7);
    padding: 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    margin: 30px 0;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.context-quote:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.08);
}

/* --- Team Layout Grid & Frosted Cards --- */
.team-section-block {
    margin-top: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    margin-top: 30px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 26px rgba(26, 54, 93, 0.07);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.45s ease, border-top 0.25s ease;
    border-top: 4px solid transparent;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 22px 44px rgba(26, 54, 93, 0.16);
    border-top: 4px solid var(--accent);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), #123054);
    color: var(--white);
    padding: 26px 30px;
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 140px;
    height: 220%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(20deg);
}

.profile-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-header h4 {
    color: #cbd5e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-body {
    padding: 32px 30px;
}

.credentials {
    font-size: 14px;
    background: #f7fafc;
    padding: 12px 15px;
    border-left: 3px solid var(--primary-light);
    margin-bottom: 20px;
    color: var(--dark);
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

.profile-body p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.milestone-title {
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.milestone-list {
    list-style: none;
    padding-left: 0;
}

.milestone-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    transition: transform 0.25s ease;
}

.milestone-list li:hover {
    transform: translateX(3px);
}

.milestone-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* --- Navigation / Interaction Layouts --- */
.lang-switch:hover {
    box-shadow: 0 4px 10px rgba(43, 108, 176, 0.4) !important;
}

.about-action-panel {
    text-align: center;
    margin-top: 50px;
}

.about-action-panel .btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
    transition: all 0.3s ease;
}

.about-action-panel .btn:hover {
    background: var(--primary-dark, #1a365d) !important;
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.28);
    transform: translateY(-3px);
}

/* ==========================================================================
   SCROLL-TRIGGERED STAGGERED REVEAL
   (activates once .page-container gets .is-visible from script.js)
   ========================================================================== */
.vision-section-block,
.team-section-block .profile-card,
.about-action-panel {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.page-container.is-visible .vision-section-block { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.page-container.is-visible .team-section-block .profile-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.page-container.is-visible .team-section-block .profile-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.page-container.is-visible .about-action-panel { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1200px) {
    .page-container {
        max-width: 92%;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    #about-hero h1 {
        font-size: 28px !important;
    }
    #about-hero p {
        font-size: 16px !important;
    }
    .page-container {
        padding: 40px 24px;
        margin: 40px 15px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-container::before,
    .page-container::after {
        animation: none;
    }
}
