/* --- ABOUT PAGE STYLES --- */


/* --- General Section Styling --- */

.about-section {
    position: relative;
    width: 100vw;
    min-height: 80vh;
    padding: 15vh 5vw;
    box-sizing: border-box;
    display: flex;
    font-family: Clash, sans-serif;
    overflow: hidden;
}

.section-title-wrapper {
    overflow: hidden;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 5rem;
    font-weight: 400;
    color: #000;
    transform: translateY(100%);
    /* for animation */
}

.section-paragraph {
    font-family: sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    max-width: 60ch;
    color: #333;
    transform: translateY(30px);
    /* for animation */
    opacity: 0;
}


/* --- 1. Hero Section --- */

.hero-section {
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    background-color: #000;
}

.hero-content {
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
}

.hero-line-wrapper {
    overflow: hidden;
}

.hero-line-1,
.hero-line-2 {
    font-size: 9vw;
    color: #fff;
    line-height: 1;
    font-weight: 500;
    margin: 0;
    transform: translateY(110%);
}

.about-hero-vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.about-hero-vid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(100% 0% 0% 0%);
    /* for animation */
}


/* --- 2. Focus Section (Mission + Tech) --- */

.focus-section {
    height: 200vh;
    /* This controls the scroll duration */
    padding: 0;
    background-color: #f4f4f4;
}

.focus-wrapper-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 5vw;
    box-sizing: border-box;
    gap: 5vw;
}

.focus-left,
.focus-right {
    flex: 1;
    height: 100%;
    position: relative;
}

.focus-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Text Slider */

.focus-text-slider {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 550px;
    /* Set a fixed height for the text content area */
    overflow: hidden;
}

.focus-text-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5vh;
    background-color: #f4f4f4;
}

#mission-content {
    top: 0;
}

#tech-content {
    top: 100%;
    /* Positioned directly below the first slide */
    opacity: 1;
}

#mission-content .section-title,
#mission-content .section-paragraph,
#tech-content .section-title,
#tech-content .section-paragraph {
    transform: none;
    /* No intro animation needed, they slide in */
    opacity: 1;
}

.tech-pillars {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.tech-pillars li {
    font-size: 1.8rem;
    font-family: sans-serif;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.tech-pillars li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #091423;
}


/* Image Slider */

.focus-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-image-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    border-radius: 2rem;
    overflow: hidden;
}

.focus-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
}

.focus-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#mission-image {
    top: 0;
}

#tech-image {
    top: -100%;
    opacity: 1;
}


/* --- 3. Story Section (Parallax & Mask Reveal) --- */

.story-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    background-color: #000;
    overflow: hidden;
}


/* Background Image Styling */

.story-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.story-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller than container for Parallax effect */
    object-fit: cover;
    /* Start slightly higher so we can scroll it down */
    transform: translateY(-10%);
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darkens the image by 60% */
    z-index: 2;
}


/* Content Styling */

.story-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


/* The "Mask" container */


/* --- Story Section: Line Reveal Styling --- */

.line-mask {
    overflow: hidden;
    padding-bottom: 0.1em;
}


/* This class is the actual text line created by SplitType */

.line {
    /* Initial state: pushed down 100% inside the mask */
    transform: translateY(100%);
    display: block;
    /* Essential for correct flow */
    will-change: transform;
    /* Performance optimization */
}


/* Clean up old styling applied to the paragraph element itself */

.story-text {
    margin-bottom: 2rem;
    margin-top: 0;
    line-height: 1.5;
    color: #ffffff;
    /* FIX: Align Text Left */
    text-align: start;
    transform: none !important;
    opacity: 1 !important;
}


/* Typography Overrides for this section */

.story-title {
    font-size: 8vw;
    /* Bigger Title */
    color: #fff;
    margin: 0;
    line-height: 1;
    /* FIX: Ensure horizontal text alignment starts */
    text-align: start;
    /* Initial State for Animation */
    transform: translateY(100%);
}


/* --- 4. Vision Section (Boxed Grid Design) --- */

.vision-section {
    background-color: #111;
    /* Matches your hero/dark theme */
    padding: 10vh 5vw;
    /* This creates the gap around the box */
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-grid {
    background-color: #ffffff;
    /* The Orange Box Color */
    color: #1a1a1a;
    width: 100%;
    /* This adds the "Line Out" around the 4 edges */
    border: 1px solid #1a1a1a;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Ensures the box has height */
    min-height: 60vh;
}

.vision-col {
    position: relative;
    padding: 3vw;
    display: flex;
    flex-direction: column;
    /* Vertical dividers inside the box */
    border-right: 1px solid #1a1a1a;
    box-sizing: border-box;
    overflow: hidden;
    /* Keeps animations inside the box */
}


/* Remove the border from the very last column so it doesn't double up */

.vision-col:last-child {
    border-right: none;
}

.middle-col {
    padding: 0 !important;
}

.vision-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Add a tiny bit of padding at the bottom of the container */
    padding-bottom: 10px;
}

.middle-col .vision-content-wrapper {
    justify-content: flex-start;
    /* Stack items naturally from the top */
}

.vision-content-wrapper.top-align {
    justify-content: flex-start;
    gap: 2rem;
}


/* This ensures the year sits at the very bottom */

.vision-content-wrapper.space-between {
    justify-content: space-between;
}


/* Typography */

.vision-big-text {
    font-family: 'Clash', sans-serif;
    font-size: 7vw;
    line-height: 0.9;
    font-weight: 400;
    margin: 0;
    color: #1a1a1a;
    transform: translateY(100%);
    /* Start lower for animation */
    opacity: 0;
}

.vision-huge-year {
    font-family: 'Clash', sans-serif;
    font-size: 10vw;
    /* Your requested size */
    line-height: 1;
    font-weight: 400;
    color: #1a1a1a;
    /* HORIZONTAL CENTERING ONLY */
    text-align: center;
    width: 100%;
    margin: 0;
    /* Removes auto margins so it stays at the bottom */
    /* Animation properties */
    transform: translateY(100%);
    opacity: 0;
    /* Slight padding to prevent the bottom of the numbers from being cut off */
    padding-bottom: 10px;
}

.vision-label {
    font-family: sans-serif;
    font-size: 2rem;
    margin: 0;
    color: #1a1a1a;
    opacity: 0;
}

.middle-col .vision-label {
    padding: 3vw;
}

.vision-sub-text {
    font-family: sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    max-width: 25ch;
    opacity: 0;
}


/* --- Corner Decorations --- */


/* Shared style for all corners */

.corner {
    position: absolute;
    width: 3rem;
    /* Length of the line */
    height: 3rem;
    /* Length of the line */
    pointer-events: none;
}


/* Top Left Corner */

.corner-tl {
    top: 5vh;
    /* Adjust vertical distance from top */
    left: 2.5vw;
    /* Adjust horizontal distance from left */
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}


/* Top Right Corner */

.corner-tr {
    top: 5vh;
    right: 2.5vw;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}


/* Bottom Left Corner */

.corner-bl {
    bottom: 5vh;
    left: 2.5vw;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
}


/* Bottom Right Corner */

.corner-br {
    bottom: 5vh;
    right: 2.5vw;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}


/* --- Mobile Adjustments --- */

@media (max-width: 768px) {
    .vision-section {
        padding: 5vh 5vw;
        /* Maintain padding so it stays a "box" on mobile too */
    }
    .vision-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
    }
    .vision-col {
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
        /* Horizontal dividers on mobile */
        min-height: 30vh;
        padding: 2rem;
    }
    .vision-col:last-child {
        border-bottom: none;
    }
    .vision-big-text {
        font-size: 4rem;
    }
    .vision-huge-year {
        font-size: 6rem;
        text-align: left;
    }
    .corner {
        display: none;
    }
}


/* --- 5. Values Section --- */

.values-section {
    background-image: url('Assets/Img/AFA Container.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 20, 35, 0.7);
    z-index: 1;
}

.values-section .section-title {
    text-align: center;
    color: #fff;
    padding: 15vh 5vw 0;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 2;
}

.values-list {
    list-style: none;
    padding: 0 5vw 15vh;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.value-item {
    position: relative;
    margin-bottom: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 3vh 0;
    cursor: none;
    transition: background-color 0.3s ease;
    /* REMOVED: background-color from transition */
}


/* REMOVED: .value-item:hover { ... } rule */

.value-item:last-child {
    border-bottom: none;
}

.value-wrapper {
    overflow: hidden;
}

.value-wrapper span {
    display: inline-block;
    font-size: 4rem;
    font-weight: 400;
    padding: 1rem 0;
    transform: translateY(100%);
    /* for animation */
    color: #fff;
}

.value-underline {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}


/* --- Custom Cursor --- */

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 170px;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease-out;
}

.cursor-follower img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- 6. Team Section --- */

.team-section {
    background-color: #f4f4f4;
    /* Light background to contrast with other sections */
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 90vh;
}

.team-header {
    margin-bottom: 5rem;
    width: 100%;
}

.team-title {
    font-size: 8vw;
    font-weight: 500;
    color: #091423;
    /* Dark color */
    margin: 0;
    line-height: 1;
}

.team-subtitle {
    font-size: 2.5rem;
    color: #333;
    margin-top: 1rem;
    /* FIX: Center the text block and the text inside it */
    width: 100%;
    max-width: 100%;
    /* Overrides the global paragraph limit */
    text-align: center;
}


/* Ensure header text is hidden initially for the reveal effect */

.team-mask .team-title,
.team-mask .team-subtitle {
    transform: translateY(100%);
    opacity: 0;
}


/* Team Grid Layout */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3vw;
    width: 100%;
    max-width: 1400px;
    padding-bottom: 5vh;
}


/* Individual Member Card */

.member-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 450px;
    /* Fixed height for consistent grid appearance */
    /* Initial state for GSAP scroll-in animation */
    transform: scale(0.8);
    opacity: 0;
}


/* Image Wrapper and Scaling */

.member-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s ease-out;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Update .member-image-wrapper to handle stacking */

.member-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* Removed the transition: transform here, handled by hover on children */
}


/* Style for the Portrait (Bottom Layer) */

.member-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Sits behind */
    transition: transform 0.4s ease-out;
}


/* Style for the Cover (Top Layer) */


/* Style for the Cover (Top Layer) */

.member-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: transform 0.4s ease-out;
    /* FIX: Define the starting clip-path so JS knows what to animate from */
    clip-path: inset(0% 0% 0% 0%);
    -webkit-clip-path: inset(0% 0% 0% 0%);
    /* For Safari support */
    will-change: clip-path;
}


/* --- HOVER EFFECT UPDATES --- */


/* Scale both images on hover */

.member-card:hover .member-portrait,
.member-card:hover .member-cover {
    transform: scale(1.05);
}


/* Ensure info still slides up correctly */

.member-card:hover .member-info {
    transform: translateY(0%);
    z-index: 10;
    /* Ensure info sits on top of images */
}


/* Member Details Overlay */

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* FIX: Ensure padding doesn't expand width */
    box-sizing: border-box;
    padding: 1.5rem 1rem;
    background: rgba(9, 20, 35, 0.9);
    color: #fff;
    transition: transform 0.4s ease-out;
    transform: translateY(100%);
    /* FIX: Center the text inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers items horizontally in flex */
    text-align: center;
    /* Centers text content */
}

.member-name {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.member-role {
    font-size: 1.2rem;
    color: #ff9900;
    /* Accent color */
    margin-bottom: 0.5rem;
}

.member-bio {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.8;
}


/* --- HOVER EFFECT --- */

.member-card:hover .member-image-wrapper {
    transform: scale(1.05);
}

.member-card:hover .member-info {
    transform: translateY(0%);
    /* Slides up on hover */
}


/* --- 7. CTA Section --- */

.cta-section {
    padding: 5vh 5vw;
    /* Consistent padding */
    background-color: #f4f4f4;
    /* Matches the section before it (Team) */
    min-height: 60vh;
    /* Not full height, just enough to be impactful */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-bg-wrapper {
    width: 100%;
    height: 100%;
    background-color: #091423;
    /* Dark Blue/Black background */
    border-radius: 2rem;
    /* Rounded card look */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    overflow: hidden;
    position: relative;
    /* Initial state for animation */
    transform: scale(0.9);
    opacity: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-title {
    font-family: 'Clash', sans-serif;
    font-size: 7vw;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.cta-text {
    font-family: sans-serif;
    font-size: 1.5rem;
    color: #ccc;
    max-width: 40ch;
    margin: 0;
}

.cta-btn {
    display: inline-block;
    background-color: #ffffff;
    /* Your Brand Orange */
    color: #091423;
    font-family: sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.2rem 3rem;
    border-radius: 3rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}


/* Mobile Adjustments */

@media (max-width: 768px) {
    .cta-section {
        padding: 2vh 5vw 10vh;
    }
    .cta-title {
        font-size: 12vw;
    }
}


/* FOOTER */

footer {
    top: 0vh
}


/* --- Mobile Adjustments --- */

@media (max-width: 768px) {
    .member-cover {
        display: none;
    }
    /* --- 6. Team Section Mobile Slider --- */
    .team-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 5vh;
        padding-left: 5vw;
        padding-right: 5vw;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .team-grid::-webkit-scrollbar {
        display: none;
    }
    .member-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        height: 420px;
    }
    .member-info {
        position: relative;
        z-index: 5;
        transform: translateY(0%);
        padding: 1.5rem;
        background: #091423;
        opacity: 1;
    }
}


/* --- 6b. Team Section: Portrait Phone Only ---
   On tap, info appears BELOW the (smaller) photo instead of
   overlaying it. Requires the tap handler added to about.js,
   which toggles the ".is-open" class on .member-card. */

@media (max-width: 768px) and (orientation: portrait) {
    .member-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        flex: 0 0 85vw !important;
    }
    .member-card .member-image-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 70% !important;
        height: auto !important;
        margin: 1rem auto 0 !important;
        aspect-ratio: 1 / 1 !important;
        transform: none !important;
    }
    .member-card .member-portrait,
    .member-card .member-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        border-radius: 0.5rem;
    }
    .member-card .member-info {
        position: relative !important;
        z-index: 5 !important;
        top: auto !important;
        bottom: auto !important;
        width: 100%;
        transform: none !important;
        opacity: 0;
        max-height: 0;
        padding: 0 1.5rem !important;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    }
    /* JS toggles this class on tap — see the accompanying script */
    .member-card.is-open .member-image-wrapper {
        transform: scale(1.05) !important;
    }
    .member-card.is-open .member-info {
        opacity: 1;
        max-height: 400px;
        padding: 1.5rem !important;
    }
}


/* --- START OF MOBILE STYLES --- */

@media (max-width: 768px) {
    .cursor-follower {
        display: none;
    }
    .about-section {
        padding: 10vh 5vw;
        min-height: auto;
    }
    .section-title {
        font-size: 3.5rem;
    }
    .section-paragraph {
        font-size: 1.6rem;
    }
    /* 1. Hero */
    .hero-line-1,
    .hero-line-2 {
        font-size: 12vw;
    }
    /* 1. Set the scroll runway */
    .focus-section {
        height: 200vh !important;
        padding: 0 !important;
    }
    .focus-wrapper-sticky {
        height: 100vh;
        width: 100vw;
        padding: 0;
        display: block;
    }
    /* 2. Container setup - NO TRANSFORMS ALLOWED! */
    .focus-left,
    .focus-right {
        position: absolute;
        left: 5vw;
        /* This centers it perfectly without using transform */
        width: 90vw;
        z-index: auto !important;
        /* Removes the layer trap */
        transform: none !important;
        /* Removes the layer trap */
        display: block;
    }
    .focus-left {
        top: 12vh;
        height: 46vh;
    }
    .focus-right {
        top: 60vh;
        height: 32vh;
    }
    /* Allow children to escape nested clipping */
    .focus-text-slider,
    .focus-image-slider {
        height: 100%;
        width: 100%;
        border-radius: 0;
        overflow: visible !important;
        position: static !important;
    }
    /* 3. The Perfect Z-Index Interleave */
    /* Layer 1: Bottom Card Image (Backmost) */
    #tech-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0 0 2rem 2rem;
        z-index: 1 !important;
        transform: scale(0.9);
        opacity: 0.5;
    }
    /* Layer 2: Bottom Card Text */
    #tech-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        padding: 4rem 2rem 2rem 2rem;
        box-sizing: border-box;
        border-radius: 2rem 2rem 0 0;
        z-index: 2 !important;
        transform: scale(0.9);
        opacity: 0.5;
    }
    /* Layer 3: Top Card Image (Slides OVER Bottom Text) */
    #mission-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0 0 2rem 2rem;
        z-index: 3 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    /* Layer 4: Top Card Text (Frontmost) */
    #mission-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        padding: 4rem 2rem 2rem 2rem;
        box-sizing: border-box;
        border-radius: 2rem 2rem 0 0;
        z-index: 4 !important;
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    }
    /* --- 4. Vision Section Mobile Adjustments --- */
    /* 1. Override the desktop 0 padding so it doesn't touch the edges */
    .vision-col,
    .middle-col {
        padding: 2.5rem !important;
        box-sizing: border-box;
    }
    /* 2. Push the contents of the middle column to the right */
    .middle-col .vision-content-wrapper {
        align-items: flex-end;
        /* Aligns flex items to the right side */
        text-align: right;
    }
    /* 3. Fix the specific text elements inside the middle box */
    .middle-col .vision-huge-year {
        text-align: right;
        /* Aligns the actual text right */
        width: auto;
        /* Removes the 100% width from desktop that forced it to center */
        padding-bottom: 0;
    }
    .middle-col .vision-label {
        padding: 0;
        /* Removes the 3vw padding it inherited from desktop */
    }
    #tech-image img,
    #mission-image img {
        border-radius: inherit;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* 3. Story */
    .story-title {
        font-size: 15vw;
    }
    .story-text {
        font-size: 1.6rem;
        text-align: left;
    }
    /* 4. Vision */
    .vision-section {
        flex-direction: column;
    }
    .vision-image-wrapper {
        height: 40vh;
    }
    /* 5. Values */
    .values-section {
        /* Replace this URL with the actual path to your mobile-specific image */
        background-image: url('Assets/Img/AFA Container Mobile.jpg') !important;
        padding: 0;
        background-attachment: scroll;
    }
    .values-section .section-title {
        padding: 10vh 5vw 0;
    }
    .values-list {
        padding: 0 5vw 10vh;
    }
    .value-item {
        padding: 2vh 0;
        cursor: default;
        background-color: transparent !important;
    }
    .value-wrapper span {
        font-size: 2.5rem;
    }
}