﻿/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B1C2C;
}

::-webkit-scrollbar-thumb {
    background: #162a3f;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #3AB7FF;
    }

/* Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #F0F2F5, #3AB7FF);
}

.gold-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #C5A065, #F0E68C);
}

.glass-card {
    background: rgba(11, 28, 44, 0.95);
    /* High opacity for cross-browser stability */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Safari Fixes - Robust */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
    z-index: 1;
}

    .glass-card:hover {
        transform: translateY(-8px);
        border-color: #3AB7FF;
        box-shadow: 0 20px 40px -15px rgba(0, 212, 189, 0.15);
    }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Hero Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}



/* Smooth Anchor Offsets */
html {
    scroll-padding-top: 100px;
}

/* Testimonials Carousel */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Spring-like pop */
    transform: scale(0.95);
    opacity: 0.7;
    filter: blur(1px);
}

    .testimonial-card.active {
        transform: scale(1.05);
        opacity: 1;
        filter: blur(0);
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(58, 183, 255, 0.1);
        border-color: rgba(58, 183, 255, 0.3);
        z-index: 10;
    }

    .testimonial-card p {
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.6;
    }

/* Navigation Buttons */
#prevBtn,
#nextBtn {
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 40s linear infinite;
    /* Slowed down for better readability */
    perspective: 1000px;
    /* Enable 3D space */
}

.hover\:pause-animation:hover {
    animation-play-state: paused;
}

/* Split Screen Layout for Service Pages */
.split-layout {
    display: flex;
    min-height: 100vh;
    background-color: #0B1C2C;
    /* Deep Navy */
    overflow-x: hidden;
}

.content-side {
    width: 50%;
    padding: 4rem 6rem;
    /* Removed overflow-y: auto and height: 100vh to allow body scrolling */
    position: relative;
}

.image-side {
    width: 50%;
    /* Removed fixed positioning */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 4rem 4rem 0;
    /* Padding to inset images slightly */
}

.image-stack-item {
    width: 100%;
    height: 600px;
    /* Taller images */
    object-fit: cover;
    border-radius: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .image-stack-item:hover {
        opacity: 1;
    }

/* Responsive Split Layout */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
    }

    .content-side {
        width: 100%;
        padding: 3rem 2rem;
    }

    .image-side {
        width: 100%;
        padding: 2rem;
        order: -1;
    }

    .image-stack-item {
        height: 300px;
    }
}

/* Service Page Specifics */
.service-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 2rem;
}

.service-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #94A3B8;
    /* Slate Grey */
    margin-bottom: 4rem;
}

.service-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #C5A065;
    /* Gold */
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(197, 160, 101, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #E2E8F0;
}

    .check-list li i {
        color: #3AB7FF;
        /* Teal/Blue */
        flex-shrink: 0;
        margin-top: 0.25rem;
    }

.deliverables-grid {
    display: grid;
    gap: 2rem;
}

.deliverables-grid-2col {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .deliverables-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.deliverable-item h4 {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.deliverable-item p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sticky Scroll Layout */
.sticky-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    position: relative;
}

.sticky-sidebar {
    width: 40%;
    position: sticky;
    top: 6rem;
    /* Adjust based on navbar height or padding */
}

.scrollable-cards {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lab-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

    .lab-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(58, 183, 255, 0.3);
        transform: translateY(-5px);
    }

    .lab-card h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        color: white;
        margin-bottom: 1rem;
    }

    .lab-card p {
        color: #94A3B8;
        line-height: 1.6;
    }

@media (max-width: 1024px) {
    .sticky-wrapper {
        flex-direction: column;
    }

    .sticky-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 3rem;
    }

    .scrollable-cards {
        width: 100%;
    }
}

/* Career Mentorship - Sticky Journey */
.why-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

    .why-card p {
        font-size: 0.95rem;
        color: #94A3B8;
        line-height: 1.5;
    }

.sticky-journey-wrapper {
    display: flex;
    gap: 4rem;
    position: relative;
}

.journey-scroll-side {
    width: 50%;
    padding-bottom: 10vh;
    /* Extra space at bottom */
}

.mentorship-step {
    min-height: 60vh;
    /* Ensure enough scroll space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .mentorship-step:last-child {
        border-bottom: none;
    }

    .mentorship-step h3 {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        color: white;
        margin-bottom: 1rem;
    }

    .mentorship-step p {
        color: #94A3B8;
        font-size: 1.1rem;
        line-height: 1.7;
    }

.sticky-visuals {
    width: 50%;
    height: 80vh;
    position: sticky;
    top: 10vh;
    border-radius: 1rem;
    overflow: hidden;
    background: #050F19;
}

.visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

    .visual-image.active {
        opacity: 1;
    }

@media (max-width: 1024px) {
    .sticky-journey-wrapper {
        flex-direction: column-reverse;
    }

    .journey-scroll-side {
        width: 100%;
    }

    .sticky-visuals {
        width: 100%;
        height: 50vh;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .mentorship-step {
        min-height: auto;
        padding: 3rem 0;
    }
}

.outcome-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(58, 183, 255, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.cta-button-gold {
    display: inline-block;
    background: linear-gradient(135deg, #C5A065, #F0E68C);
    color: #0B1C2C;
    font-weight: bold;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(197, 160, 101, 0.4);
}

    .cta-button-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px -5px rgba(197, 160, 101, 0.6);
    }

/* Premium Client Card */
.premium-client-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

    .premium-client-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(58, 183, 255, 0.3);
        transform: translateY(-5px);
    }

.client-logo-area {
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}
