/*
 * FabNinjas — Life at FabNinjas page only
 * Modern Grid-Layout + Wavy Card Design.
 */

/* ----- Navbar: sticky so it stays on scroll ----- */
.page-life .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(40, 38, 67, 0.95);
    border-bottom: 1px solid rgba(40, 38, 67, 0.12);
}

.page-life .navbar .menu li,
.page-life .navbar .menu li a {
    color: #fff;
}

.page-life .navbar .menu li a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.page-life .navbar .menu li a::after {
    background: #fff;
}

/* Fix for mobile menu links being white on a white background */
@media (max-width: 900px) {
    .page-life .navbar .menu li a {
        color: var(--color-dark) !important;
    }
}

.page-life .navbar .cta {
    background: #fff;
    color: var(--color-dark);
}

.page-life .nav-toggle-bar {
    background: #fff;
}

.page-life .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ----- page intro (no hero) ----- */

.life-intro {
    background: #fff;
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.life-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding-y) var(--section-padding-x);
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.life-intro-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 12px 0;
}

.life-intro-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
    max-width: 640px;
}

/* BENEFITS & PERKS */
.benefits-section {
    background-color: #fff;
    border-top: 1px solid rgba(40, 38, 67, 0.12);
    border-bottom: 1px solid rgba(40, 38, 67, 0.12);
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    padding: 60px 0;
}

.benefits-title {
    font-size: 32px;
    font-weight: 800;
    color: #282643;
    margin-bottom: 32px;
}

.pill-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-pill {
    background-color: white;
    border-radius: 999px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #776482;
}

.benefit-pill:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(40, 38, 67, 0.08);
}

.pill-icon {
    width: 44px;
    height: 44px;
    background-color: #776482;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.pill-icon svg {
    width: 22px;
    height: 22px;
}

.pill-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #282643;
    margin: 0;
}

.pill-content p {
    font-size: 15px;
    color: #5f6777;
    margin: 4px 0 0;
}

/* Removed redundant navbar menu hider that was breaking the toggle */

/* Responsive adjustment for benefits */
@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 600px) {
    .benefit-pill {
        padding: 14px 24px;
        border-radius: 20px;
        /* Slightly less round on mobile if text wraps */
        align-items: flex-start;
    }

    .benefits-title {
        font-size: 28px;
    }
}

/* SPLIT SCROLL SECTION */
.split-scroll-section {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.split-scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.split-row:last-child {
    margin-bottom: 0;
}

.split-content {
    flex: 0 0 42%;
    background: #baa9b8;
    /* White main card */
    padding: 60px 48px;
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(186, 169, 184, 0.4);
    box-shadow: 0 10px 30px rgba(40, 38, 67, 0.05);
    z-index: 5;
}

/* Background card layer - now static #baa9b8 */
.split-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    z-index: -1;
    pointer-events: none;
    background: white;
    border: 1px solid rgba(10, 10, 10, 0.3);
    /* Static rotation for creative effect */
    transform: rotate(-2.5deg) translate(-12px, -8px);
}

.split-content * {
    position: relative;
    z-index: 2;
}

.content-badge {
    display: inline-block;
    background: #baa9b8;
    /* Light orange tint */
    color: #fff;
    /* Orange text */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.split-content h2 {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    color:#282643;
    /* Specified Orange */
    margin-bottom: 24px;
}

.split-content .lead-text {
    font-size: 17px;
    line-height: var(--line-height-loose);
    color: #282643;
    /* Specified Dark Navy */
    margin-bottom: 32px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #282643;
    /* Specified Dark Navy */
}

.feature-icon {
    width: 38px;
    height: 38px;
    background: #baa9b8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #776482;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-text {
    font-size: 15px;
    color: #5f6777;
    line-height: var(--line-height-normal);
}

/* Activity Mini Cards */
.activity-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid #282643;
    color: #282643;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background: #282643;
    color: #fff;
}

.split-cards-wrap {
    flex: 1;
    height: 700px;
    overflow: hidden;
    position: relative;
    /* Smooth endless scroll fade */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

.scroll-track {
    display: flex;
    flex-direction: column;
}

.scroll-track-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.scroll-track.scroll-up {
    animation: scroll-up-anim 20s linear infinite;
}

.scroll-track.scroll-down {
    animation: scroll-down-anim 20s linear infinite;
}

.scroll-track:has(.wavy-card:hover) {
    animation-play-state: paused;
}

@keyframes scroll-up-anim {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down-anim {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Ensure wavy cards inside track don't get the reveal animations since they are already looping */
.split-cards-wrap .wavy-card {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease !important;
    margin: 0;
    width: 100%;
    max-width: 420px;
    height: auto;
}

/* Responsive Styles for Split Layout */
@media (max-width: 900px) {
    .split-row {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }

    /* Force text to show before card cards on mobile */
    .split-row.mobile-reverse {
        flex-direction: column-reverse;
    }

    .split-content {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 40px 24px;
        margin-bottom: 50px;
        border-radius: 20px;
    }

    /* Keep layers but simplify for mobile */
    .split-content::before {
        transform: rotate(-1.5deg);
    }

    .split-content::after {
        transform: rotate(2deg);
    }

    .split-content h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .split-content .lead-text {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .feature-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 24px;
        margin-bottom: 30px;
    }

    .feature-list li {
        width: auto;
        justify-content: flex-start;
    }

    /* Disable scrolling on mobile web and show cards statically */
    .scroll-track.scroll-up,
    .scroll-track.scroll-down {
        animation: none !important;
    }

    .split-cards-wrap {
        height: auto;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Hide the duplicate loop track on mobile to avoid showing double cards */
    .scroll-track-inner[aria-hidden="true"] {
        display: none;
    }

    /* Show all cards statically on mobile instead of just the first one */
    .scroll-track-inner .wavy-card {
        display: flex;
        margin-bottom: 30px;
    }

    .scroll-track-inner .wavy-card:last-child {
        margin-bottom: 0;
    }

    .scroll-track-inner {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .split-scroll-container {
        padding: 40px 20px 60px;
    }
}

/* THE CARDS GRID */
.wavy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding-top: 40px;
}

/* THE NEW CARD DESIGN */
.wavy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border-radius: 32px; */
    overflow: hidden;
    height: auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    border: 1px solid rgba(40, 38, 67, 0.08);
    position: relative;
    opacity: 0;
    pointer-events: none;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(40, 38, 67, 0.04);
    margin: 0;
}

.wavy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(40, 38, 67, 0.1);
}

/* Creative Reveal Animation */
.life-ready .wavy-card.life-reveal {
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.life-ready .wavy-card.life-reveal:nth-child(odd) {
    transform: translateY(30px);
}

.life-ready .wavy-card.life-reveal:nth-child(even) {
    transform: translateY(30px);
}

.life-ready .wavy-card.life-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 5 background colors on hover */
.wavy-card:nth-child(5n+1):hover {
    background-color: #e99d75;
}

.wavy-card:nth-child(5n+2):hover {
    background-color: #776482;
}

.wavy-card:nth-child(5n+3):hover {
    background-color: #f2e1ca;
}

.wavy-card:nth-child(5n+4):hover {
    background-color: #baa9b8;
}

.wavy-card:nth-child(5n+5):hover {
    background-color: #282643;
}

/* Adapt text color on hover based on contrast */
.wavy-card:nth-child(5n+1):hover .card-body h3,
.wavy-card:nth-child(5n+1):hover .card-body p {
    color: #fff;
}

.wavy-card:nth-child(5n+2):hover .card-body h3,
.wavy-card:nth-child(5n+2):hover .card-body p {
    color: #fff;
}

.wavy-card:nth-child(5n+3):hover .card-body h3,
.wavy-card:nth-child(5n+3):hover .card-body p {
    color: #282643;
}

.wavy-card:nth-child(5n+4):hover .card-body h3,
.wavy-card:nth-child(5n+4):hover .card-body p {
    color: #fff;
}

.wavy-card:nth-child(5n+5):hover .card-body h3,
.wavy-card:nth-child(5n+5):hover .card-body p {
    color: #fff;
}

/* Card Content Styling */
.card-body {
    flex: none;
    padding: 24px 8px 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.card-body h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: var(--line-height-tight);
    color: #282643;
    transition: color 0.3s ease;
}

.card-body p {
    font-size: 15px;
    color: #5f6777;
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* Card Media Styling */
.card-media {
    flex: none;
    width: 100%;
    height: 260px;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.image-arch-frame {
    width: 100%;
    height: 100%;
    /* border-radius: 24px; */
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: #eee;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}