/* Fonts */
@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");

@font-face {
    font-family: 'GT-Flexa';
    src: url('https://assets.codepen.io/61488/GT-Flexa-VF-Trial.woff2');
    font-display: block;
    font-style: normal italic;
    font-weight: 100 800;
    font-stretch: 10% 200%;
}

:root {
    --fw: 600;
    --fs: 150;
    --fontSize: 10;
}

/* Base Nexus Styles */
#nexus-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: -2;
    pointer-events: none;
}

/* Background read-ability overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Page Transparency */
main,
section,
header,
footer {
    position: relative;
    z-index: 1;
}

section {
    background: transparent !important;
}

.bg-light,
.bg-white {
    background: transparent !important;
}

/* Elastic Text Components */
.elastic-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    user-select: none;
    margin-bottom: 2rem;
}

.elastic-txt {
    margin: 0;
    font-family: 'GT-Flexa', sans-serif;
    font-size: calc(var(--fontSize) * 1vw);
    font-weight: var(--fw);
    font-stretch: calc(var(--fs) * 1%);
    line-height: 1;
    letter-spacing: -0.2vw;
    color: #000;
    text-shadow: 0 0.05em 0 rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .elastic-txt {
        font-size: 12vw;
    }

    .hero-subheading {
        font-size: 1.8rem;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .elastic-txt {
        font-size: 15vw;
        /* Fixed size on mobile to prevent excessive scaling */
    }

    .hero-subheading {
        font-size: 1.4rem;
        padding: 0 15px;
    }
}

.elastic-char {
    display: inline-block;
    will-change: font-weight, font-stretch, transform;
    cursor: pointer;
}

.hero-subheading {
    font-family: "PP Neue Montreal", sans-serif;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #333;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 58, 175, 0.1);
    border-color: rgba(26, 56, 127, 0.2);
}

/* Design Tokens & Utilities */
.text-primary-gradient {
    background: linear-gradient(135deg, #1a387f 0%, #003aaf 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #1a387f 0%, #003aaf 100%);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(26, 56, 127, 0.08);
    color: #1a387f;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

/* Connected Mission/Vision Styles */
.kinetic-container {
    padding: 15rem 0;
    position: relative;
    overflow: hidden;
    min-height: 1000px;
    width: 100%;
}

@media (max-width: 991px) {
    .kinetic-container {
        padding: 5rem 0;
        min-height: auto;
    }
}

.ghost-label {
    position: absolute;
    font-family: 'GT-Flexa', sans-serif;
    font-size: 18vw;
    font-weight: 900;
    font-stretch: 200%;
    /* Max stretch to fill horizontal space */
    color: rgba(26, 56, 127, 0.035);
    line-height: 0.7;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ghost-label-left {
    bottom: -25%;
    /* Pushed down on Y-axis */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.ghost-label-right {
    top: -5%;
    /* Pushed up on Y-axis */
    left: 50%;
    /* Fixed X-axis centering */
    transform: translateX(-50%);
    text-align: center;
}

@media (max-width: 991px) {
    .ghost-label {
        font-size: 30vw;
        /* Significantly smaller on mobile */
        opacity: 0.1;
        /* Slightly more visible since smaller */
    }
}

.kinetic-container .text-center {
    position: relative;
    z-index: 10;
    width: 100%;
}

.connected-grid {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.kinetic-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    padding: 3.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 40px 100px rgba(0, 58, 175, 0.05);
    position: relative;
}

.strategic-link-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 300px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

#strategicPath {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1s ease, stroke-width 0.5s ease;
}

.kinetic-card:hover~.strategic-link-container,
.connected-grid:hover .strategic-link-container {
    opacity: 0.8;
}

.connected-grid:hover #strategicPath {
    stroke-dashoffset: 0;
    stroke-width: 3;
}

.link-glow-ball {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #003aaf;
    border-radius: 50%;
    filter: blur(5px);
    offset-path: path("M 250 200 Q 500 100 750 200");
    animation: flow-ball 3s linear infinite;
    display: none;
}

.connected-grid:hover .link-glow-ball {
    display: block;
}

@keyframes flow-ball {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

.card-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #1a387f;
    border-radius: 50%;
    top: 50%;
}

.mission-node {
    right: -10px;
}

.vision-node {
    left: -10px;
}

.kinetic-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: white;
    border-color: #1a387f;
    box-shadow: 0 50px 120px rgba(0, 58, 175, 0.15);
}

.icon-v-large {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
}

@media (max-width: 991px) {
    .connected-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .strategic-link-container {
        display: none;
    }
}

/* Stat Counters */
.stat-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px;
    background: rgba(26, 56, 127, 0.03);
    border: 1px solid rgba(26, 56, 127, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(26, 56, 127, 0.06);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'GT-Flexa', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sister Concern Specifics */
.sister-concern-section {
    background: radial-gradient(circle at 100% 0%, rgba(0, 58, 175, 0.03) 0%, transparent 40%);
}

.play-btn-pulse {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 58, 175, 0.1);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.4s ease;
}

.play-btn-pulse::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 58, 175, 0.1);
    animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.play-btn-pulse:hover {
    transform: scale(1.1);
    background: #003aaf;
}

.play-btn-pulse:hover i {
    color: white !important;
}

.split-text-reveal {
    overflow: hidden;
}

.split-text-p {
    opacity: 0;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 58, 175, 0.3);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 5;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.play-btn-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #003aaf;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-overlay:hover .play-btn-circle {
    transform: scale(1.15);
    background: #003aaf;
    color: white;
}

/* Video Card Decorations */
.video-card-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d4ff;
    animation: blink-node 2s infinite;
}

@keyframes blink-node {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.video-media-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    transition: all 0.4s ease;
}

.video-corner-glow {
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 58, 175, 0.2) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.video-pop-trigger:hover .video-media-label {
    transform: translateY(-5px);
}