@font-face {
    font-family: 'Syncopate';
    src: url('../Fonts/syncopate-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Syncopate';
    src: url('../Fonts/syncopate-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Excon';
    src: url('../Fonts/Excon-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* ---------- Syncopate Headings & Navigation ---------- */

h1,
h2,
h3,
h4,
h5,
h6,
.nav-links a {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

/* ---------- Global Reset ---------- */

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #071742;
}

/* ---------- Success Stories Video Background ---------- */

.success-video-background {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible;
}

.success-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

.success-video-background > *:not(.success-background-video) {
    position: relative;
    z-index: 1;
}

.success-video-background footer {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    background: transparent;
}

.success-video-background footer p {
    margin: 0;
}

/* ---------- Navigation ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
}

nav {
    width: 100%;
    margin: 0;
    padding: 20px 40px;
    box-sizing: border-box;
    background-color: #071742;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    list-style: none;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    flex: 1;
}

.nav-links a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;

    text-align: center;
    color: #071742;
    text-decoration: none;

    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.04em;

    border: 2px solid #c5c9ce;
    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #8f9397 0%,
        #d8dadd 20%,
        #f2f3f4 40%,
        #b5b8bc 60%,
        #eceeef 80%,
        #9da1a5 100%
    );

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.25),
        0 5px 8px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.25),
        0 8px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- Hero Banner ---------- */

.hero {
    width: 100%;
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%);
    z-index: 1;
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(70%, 900px);
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@media (max-width: 768px) {
    nav {
        padding: 12px 10px;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nav-links li {
        min-width: 0;
    }

    .nav-links li:last-child {
        grid-column: 1 / -1;
    }

    .nav-links a {
        padding: 12px 6px;
        font-size: 0.75rem;
    }
    .hero {
        width: 100%;
        overflow: hidden;
    }

    .hero-image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* ==========================
   SUCCESS STORIES HERO
========================== */

.success-hero {
    position: relative;
    z-index: 1;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
}

.success-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Shared Content Container ---------- */

.content-container {
    width: min(90%, 1100px);
    margin: 0 auto;
    padding: 60px 0;
}

/* ---------- Home Mission Section ---------- */

.home-video-background {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 0 140px;
    overflow: hidden;
}

.home-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.home-video-background .mission {
    position: relative;
    z-index: 1;
}

.home-video-background footer {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 40px 20px 20px;
    text-align: center;
    color: white;
    background: transparent;
}

.home-video-background footer p {
    margin: 0;
}

/* ---------- Resources Video Background ---------- */

.resources-video-background {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible;
}

.resources-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

.resources-video-background > *:not(.resources-background-video):not(.modal) {
    position: relative;
    z-index: 1;
}

.mission {
    text-align: center;
}

.mission h1 {
    margin-bottom: 24px;
    font-size: 2.5rem;
    line-height: 1.2;
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

.mission p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ==========================
   SUCCESS STORIES PAGE
========================== */

.page-intro {
    text-align: center;
    padding: 40px 20px;
}

.page-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.1rem;
}

.profile-search {
    margin: 40px auto;
    max-width: 700px;
}

.profile-search input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.profile-carousel {
    margin: 60px 0;
    min-height: 300px;
}

.profile-card {
    display: grid;
    grid-template-columns: 230px 150px 1fr;
    width: 100%;
    max-width: 1000px;
    min-height: 420px;
    margin: 0 auto;

    background: linear-gradient(
        135deg,
        #8f9397 0%,
        #d8dadd 18%,
        #f2f3f4 38%,
        #b5b8bc 58%,
        #eceeef 78%,
        #9da1a5 100%
    );

    color: #071742;

    border: 3px solid #bfc3c7;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;

    box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 20px 25px -10px rgba(0, 0, 0, 0.45);
}

.profile-card-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px;
    background:
    radial-gradient(
        circle at 100% 50%,
        rgba(30, 110, 210, 0.50) 0%,
        rgba(30, 110, 210, 0.40) 25%,
        rgba(30, 110, 210, 0.25) 50%,
        rgba(30, 110, 210, 0.12) 75%,
        rgba(6, 34, 77, 0) 100%
    ),
    #06224d;
    color: #ffffff;
}

.profile-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.profile-number-line {
    width: 55px;
    height: 3px;
    margin-top: 16px;
    background: #168cff;
}

.release-date {
    position: absolute;
    right: 28px;
    bottom: 28px;
    margin: 0;
    line-height: 1.5;
    text-align: right;
}

.profile-photo-wrapper {
    display: flex;
    align-items: center;
    margin-left: -130px;
    z-index: 2;
}

.profile-photo {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

.profile-card-content {
    position: relative;
    padding: 44px 36px 28px 20px;
}

.profile-label {
    margin: 0;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.success-definition {
    margin: 12px 0 32px;
    padding: 0;
    border: none;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

.profile-card-content hr {
    margin: 0 0 24px;
    border: 0;
    border-top: 1px solid #d9d9d9;
}

.recommended-resources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 18px;
}

.resource h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #071742;
}

.resource p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.profile-button {
    display: inline-block;
    margin-top: 36px;
    margin-left: auto;
    padding: 14px 30px;
    background: #071742;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.35);
}
.resource-list {
    width: min(90%, 1000px);
    margin: 0 auto;
}
.resource-card {
    scroll-margin-top: 100px;
    width: min(90%, 1000px);
    margin: 0 auto 24px;
    padding: 24px;

    background: linear-gradient(
        135deg,
        #8f9397 0%,
        #d8dadd 18%,
        #f2f3f4 38%,
        #b5b8bc 58%,
        #eceeef 78%,
        #9da1a5 100%
    );

    color: #071742;

    border: 3px solid #bfc3c7;
    border-radius: 12px;
    box-sizing: border-box;

    box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.resource-card + .resource-card {
    margin-top: 32px;
}

.resource-card h2 {
    margin-top: 0;
}

.recommended-by {
    margin: 18px 0;
}

.recommendation-count {
    color: #666;
}

.resource-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.recommendation-button,
.resource-link {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.recommendation-button {
    border: none;
    background: #0b5ed7;
    color: white;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.35);
}

.resource-link {
    border: 1px solid #0b5ed7;
    background: #ffffff;
    color: #0b5ed7;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.35);
}

.resources-video-background footer {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    text-align: left;
}

.resources-video-background footer p {
    margin: 0;
}

/* ==========================================
   Resource Recommendation Modal
   ========================================== */

   .modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    width: min(700px, 90%);
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
}

.recommendation {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dcdcdc;
}

.recommendation:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ---------- Success Stories Footer ---------- */

body:has(.success-hero) footer {
    margin: 0;
    padding: 20;
}

body:has(.success-hero) footer p {
    margin: 0;
    padding: 0;
}

/* ==========================================
   Full Profile Page
   ========================================== */

   .profile-page {
    margin: 0;
    background: #ffffff;
    color: #071742;
}

.full-profile {
    min-height: 100vh;
}

.full-profile-header {
    position: sticky;
    top: 0;
    height: 260px;
    background: linear-gradient(
        135deg,
        #071742 0%,
        #0b3f8f 55%,
        #168cff 100%
    );
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.full-profile-name {
    position: absolute;
    left: 50%;
    bottom: 115px;
    transform: translateX(-50%);
    margin: 0;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
}

.full-profile-release {
    position: absolute;
    left: 30px;
    bottom: 20px;
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.profile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.full-profile-photo-wrapper {
    position: absolute;
    left: 50%;
    bottom: -90px;
    transform: translateX(-50%);
}

.full-profile-photo {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.full-profile-body {
    min-height: 1200px;
    padding: 130px 40px 60px;

    background: linear-gradient(
        135deg,
        #8f9397 0%,
        #d8dadd 18%,
        #f2f3f4 38%,
        #b5b8bc 58%,
        #eceeef 78%,
        #9da1a5 100%
    );
}

.full-profile-content {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.profile-section {
    margin-bottom: 60px;
}

.profile-section h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #168cff;
    color: #071742;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {

    .full-profile-header {
        height: 220px;
    }

    .full-profile-photo {
        width: 140px;
        height: 140px;
    }

    .full-profile-name {
        font-size: 2rem;
    }

    .full-profile-release {
        left: 15px;
        bottom: 15px;
        width: calc(50% - 95px);
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .full-profile-body {
        padding: 110px 20px 40px;
    }

    .full-profile-content {
        width: 100%;
    }

    /* ---------- Success Story Card: Mobile ---------- */

    .profile-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
    }

    .profile-card-left {
        min-height: 120px;
        padding: 20px;
    }

    .profile-photo-wrapper {
        justify-content: center;
        margin-left: 0;
        margin-top: -45px;
    }

    .profile-photo {
        width: 160px;
        height: 200px;
    }

    .profile-card-content {
        padding: 24px 20px 30px;
    }

    .success-definition {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .recommended-resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-button {
        display: block;
        margin: 30px 0 0;
        text-align: center;
    }  
}

/* ---------- Node Graph Page Video Background ---------- */

.node-page-background-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

body:has(.node-graph-section) {
    background: transparent;
}

body:has(.node-graph-section) main,
body:has(.node-graph-section) .content-container,
body:has(.node-graph-section) .node-graph-section {
    position: relative;
    z-index: 1;
    background: transparent;
}

body:has(.node-graph-section) .content-container {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ---------- Node Graph Metallic Border ---------- */
.node-graph-container {
    width: 100%;
    max-width: none;
    height: 850px;
    margin: 0;

    border: 5px solid #bfc3c7;
    border-radius: 24px;

    background: transparent;

    overflow: hidden;
    box-sizing: border-box;

    box-shadow:
        inset 0 0 0 1px #f5f5f5,
        0 0 0 1px #707070;
}

.node-graph-section {
    margin-top: 40px;
}

/* ---------- Node Graph Mode Buttons ---------- */

.graph-mode-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.graph-mode-button {
    padding: 12px 26px;
    border: 2px solid #c5c9ce;
    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #8f9397 0%,
        #d8dadd 20%,
        #f2f3f4 40%,
        #b5b8bc 60%,
        #eceeef 80%,
        #9da1a5 100%
    );

    color: #071742;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;

    box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 5px 8px rgba(0, 0, 0, 0.35);

    transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.graph-mode-button:hover {
    transform: translateY(-2px);

    box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 8px 12px rgba(0, 0, 0, 0.4);
}

.graph-mode-button.active {
    background: #071742;
    color: #ffffff;
    border-color: #168cff;
}

/* ==========================================
   SUCCESS STORIES ROLODEX
   ========================================== */

#rolodex {
    position: relative;
    outline: none;
}

.rolodex-viewport {
    position: relative;
    height: 700px;
    overflow: hidden;

    perspective: 1450px;
    perspective-origin: 50% 46%;
}

#rolodex .profile-card {
    position: absolute;

    left: 50%;
    top: 46%;

    width: min(1000px, 88vw);
    min-height: 420px;

    margin: -210px 0 0 0;

    transform-origin: 50% 112%;
    transform-style: preserve-3d;
    backface-visibility: hidden;

    will-change: transform, opacity;
}


/* ==========================================
   ROLODEX MECHANISM
   ========================================== */

.rolodex-mechanism {
    position: absolute;

    left: 50%;
    bottom: 28px;

    width: min(1080px, 94%);
    height: 120px;

    transform: translateX(-50%);

    z-index: 20;

    pointer-events: none;
}

.rolodex-base {
    position: absolute;

    left: 4%;
    right: 4%;
    bottom: 0;

    height: 34px;

    border-radius: 7px 7px 14px 14px;

    background:
        linear-gradient(
            #6c747b,
            #30363b 48%,
            #171b1e
        );

    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.rolodex-spindle {
    position: absolute;

    left: 2%;
    right: 2%;
    bottom: 46px;

    height: 34px;

    display: flex;
    align-items: center;
}

.rolodex-shaft {
    flex: 1;

    height: 18px;

    border: 1px solid #444;
    border-radius: 9px;

    background:
        linear-gradient(
            #e3e5e6,
            #767d82 42%,
            #32373b 60%,
            #adb2b5
        );

    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.35);
}

.rolodex-cap {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    border: 2px solid #3b4145;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #e8eaeb,
            #777f84 45%,
            #282e32 72%
        );
}

.rolodex-support {
    position: absolute;

    bottom: 25px;

    width: 46px;
    height: 74px;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #242a2e,
            #8c9398,
            #30363b
        );
}

.rolodex-support-left {
    left: 1%;
}

.rolodex-support-right {
    right: 1%;
}


/* ==========================================
   ROLODEX CONTROLS
   ========================================== */

.rolodex-controls {
    position: relative;

    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 24px;

    margin-top: 12px;
}

.rolodex-controls button {
    width: 48px;
    height: 48px;

    border: 1px solid #7e858b;
    border-radius: 50%;

    background: #ffffff;
    color: #071742;

    font-size: 24px;

    cursor: pointer;
}

.rolodex-controls button:hover {
    background: #eef1f4;
}

.rolodex-controls span {
    color: #666666;
}


/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    #rolodex .profile-card {
        transition: none !important;
    }
}

/* Home page: heading spacing below hero */
.content-container.home-video-background {
    padding-top: 10px;
}

@media (max-width: 768px) {

    .graph-mode-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 10px;
    }

    .graph-mode-button {
        width: 100%;
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .graph-mode-button:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mission h1 {
        font-size: 1.65rem;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 768px) {

    .profile-excerpt {
        display: none;
    }

        .profile-button {
        position: absolute;
        top: -255px;
        left: 20px;
        right: 20px;
        z-index: 5;
        margin: 0;
        text-align: center;
    }

    .resource-card h2 {
        max-width: 100%;
        font-size: 1.25rem;
        overflow-wrap: anywhere;
    }

        .profile-card .release-date {
        display: none;
    }
}