/* Cinematic Typography - Light Background Version */
.cp-full-center {
    min-height: 80vh; /* Adjust based on desired section height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.typo-stack {
    display: flex;
    flex-direction: column;
    line-height: 0.85; /* Tightened for high-impact look */
    text-transform: uppercase;
    text-align: center; /* Center align text */
}

.typo-label {
    font-family: 'Glacil Regular', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    margin-bottom: 0.75rem;
    color: var(--theme-blue); /* Darker blue for visibility */
    opacity: 0.8;
}

.typo-heavy {
    font-family: 'Glacil Bold', sans-serif;
    font-size: clamp(3.5rem, 4vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0;
    color: #000000; /* High contrast black for bright BG */
}

.typo-heavy-accent {
    color: var(--highlight-color);
}

.typo-sub {
    font-family: 'Glacil Regular', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: #444; /* Dark gray for readability */
    margin-top: 1.5rem;
    text-transform: none;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cp-card-link {
    font-family: 'Glacil Bold', sans-serif;
    font-size: 0.9rem;
    color: var(--theme-blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Slider Styling */
.cp-hero-slider-wrapper {
    height: 95vh;
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
    background-color: #000; /* Fallback */
}

.hero-slide-img {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    transition: transform 10s ease; /* Subtle zoom effect */
}

/* Optional: Subtle Ken Burns effect for the active slide */
.carousel-item.active .hero-slide-img {
    transform: scale(1.1);
}

.hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2); /* Extra darkening for text readability */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure Carousel Fade is smooth */
.carousel-fade .carousel-item {
    transition-property: opacity;
}

.cp-card-link i {
    font-size: 1.4rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.cp-framework-card:hover .cp-card-link {
    color: var(--highlight-color);
}

.cp-framework-card:hover .cp-card-link i {
    transform: translateX(5px);
}

/* Ensure cards in the row are equal height for the link to sit at the bottom */
.cp-framework-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
html {
    scroll-behavior: smooth;
}

#the-gap {
    /* Adjust '100px' to match the height of your header/navbar if you have one */
    scroll-margin-top: 80px; 
}

/* Optional: Add a subtle entrance animation when the section comes into view */
.cp-full-center {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* Grid Styling */
.framework-grid {
    min-height: 80vh; 
    overflow: hidden;
    border-top: 1px solid #eee;
}

.framework-col {
    position: relative;
    height: 650px; 
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.1); /* Subtle white divider */
    padding-bottom: 60px;
    transition: all 0.5s ease;
    background-color: #000; /* Dark base in case image loads slow */
}

/* The Background Image */
.pillar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Clear visibility but allows the dark overlay to work */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* PERMANENT DARK GRADIENT */
.pillar-overlay {
    position: absolute;
    inset: 0;
    /* Bottom-heavy dark gradient for text legibility */
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.4) 35%, 
        rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Typography Styling */
.pillar-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
    width: 100%;
    transition: all 0.5s ease;
}

.pillar-number {
    display: block;
    font-family: 'Glacial Bold', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--theme-blue);
    font-weight: bold;
}

.pillar-title {
    font-family: 'Glacial Bold', sans-serif;
    font-size: 2.8rem; 
    text-transform: uppercase;
    line-height: 0.85;
    color: #ffffff !important; /* Always White */
    margin-bottom: 10px;
    transition: all 0.5s ease;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Extra pop */
}

.pillar-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85); /* Off-white for better hierarchy */
    max-width: 250px;
    margin: 0 auto;
    height: 0; 
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.pillar-btn {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #fff;
    color: #fff !important;
    text-decoration: none;
    font-family: 'Glacial Bold', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: all 0.4s ease;
}

/* --- HOVER STATES --- */

.framework-col:hover .pillar-bg {
    opacity: 0.8;
    transform: scale(1.08);
}

.framework-col:hover .pillar-title {
    transform: translateY(-10px);
}

.framework-col:hover .pillar-desc, 
.framework-col:hover .pillar-btn {
    height: auto;
    opacity: 1;
    transform: translateY(-10px);
    margin-top: 15px;
}

.pillar-btn:hover {
    background: #fff;
    color: #000 !important;
}

.cp-cta-bar {
    background: var(--theme-blue-light);
    border-radius: 100px; /* Pill shape */
    padding: 1.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 2rem;
    box-shadow: 0 15px 30px -10px rgba(0, 141, 141, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.cp-cta-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(0, 141, 141, 0.4);
}

.cp-download-btn {
    background: var(--highlight-color);
    color: white !important;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-family: 'Glacil Bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cp-download-btn i {
    font-size: 1.1rem;
}

    /* Implementation Section Styles */
.cp-implementation-card {
    background: #ffffff;
    border: 1px solid rgba(0, 141, 141, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    height: 100%;
    position: relative;
    transition: var(--transition-smooth);
    z-index: 1;
}

.cp-implementation-card:hover {
    border-color: var(--highlight-color);
    box-shadow: var(--shadow-xl);
}

.cp-step-number {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--theme-blue-light);
    display: block;
    margin-bottom: 1rem;
}

.cp-process-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--cp-dark);
    margin-bottom: 1.5rem;
}

.cp-pause-box {
    box-shadow: 0 20px 60px rgba(0, 141, 141, 0.05);
    transition: transform 0.4s ease;
}

.cp-pause-box:hover {
    transform: translateY(-5px);
}

.text-italic {
    font-style: italic;
}

.opacity-05 {
    opacity: 0.05;
}

/* Creating a "Fade In" effect for the thought prompt */
.cp-pause-box p {
    animation: fadeInThought 2s ease-in-out;
}

@keyframes fadeInThought {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

    #about-founder {
    background-color: #0b0b0b; /* Deep black for that premium look */
    position: relative;
}

.founder-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0b0b0b 0%, transparent 50%);
}

/* Modal Styling */
.modal-content.bg-black {
    background-color: #000 !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Hover effect for the play button */
#watchVideoBtn:hover .bg-white {
    background-color: var(--theme-blue-light) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

#watchVideoBtn:hover .bi-play-fill {
    color: white !important;
}

.gap-3{
    gap: 15px;
}

/* Responsive Display Utilities for BS4 */
.display-res {
    font-size: 2.5rem; /* Default mobile size (matches display-4) */
    line-height: 1.2;
}










/* The Connecting Path (Desktop Only) */
@media (min-width: 992px) {
    .display-res {
        font-size: 5.5rem; /* Cinematic desktop size (matches display-2) */
    }
    .display-4 {
        font-size: 4rem; /* Cinematic desktop size (matches display-2) */
    }
    .cp-process-row {
        position: relative;
    }
    .cp-process-row::before {
        content: '';
        position: absolute;
        top: 30%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--theme-blue-light) 0, var(--theme-blue-light) 10px, transparent 10px, transparent 20px);
        z-index: 0;
        opacity: 0.3;
    }
}

@media (max-width: 768px){
    .cp-hero-slider-wrapper {
        height: 75vh;
    }
    .hero-slide-img {
        height: 75vh;
    }
    .cp-h1 {
        font-size: clamp(2rem, 3vw, 3.5rem);
        margin-top: 20px;
    }
    .hero-overlay-content {
        align-items: end;
        padding-bottom: 50px;
    }
    .typo-label {
        font-size: 1.2rem;
    }
    .typo-heavy {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }

    .framework-col { height: 450px; }
    .pillar-title { font-size: 2.2rem; }
    .cp-cta-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }
}