/* --- 1. Variables & Reset --- */
:root {
    --font-main: 'Poppins', sans-serif;
    --bg-color: #F2F4F6;
    --text-color: #111;
    --accent-red: #FF3B30;
    --whatsapp-green: #25D366;

    /* GLASS & BLOB VARIABLES */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    --glass-border: 1px solid rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --blur-amount: blur(25px);

    --elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --speed: 0.8s;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #ffffff;
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);

    /* CRITICAL SCROLL FIXES */
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    touch-action: none;
    /* Disables native scroll/zoom on mobile */

    cursor: none;
    transition: background-color 0.3s ease;
    position: relative;
}

/* Force Hand Cursor logic */
body.hovering {
    cursor: pointer !important;
}

body.hovering .cursor-dot,
body.hovering .cursor-dot-outline {
    opacity: 0;
}


/* --- 2. BACKGROUND BLOBS --- */
.blob-cont {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #a29bfe;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #74b9ff;
    animation-delay: -2s;
    animation-duration: 12s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #ff7675;
    opacity: 0.4;
    animation-delay: -5s;
    animation-duration: 15s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -40px) scale(1.1);
    }
}


/* --- 3. FIXED INTERFACE (HUD) --- */
.fixed-logo {
    position: fixed;
    top: 30px;
    left: 50px;
    z-index: 1000;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.fixed-status {
    /* position: fixed; top: 30px; right: 50px; z-index: 1000; */
    background: var(--glass-bg);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: none;
}

.header-btns {
    position: absolute;
    right: 5%;
    display: flex;
    top: 5%;
    gap: 10px;
    align-items: center;
    z-index: 100;
}

.led-green {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: blink 2s infinite;
}


.parentjourney {
    margin-left: 20px;
    font-size: 50px
}

.parentfocus {
    margin-left: 20px;
    font-size: 50px
}

.Collaborated {
    margin-left: 20px;
    font-size: 50px
}

.casestudy1 {
    margin-left: 20px;
    font-size: 50px
}


@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.8rem;
}

.tiny-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

.fixed-socials {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.fixed-socials::before,
.fixed-socials::after {
    content: '';
    width: 1px;
    height: 50px;
    background: #ccc;
    display: block;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: 0.2s;
    cursor: pointer;
    line-height: 0;
}

.social-icon:hover {
    color: var(--accent-red);
    transform: scale(1.2);
}

.share-trigger {
    color: var(--accent-red);
}

/* --- 4. SLIDER LOGIC --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.bullet-list {
    padding-left: 15px;
}

/* --- 5. ANIMATION & CONTENT --- */
.col-text,
.col-image,
.col-cards {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all var(--speed) var(--elastic);
}

.col-image img {
    transform: rotate(10deg) scale(0.8);
    transition: all var(--speed) var(--elastic);
}

.slide.active .col-text {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.slide.active .col-image {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.3s;
}

.slide.active .col-cards {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.5s;
}

.slide.active .col-image img {
    transform: rotate(-5deg) scale(1);
    transition-delay: 0.3s;
}

.slide.active .col-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Grid Layout (Desktop) */
.slide-wrapper {
    width: 90%;
    height: 80%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 10px;
    padding: 10px 50px 10px 10px;
    margin-left: auto;
}

.col-text {
    grid-column: 1 / 3;
    grid-row: 1;
    z-index: 2;
    padding-top: 5px;
    position: relative;
}

.col-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.location-text {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-text i {
    color: var(--accent-red);
}

.sticker-icons {
    font-size: 2.5rem;
    position: absolute;
    top: 60px;
    left: 320px;
}

.col-image {
    grid-column: 2;
    grid-row: 1 / 3;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img {
    width: 120%;
    margin-right: 180px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.col-cards {
    grid-column: 3;
    grid-row: 1 / 3;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.card-info {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 18px;
    padding: 15px;
    width: auto;
    margin-right: 20px;
    margin-left: auto;

}

.card-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.red-btn {
    width: 45px;
    height: 45px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/* --- 6. Custom Cursor --- */
.cursor-dot,
.cursor-dot-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text-color);
    transform: translate(-50%, -50%);
}

.cursor-dot-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}


/* Resume button position */
.downloadbtn {
    display: flex;
    flex-direction: column;
}


.resumebtn {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 4px;
    height: 45px;

    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;

    background: #ffffff;
    color: rgb(102, 102, 102);
    border: none;
    border-radius: 30px;

    /* Glassmorphism variables */
    background: var(--glass-bg);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.resumebtn button {
    position: absolute;
    top: 20px;
    right: 300px;
    /* change to left: 30px if needed */
}

@media (hover: hover) {
    .resumebtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

        /* very light highlight */
        background: rgba(255, 255, 255, 0.35);
    }
}

/* --- 7. RESPONSIVE LAYOUTS --- */
.imagefocus {
    width: 350px;
    margin-left: 100px;
}

/* TABLET (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .fixed-logo {
        top: 25px;
        left: 30px;
    }


    .fixed-status {
        top: 25px;
        right: 30px;
        padding: 8px 15px;
    }

    .fixed-socials {
        left: 20px;
        gap: 20px;
    }

    .slide-wrapper {
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr;
        grid-template-rows: 1fr;
        width: 100%;
        height: 85%;
        padding: 40px;

    }

    .col-text {
        padding-top: 40px;
    }

    .col-text h1 {
        font-size: 3.5rem;
    }

    .sticker-icons {
        font-size: 2rem;
        left: 200px;
        top: 40px;
    }

    .col-image {
        align-items: center;
    }

    .main-img {
        width: 120%;
        max-width: 500px;
    }

    .col-cards {
        position: relative;
        bottom: auto;
        left: auto;
        align-items: flex-end;
        justify-content: center;
    }

    .card-info {
        width: 100%;
        max-width: 260px;
        margin-right: 0;
    }
}


/* MOBILE (0px - 768px) */
@media (max-width: 768px) {
    .fixed-logo {
        top: 20px;
        left: 20px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Compact Status */
    .fixed-status {
        top: 20px;
        right: 15px;
        padding: 6px 12px;
        gap: 8px;
        border-radius: 20px;
        max-width: 140px;
    }

    .fixed-status .tiny-label {
        display: none;
    }

    .status-text strong {
        font-size: 0.8rem;
        display: block;
    }

    .led-green {
        width: 8px;
        height: 8px;
        flex-shrink: 0;
    }

    /* Socials: Bottom Center */
    .fixed-socials {
        display: flex;
        flex-direction: row;
        left: 50%;
        top: auto;
        bottom: 30px;
        transform: translateX(-50%);
        gap: 20px;

    }

    .fixed-socials::before,
    .fixed-socials::after {
        display: none;
    }

    /* Vertical Stack Layout */
    .slide-wrapper {
        display: flex;
        flex-direction: column;
        height: 100vh;
        width: 100%;
        position: relative;
        padding-top: 80px;
        align-items: center;
        margin: 0;
        padding: 80px 0 0 0;
    }

    .col-text {
        flex: 0 0 auto;
        width: 100%;
        z-index: 4;
        margin-bottom: 0;
    }

    .col-text h1 {
        font-size: 2.5rem;
    }

    .location-text {
        margin-left: 20px;
    }

    .sticker-icons {
        display: none;
    }

    .col-image {
        flex: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        z-index: 1;
        height: auto;
    }

    .main-img {
        width: 90%;
        max-width: 380px;
        opacity: 1;
        object-fit: contain;
        margin-top: 10px;
    }

    .desktopcms img {
        margin-top: 80px;
    }

    /* Cards: Pinned Bottom Left */
    .col-cards {
        position: absolute;
        bottom: 180px;
        left: 20px;
        top: auto;
        right: auto;
        width: auto;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        z-index: 10;
    }

    /* MOBILE FINAL FIX – card stays above socials and auto sizes */

    /* 1. Reset the parent container */
    /* FINAL MOBILE FIX – true center bottom card */

    .col-cards {
        position: fixed;
        bottom: 40px;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
    }


    .card-info {
        pointer-events: auto;

        width: calc(100% - 40px);
        /* 20px left + right */
        max-width: 360px;
        height: auto;
        margin: 0;

        text-align: left;
    }




    .card-info h2 {
        font-size: 1.4rem;
    }

    .card-info p {
        font-size: 16px;
        line-height: 1.4;
    }

    .red-btn {
        margin-left: auto;
        margin-right: 0;
        margin-top: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

}


/* =========================================
   8. WHATSAPP BUTTON (GLOBAL OVERRIDE)
   ========================================= */
.whatsapp-float {
    position: fixed;
    z-index: 2147483647 !important;
    /* Forces it on top of everything */
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    transition: transform 0.3s ease;

    /* Default Desktop Location */
    bottom: 40px;
    right: 40px;
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Mobile & Tablet Specific Location */
@media (max-width: 1024px) {
    .whatsapp-float {
        /* Move it HIGH up to ensure no browser bar covers it */
        bottom: 100px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
}

/* =========================================
   FINAL FIX: WHATSAPP BUTTON
   ========================================= */

.whatsapp-float {
    /* 1. Force Positioning */
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 2147483647 !important;
    /* Max Z-Index */

    /* 2. Force Size & Shape */
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;

    /* 3. Force Appearance */
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;

    /* 4. Force Display */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* 5. Animation */
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 32px !important;
    /* Force Icon Size */
    display: block !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* My journey image properties */
.designimg1 {
    width: 600px;
}

/* Current focus image properties */
.designimg2 {
    width: 500px;
}

/* MOBILE OVERRIDE */
.pranaylogo {
    font-size: 30px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px !important;
        /* Move higher to avoid phone UI */
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .whatsapp-float i {
        font-size: 28px !important;
    }

}

/* =========================================
   SLIDE 4: CONTENT PAGE (Brands/Cases/Footer)
   ========================================= */

/* 1. Layout Structure */
#slide-3 {
    background-color: #ffffff;
    /* White background as per image */
    color: #111;
    /* Dark Text */
}

.scroll-content-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Spread content out */
    height: 100%;
    width: 100%;
    padding: 60px 50px 20px 50px;
    /* Adjust padding to fit */
    text-align: left;
}

/* 2. BRANDS CAROUSEL (Top Strip) */
.brands-section {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brand-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollBrands 20s linear infinite;
}

.brand-logo {
    height: 80px;
    /* Match image size */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-track:hover {
    animation-play-state: paused;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

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

/* 3. CASE STUDIES (Middle Grid) */
.case-studies-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Text | Card 1 | Card 2 */
    gap: 30px;
    flex-grow: 1;
    /* Takes up available space */
    align-items: center;
    position: relative;
}

.cs-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cs-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cs-sub {
    color: #888;
    font-size: 0.8rem;
}

.cs-gallery {
    grid-column: 2 / 4;
    display: flex;
    gap: 20px;
    height: 100%;
    max-height: 400px;
    /* Limit height to fit screen */
}

.cs-card {
    background: #e0e0e0;
    /* Grey placeholder color */
    flex: 1;
    height: 100%;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.cs-card:hover {
    transform: translateY(-5px);
    background: #d0d0d0;
}

/* Navigation Arrows */
.cs-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.nav-arrow:hover {
    background: #111;
    color: white;
}

/* 4. FOOTER (Bottom) */
.footer-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-content h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-content p {
    color: #666;
    font-size: 0.8rem;
}

.copyright p {
    color: #aaa;
    font-size: 0.7rem;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .scroll-content-layout {
        padding: 80px 30px 30px 30px;
    }

    .case-studies-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .cs-gallery {
        grid-column: 1;
        height: 250px;
    }

    .cs-header {
        text-align: center;
        margin-bottom: 0px !important;
    }

    .cs-nav {
        display: none;
    }
}

@media (max-width: 768px) {


    .modal-hero-img {
        width: 320px;
        margin: auto;
    }

    .mobile-arrows {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        margin-top: 16px;
    }

    .arrow-btn {
        width: 64px;
        height: 64px;
        border-radius: 50%;

        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.18),
            inset 0 0 0 1px rgba(255, 255, 255, 0.5);

        font-size: 1.6rem;
        font-weight: 700;
        color: #111;

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    /* Tap feedback */
    .arrow-btn:active {
        transform: scale(0.9);
    }

    /* Stack vertically on mobile */
    .scroll-content-layout {
        overflow-y: hidden;
    }

    .cs-header h1 {
        font-size: 1.8rem;
    }

    .brands-section {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    .brand-logo {
        height: 25px;
        gap: 30px;
    }

    .cs-gallery {
        height: 200px;
    }

    .cs-card {
        width: 100%;
    }

    /* Simplify Footer for mobile fit */
    .footer-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}

/* --- HORIZONTAL ANIMATION CLASS --- */
/* --- HORIZONTAL SLIDE ANIMATION (Slower) --- */
.slide-horizontal {
    transform: translateX(-100%);
    opacity: 0;
    background-color: var(--bg-color);

    /* CHANGED: Increased time to 1.5s for slow elegance */
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 1s ease;
}

.slide.active.slide-horizontal {
    transform: translateX(0);
    opacity: 1;
}

/* =========================================
   NEW LOGIC: STACKED ANIMATIONS
   ========================================= */

/* Default Horizontal Slide (Hidden to the LEFT) */
.slide-horizontal {
    transform: translateX(-100%);
    opacity: 0;
    background-color: var(--bg-color);
    /* Ensure opaque background */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease;
}

/* Active State (Moves to CENTER) */
.slide.active.slide-horizontal {
    transform: translateX(0);
    opacity: 1;
}

/* --- BRANDS STYLING --- */
.brands-layout {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.brand-ticker-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    height: 50vh;
}

.brand-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollLogos 14s linear infinite;
}

.brand-block {
    width: 300px;
    height: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.brand-block img {
    max-width: 60%;
    filter: grayscale(100%) opacity(0.6);
    transition: 0.3s;
}

.brand-block:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.brand-block:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

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


/* --- CASE STUDIES STYLING --- */
.case-study-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.cs-header {
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cs-header h1 {
    font-size: 3rem;
    margin-bottom: 0;
}

.mobile-arrows {
    display: flex;
    gap: 25px;
}

/* Hidden on desktop */

.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.cs-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(231, 228, 228, 0.8);
    height: 250px;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.3s;
    cursor: pointer;
}

.cs-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cs-cat {
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.cs-card h3 {
    font-size: 1.5rem;
    margin-top: 5px;
}


/* --- FOOTER STYLING --- */
.footer-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    text-align: left;
}

.footer-big-text h2 {
    font-size: 5rem;
    margin-bottom: 60px;
}

.footer-big-text span {
    color: var(--accent-red);
}

.footer-details {
    display: flex;
    gap: 80px;
    margin-bottom: 60px;
}

.detail-box label {
    display: block;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.detail-box p {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    color: #888;
    font-size: 0.9rem;
}


/* =========================================
   MOBILE & TABLET ADJUSTMENTS
   ========================================= */
@media (max-width: 1024px) {


    /* 1. Brands: Big Blocks (Approx 2 visible) */
    .brand-block {
        width: 45vw;
        height: 180px;
        flex-shrink: 0;
    }

    .brand-track {
        gap: 20px;
    }

    /* 2. Case Studies: Horizontal Snap Slider */
    .mobile-arrows {
        display: flex;
    }

    /* Show arrows */
    .arrow-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #ddd;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .cs-grid {
        display: flex;
        /* Switch from Grid to Flex */
        overflow-x: auto;
        /* Enable scroll */
        scroll-snap-type: x mandatory;
        /* Snap effect */
        gap: 20px;
        padding-bottom: 20px;
        padding-top: 20px;
        padding-right: 20px;
        padding-left: 10px;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .cs-grid::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar Chrome */

    .cs-card {
        min-width: 100%;
        /* Show 1 card at a time */
        scroll-snap-align: center;
        /* Snap to center */
    }

    /* 3. Footer */
    .footer-big-text h2 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .footer-details {
        flex-direction: column;
        gap: 30px;
    }
}

/* =========================================
   POPUP MODAL STYLES
   ========================================= */

/* 1. The Dark Overlay Background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Dark dimming effect */
    backdrop-filter: blur(8px);
    /* Blur the background site */
    z-index: 1000;
    /* Sit on top of EVERYTHING */

    opacity: 0;
    visibility: hidden;
    /* Hidden by default */
    transition: 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active State (Shown via JS) */
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* 2. The Modal Box (White Container) */
.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    /* Takes up 90% of screen height */
    border-radius: 30px;
    position: relative;
    /* Important for internal scrolling */
    overflow-y: scroll;
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}


/* 3. The X Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f1f1f1;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    z-index: 20;
    /* Sit on top of scrollbar */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-btn:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}


/* 4. The Scrollable Content Area */
.modal-content {
    padding: 60px;
    overflow-y: auto;
    /* ENABLE SCROLLING HERE */
    height: 100%;
    width: 100%;
    text-align: left;
}

/* Typography inside Modal */
.modal-category {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.modal-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #000;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #000;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Images inside Modal */
.modal-hero-img {
    display: flex;
    justify-content: center;
}

.modal-hero-img img {
    width: 480px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    margin-top: 30px;
    /* margin-bottom: 30px; */
}

.modal-gallery {
    display: flex;
    gap: 50px;
    overflow-x: auto;
}

/* VEEDOL CASE STUDY – MOBILE IMAGE FIX */
@media (max-width: 768px) {
    .modal-gallery {
        flex-direction: column;
        gap: 10px;
        overflow-x: hidden;
        align-items: center;
    }

    .modal-gallery img {
        width: 100%;
        max-width: 320px;
        height: 200px;
        object-fit: contain;
        /* ← IMPORTANT */
    }
}


.modal-gallery img {
    /* height: 420px; */
    width: auto;
    flex-shrink: 0;
}


.gallery-item {
    height: 200px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.casestudy1 {
    margin-top: 50px;
}

.resumebtn1 {
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: none;
    background: #ffffff;
    color: rgb(39, 39, 39);
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter:
        var(--blur-amount);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    padding: 10px 20px;
    height: 45px;
    display: inline-flex;
}

/* --- Responsive Modal --- */
@media (max-width: 768px) {

    .cs-card::before {
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .cs-grid.loop-reset {
        animation: loopHint 0.4s ease;
    }

    @keyframes loopHint {
        0% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(-20px);
            /* slight pull back */
        }

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

    .modal-container {
        height: 100vh;
        width: 100%;
        border-radius: 0;
    }

    .modal-content {
        padding: 80px 20px 40px 20px;
        /* More top padding to clear X button */
    }

    .close-btn {
        top: 60px;
        right: 20px;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .modal-content h1 {
        font-size: 2rem;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .parentdev {
        margin-left: 20px;
        font-size: 35px !important;
    }

    .parentjourney {
        margin-left: 20px;
        font-size: 30px !important;
    }

    .parentfocus {
        margin-left: 20px;
        font-size: 30px !important;
    }

    .Collaborated {
        margin-left: 20px;
        font-size: 30px
    }

    .casestudy1 {
        margin-left: 20px;
        font-size: 30px
    }

    .col-cards {
        margin-bottom: 50px;
    }

    .col-image {
        margin-top: 10px;
        margin-left: 200px;
    }

    .devimage {
        width: 400px;
    }

    .devimage img {
        width: 800px;
    }

    .imagefocus {
        width: 300px;
        margin-top: 50px;
    }

    /* MOBILE: Resize & move "My Tools" image */
    .imagefocus .main-img {
        width: 70%;
        /* reduce image size */
        max-width: 260px;
        /* safety limit */
        height: auto;

        margin-top: -30px;
        /* move image upward */
    }



    .casestudy1 {
        font-size: 30px !important;
        margin-top: 0px;
    }

    .case-study-layout {
        display: flex;
        justify-content: flex-start;
        margin-top: 200px;
    }

    .cs-card {
        background: #ffffff;
        border: 1px solid rgba(248, 207, 207, 0.7);
        box-shadow:
            0 2px 18px rgba(108, 108, 108, 0.18),
            inset 0 0 0 1px rgba(255, 255, 255, 0.4);
        /* Grey placeholder color */
        height: auto;
        min-height: 50vh;
        border-radius: 20px;
        transition: transform 0.3s ease;
    }

    .header-btns {
        height: 10px;
    }

    .header-btns:first-child {
        margin-top: 5px;
    }

    .resumebtn1 {
        align-items: center;
        gap: 2px;
        padding: 0px 10px;
        border: none;
        background: #ffffff;
        color: rgb(0, 0, 0);
        border-radius: 13px;
        align-self: center !important;
        cursor: pointer;
        font-size: 12px;
        font-weight: bolder;
        background: var(--glass-bg);
        backdrop-filter: var(--blur-amount);
        -webkit-backdrop-filter:
            var(--blur-amount);
        border: var(--glass-border);
        box-shadow: var(--glass-shadow);
        border-radius: 30px;
        height: 28px;
        width: 100%;
        display: inline-flex;
    }

    .resumebtn1 .tiny-label {
        display: none;
    }

}

/* =========================================
   LIGHTBOX (FULLSCREEN IMAGE) STYLES
   ========================================= */

/* 1. The Black Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Deep black background */
    z-index: 20000;
    /* Sits ON TOP of the Case Study Modal (10000) */

    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    /* Indicates click to close */
}

/* Active State */
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. The Image Itself */
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    object-fit: contain;
}

/* Zoom Animation */
.lightbox-overlay.active img {
    transform: scale(1);
}

/* 3. Close Button (Visual cue) */
.close-lightbox-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.close-lightbox-btn:hover {
    opacity: 1;
    color: var(--accent-red);
}


/* 4. Update Gallery Items to show they are clickable */
.modal-gallery img,
.modal-hero-img img {
    cursor: zoom-in;
    /* Change cursor on hover */
    transition: transform 0.2s;
}

.modal-gallery img:hover,
.modal-hero-img img:hover {
    transform: scale(1.02);
    /* Slight nudge hint */
}

.cs-card {
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    color: #111;
}

.cs-card::before {
    content: "";
    position: absolute;
    width: 90%;
    margin: auto;
    inset: 0;

    background-size: cover;
    background-position: center;

    /* opacity: 0.58; */
    /* controls opacity */
    z-index: 0;
}

.cs-card h3,
.cs-card .cs-cat {
    position: relative;
    z-index: 2;
}

.cs-card.veedol::before {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 50%),
        url("/assets/Veedol app and dashboard.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-card.coffee::before {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 50%),
        url("/assets/Case studies/Delux/Delux loyalty.webp");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-card.tech::before {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 50%),
        url("/assets/Case studies/ENI lucky draw/Luckydraw main homepage.png");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-card.product::before {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 50%),
        url("/assets/Case studies/Gulf M-power/Gulf M-power app.png");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-card.banking::before {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 50%),
        url("/assets/Case studies/Training module/main-banner.webp");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-card.campaign::before {
        background:
            linear-gradient(to bottom,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.85) 50%),
            url("/assets/case-bg/campaign.jpg");

        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
}

.cs-card:hover::before {
    opacity: 0.38;
    transform: scale(1.05);
    transition: 0.4s ease;
}


/* =========================================
   FORCE ARROWS: MOBILE ONLY VISIBILITY
   ========================================= */

/* Desktop & Tablet — ALWAYS HIDDEN */
@media (min-width: 769px) {
    .mobile-arrows {
        display: none !important;
    }
}

/* Mobile only — VISIBLE */
@media (max-width: 768px) {
    .mobile-arrows {
        display: flex !important;
    }
}

/* =========================================
   DESKTOP FIX: Case Study Card Image Crop
   ========================================= */

@media (min-width: 769px) {
    .cs-card::before {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}

/* =========================================
   DESKTOP: Wider Case Study Modal
   ========================================= */

@media (min-width: 1024px) {
    .modal-container {
        max-width: 1200px;
        /* wider than before */
        width: 90%;
    }
}

/* =========================================
   LIGHTBOX – PREMIUM EXPERIENCE
   ========================================= */

.lightbox-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-overlay img {
    cursor: zoom-out;
    max-width: 90%;
    max-height: 90%;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Enable manual zoom */
.lightbox-overlay img {
    touch-action: pinch-zoom;
}

/* DELUX CASE STUDY – MOBILE GRID FIX */
@media (max-width: 768px) {

    /* Only affects modal gallery */
    .modal-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-items: center;
        overflow: hidden;
    }

    .modal-gallery img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
    }
}