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

/* Added root variables for fluid typography */
:root {
    /* Fluid font sizes using clamp() */
    /* format: clamp(MIN_SIZE, PREFERRED_SIZE, MAX_SIZE) */
    --font-size-h1: clamp(2.5rem, 5vw + 1rem, 3.5rem);
    --font-size-h2: clamp(2.25rem, 4vw + 1rem, 3rem);
    --font-size-h3: clamp(2.0rem, 3.5vw + 1rem, 3.5rem);
    --font-size-h3-alt: clamp(1.5rem, 3vw + 1rem, 1.8rem);
    /* For process steps */
    --font-size-subtitle: clamp(1.0rem, 2vw + 0.5rem, 1.2rem);
    --font-size-p: clamp(0.9rem, 1.5vw + 0.5rem, 1.1rem);
    --font-size-p-large: clamp(1.0rem, 2vw + 0.5rem, 1.2rem);
}


body {
    font-family: 'Poppins', sans-serif;
    background: #0a0015;
    color: #fff;
    overflow-x: hidden;
    font-size: var(--font-size-p);
    /* Default fluid text */
}

/* Galaxy Background Animation */
#galaxy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at bottom, #1b0033 0%, #0a0015 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

/* Header Section */
header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* MODIFIED: Reduced top padding to move H1 up */
    padding-top: 100px;
    /* Increased padding to clear logo */
}


.logo-container {
    position: absolute;
    top: -10px;
    left: -42%;
    margin-bottom: 0;
    width: auto;
    height: auto;

    animation: fadeInLogo 1.5s ease-out forwards;
    position: relative;
    z-index: 20;
    /* Ensure logo is on top */
}


.logo-image {
    max-width: 135px;
    width: 15vw;
    min-width: 80px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    animation: logoFloat 3s ease-in-out infinite 1.5s;
    filter: drop-shadow(2px -1px 0px rgba(134, 117, 243, 3.6));
    position: relative;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes logoRotate {
    0% {
        filter: drop-shadow(0 10px 30px rgba(129, 72, 212, 0.6)) hue-rotate(0deg);
    }

    100% {
        filter: drop-shadow(0 10px 30px rgba(129, 72, 212, 0.6)) hue-rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: var(--font-size-h1);
    width: 100vw;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #8148D4, #CFCDE6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out 0.5s both;
    line-height: 1.2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: var(--font-size-subtitle);
    /* MODIFIED: Fluid font size */
    max-width: 700px;
    line-height: 1.8;
    color: #CFCDE6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Shopify Notification System */
.notification-container {
    position: absolute;
    top: 70px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: flex-end;
    max-height: 90vh;
    pointer-events: none;
    z-index: -0;
}

.notification {
    background: rgba(115, 114, 114, 0.34);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: growDown 0.5s ease-out;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    color: #fff;
    will-change: transform, opacity, width, height, padding;
    transform-origin: top right;
    pointer-events: auto;
}

@keyframes growDown {
    from {
        transform: scale(0.2);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(149, 191, 71, 0.3);
}

.shopify-logo-img {
    width: 80%;
    height: 80%;
    border-radius: 8px;
    object-fit: contain;
}

.notification-content {
    flex: 1;
    color: #fff;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.notification-order {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.notification-time {
    font-size: 0.75rem;
    color: #ada8a8;
}

.notification-amount {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.notification-location {
    font-size: 0.75rem;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-location::before {
    content: "•";
    color: #fff;
}

/* Basket Animation */
.basket-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: -0;
    pointer-events: none;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;

}

.basket-icon {
    font-size: 4rem;
    filter: drop-shadow(0 5px 15px rgba(129, 72, 212, 0.6));
    z-index: 10;
    text-align: center;
    position: absolute;
    bottom: -22px;
    font-size: 55px;
    width: 75px;
    will-change: transform;
    overflow: hidden;
    z-index: 9;
    color: #A685E2;
}

.basket-icon.jiggle {
    animation: basketJiggle 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes basketJiggle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }

    75% {
        transform: scale(1.1) rotate(-2deg);
    }
}

/* .basket-balls {
    position: absolute;
    width: 80px; 
    height: 70px; 
    bottom: -10px; 
    z-index: 4; 
    background: rgba(83, 36, 128, 0.1);
    border: 1px solid rgba(129, 72, 212, 0.2);
    border-radius: 10px ;
    backdrop-filter: blur(5px);
    overflow: hidden; 
} */

.shopify-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(149, 191, 71, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease-out, bottom 0.5s ease-out;
    z-index: -2;

}

.shopify-ball-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.shopify-ball.new-ball-landed {
    animation: newBallLanded 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes newBallLanded {
    from {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.shopify-ball.roll-out-left,
.shopify-ball.roll-out-right {
    bottom: 50% !important;
    animation-duration: 1.2s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.shopify-ball.roll-out-left {
    animation-name: rollOutLeft;
}

.shopify-ball.roll-out-right {
    animation-name: rollOutRight;
}

@keyframes rollOutLeft {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(30px) translateX(-80px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes rollOutRight {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(30px) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}


/* Section Styling */
section {
    position: relative;
    z-index: 1;
    /* Reduced to ensure WhatsApp icon is above */
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: var(--font-size-h2);
    /* MODIFIED: Fluid font size */
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #8148D4, #A685E2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- WhatsApp Chat Button --- */
.whatsapp-chat-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 40px auto 0;
    z-index: 10;

    /* Design matching site theme */
    background: linear-gradient(135deg, #8148D4, #A685E2);
    border: 2px solid #532480;
    box-shadow: 0 8px 30px rgba(129, 72, 212, 0.4),
        0 0 0 0 rgba(129, 72, 212, 0.6),
        0 0 0 0 rgba(129, 72, 212, 0.6);

    /* Text & Shape - Bigger */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 18px 36px;
    border-radius: 50px;

    /* Animation - Smooth transitions */
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    animation: whatsappPulse 2s infinite;
    will-change: transform, box-shadow, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Prevent layout shift */
    contain: layout style paint;
}

/* Wave animation for each character - calling the customer */
@keyframes charWave {

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

    50% {
        transform: translateY(-5px);
    }
}

.button-text {
    display: inline-block;
}

.button-text .char {
    display: inline-block;
    animation: charWave 2.5s ease-in-out infinite;
}

/* Stagger animation for each character to create wave effect */
.button-text .char:nth-child(1) {
    animation-delay: 0s;
}

.button-text .char:nth-child(2) {
    animation-delay: 0.1s;
}

.button-text .char:nth-child(3) {
    animation-delay: 0.2s;
}

.button-text .char:nth-child(4) {
    animation-delay: 0.3s;
}

.button-text .char:nth-child(5) {
    animation-delay: 0.4s;
}

.button-text .char:nth-child(6) {
    animation-delay: 0.5s;
}

.button-text .char:nth-child(7) {
    animation-delay: 0.6s;
}

.button-text .char:nth-child(8) {
    animation-delay: 0.7s;
}

.button-text .char:nth-child(9) {
    animation-delay: 0.8s;
}

.button-text .char:nth-child(10) {
    animation-delay: 0.9s;
}

.button-text .char:nth-child(11) {
    animation-delay: 1s;
}

.button-text .char:nth-child(12) {
    animation-delay: 1.1s;
}

.button-text .char:nth-child(13) {
    animation-delay: 1.2s;
}

/* Button opacity control */
.whatsapp-chat-button.hide {
    opacity: 0;
    pointer-events: none;
}

/* Pulse Animation for WhatsApp Button */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 8px 30px rgba(129, 72, 212, 0.4),
            0 0 0 0 rgba(129, 72, 212, 0.6),
            0 0 0 0 rgba(129, 72, 212, 0.6);
    }

    50% {
        box-shadow: 0 8px 30px rgba(129, 72, 212, 0.4),
            0 0 0 10px rgba(129, 72, 212, 0),
            0 0 0 20px rgba(129, 72, 212, 0);
    }

    100% {
        box-shadow: 0 8px 30px rgba(129, 72, 212, 0.4),
            0 0 0 0 rgba(129, 72, 212, 0),
            0 0 0 0 rgba(129, 72, 212, 0);
    }
}

/* Fixed WhatsApp Icon (separate element) */
.whatsapp-fixed-icon {
    position: fixed !important;
    bottom: 30px !important;
    left: 10px !important;
    z-index: 2147483647 !important;
    /* Maximum z-index value - above everything */
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8048d449, #A685E249) !important;
    border: 2px solid #532480 !important;
    box-shadow: 0 8px 30px rgba(129, 72, 212, 0.5);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Ensure it's above all other elements - create new stacking context */
    isolation: isolate !important;
    backdrop-filter: blur(10px);
    /* Force stacking context */
    transform-style: preserve-3d !important;
    /* Remove from any parent stacking context - but allow animations */
    contain: layout style;
    animation: whatsappPulse 2s infinite, iconBounce 2s ease-in-out infinite;
}

.whatsapp-fixed-icon.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 9999999 !important;
    /* Above everything - reasonable high value */
    animation: whatsappPulse 2s infinite, iconBounce 2s ease-in-out infinite;

}

.whatsapp-fixed-icon i {
    font-size: 36px;
    color: #fff;
}

.whatsapp-fixed-icon:hover {
    background: linear-gradient(135deg, #A685E2, #8148D4);
    transform: translateY(-5px) scale(1.1) translateZ(0);
    box-shadow: 0 15px 40px rgba(129, 72, 212, 0.7);
}

/* Icon bounce animation for fixed icon */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

.whatsapp-chat-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(129, 72, 212, 0.6),
        0 0 0 0 rgba(129, 72, 212, 0.7),
        0 0 0 0 rgba(129, 72, 212, 0.7);
    background: linear-gradient(135deg, #A685E2, #8148D4);
    border-color: #8148D4;
}

.whatsapp-chat-button.fixed-icon:hover {
    background: linear-gradient(135deg, #A685E2, #8148D4);
    transform: translateY(-5px) scale(1.1);
}

.whatsapp-chat-button i {
    font-size: 28px;
    color: #fff;
    transition: transform 0.3s ease;
}

.whatsapp-chat-button:hover i {
    transform: rotate(-15deg) scale(1.1);
}

/* WhatsApp Button at Bottom of Page */
.whatsapp-button-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(83, 36, 128, 0.3), rgba(10, 0, 21, 0.5));
    border-top: 2px solid #532480;
    margin-top: 80px;
}

.whatsapp-button-bottom .whatsapp-chat-button {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    margin: 0;
    animation: whatsappPulse 2s infinite;
    transform: none;
}

/* Ensure wave animation works for bottom button too */
.whatsapp-button-bottom .button-text .char {
    display: inline-block;
    animation: charWave 2s ease-in-out infinite;
}

/* Stagger animation for bottom button characters */
.whatsapp-button-bottom .button-text .char:nth-child(1) {
    animation-delay: 0s;
}

.whatsapp-button-bottom .button-text .char:nth-child(2) {
    animation-delay: 0.1s;
}

.whatsapp-button-bottom .button-text .char:nth-child(3) {
    animation-delay: 0.2s;
}

.whatsapp-button-bottom .button-text .char:nth-child(4) {
    animation-delay: 0.3s;
}

.whatsapp-button-bottom .button-text .char:nth-child(5) {
    animation-delay: 0.4s;
}

.whatsapp-button-bottom .button-text .char:nth-child(6) {
    animation-delay: 0.5s;
}

.whatsapp-button-bottom .button-text .char:nth-child(7) {
    animation-delay: 0.6s;
}

.whatsapp-button-bottom .button-text .char:nth-child(8) {
    animation-delay: 0.7s;
}

.whatsapp-button-bottom .button-text .char:nth-child(9) {
    animation-delay: 0.8s;
}

.whatsapp-button-bottom .button-text .char:nth-child(10) {
    animation-delay: 0.9s;
}

.whatsapp-button-bottom .button-text .char:nth-child(11) {
    animation-delay: 1s;
}

.whatsapp-button-bottom .button-text .char:nth-child(12) {
    animation-delay: 1.1s;
}

.whatsapp-button-bottom .button-text .char:nth-child(13) {
    animation-delay: 1.2s;
}

.whatsapp-button-bottom .button-text .char:nth-child(14) {
    animation-delay: 1.3s;
}

.whatsapp-button-bottom .button-text .char:nth-child(15) {
    animation-delay: 1.4s;
}

.whatsapp-button-bottom .button-text .char:nth-child(16) {
    animation-delay: 1.5s;
}

.whatsapp-button-bottom .button-text .char:nth-child(17) {
    animation-delay: 1.6s;
}

.whatsapp-button-bottom .button-text .char:nth-child(18) {
    animation-delay: 1.7s;
}

.whatsapp-button-bottom .button-text .char:nth-child(19) {
    animation-delay: 1.8s;
}

.whatsapp-button-bottom .button-text .char:nth-child(20) {
    animation-delay: 1.9s;
}

.whatsapp-button-bottom .button-text .char:nth-child(21) {
    animation-delay: 2s;
}

.whatsapp-button-bottom .whatsapp-chat-button:hover {
    transform: translateY(-5px) scale(1.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .whatsapp-chat-button {
        font-size: 1.2rem;
        padding: 16px 32px;
    }
}

@media (max-width: 768px) {
    .whatsapp-chat-button {
        padding: 16px 28px;
        font-size: 1.1rem;
        margin: 30px auto 0;
    }

    .whatsapp-chat-button span {
        font-size: 1rem;
    }

    .whatsapp-chat-button i {
        font-size: 26px;
    }

    .whatsapp-fixed-icon {
        bottom: 20px;
        left: 10px;
        width: 70px;
        height: 70px;
    }

    .whatsapp-fixed-icon i {
        font-size: 32px;
    }

    .whatsapp-button-bottom {
        padding: 40px 15px;
    }

    .whatsapp-button-bottom .whatsapp-chat-button {
        width: 100%;
        max-width: 400px;
        justify-content: center;
        font-size: 1.1rem;
        padding: 16px 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat-button {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .whatsapp-chat-button span {
        font-size: 0.95rem;
    }

    .whatsapp-chat-button i {
        font-size: 24px;
    }

    .whatsapp-fixed-icon {
        bottom: 15px;
        left: 15px;
        width: 65px;
        height: 65px;
    }

    .whatsapp-fixed-icon i {
        font-size: 30px;
    }

    .whatsapp-button-bottom .whatsapp-chat-button {
        font-size: 1rem;
        padding: 14px 24px;
    }
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    /* MODIFIED: Changed minmax for better tablet layout */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* MODIFIED: 
  This is the desktop side-by-side card.
  It's now called .case-desktop 
*/
.case-desktop {
    background: rgba(83, 36, 128, 0.2);
    border: 2px solid #532480;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 400px;
    overflow: visible;
    position: relative;
    z-index: 1;
    /* Ensure it doesn't overlap WhatsApp icon */
}

.case-desktop:hover {
    transform: none;
    box-shadow: 0 20px 60px rgba(129, 72, 212, 0.4);
    border-color: #8148D4;
}

.case-column {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #A685E2;
    margin-bottom: 15px;
}

.case-image {
    width: 100%;
    height: 400px;
    /* Increased height for better display */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 15px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
    z-index: 10;
    transform-origin: top left;

}

.case-image:hover .case-img,
.case-profit:hover .case-profit-img,
.case-profit-mobile:hover .case-profit-img-mobile {
    transition-delay: 400ms;
    transform: scale(2.2);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform-origin: top left;
}



.case-profit-img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(129, 72, 212, 0.3);
    transition: transform 0.3s ease;
    transform-origin: top left;
    cursor: pointer;

}

.case-profit-img:hover {
    transform: scale(1.05);
}

.case-arrow {
    font-size: 3rem;
    color: #8148D4;
    align-self: center;
    animation: arrowPulse 1.5s infinite;

}

@keyframes arrowPulse {

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

    50% {
        transform: translateX(10px);
    }
}


/* NEW: Styles for the mobile 3D Flipper Card
*/

/* Hides the mobile card on desktop */
.case-mobile {
    display: none;
    min-height: 700px;
    position: relative;
    z-index: 1;
    /* Ensure it doesn't overlap WhatsApp icon */
}

.case-flipper {
    position: relative;
    width: 100%;
    min-height: 700px;
    /* Give it a fixed height */
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.case-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* This hides the back of the card */

    /* Copy card styles */
    background: rgba(83, 36, 128, 0.2);
    border: 2px solid #532480;
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(2px);

    /* Center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.case-face .case-image {
    min-height: 400px;
    /* Increased height for mobile */
    height: auto;
    /* Taller image for mobile */
}

.case-face .case-img {
    object-fit: fill;
    /* Use contain for mobile */
}

.case-face.case-back {
    /* The back card is rotated 180deg */
    transform: rotateY(180deg);
}

.case-profit-mobile,
.case-profit {
    font-size: 1.5rem;
    font-weight: 700;
    color: #CFCDE6;
    background: rgba(0, 0, 0, 0.3);
    /* Dark, transparent box */
    border-radius: 10px;
    padding: 15px 20px;
    /* Increased padding */
    margin: 0 auto;
    /* Center the box */
    display: flex;
    /* MODIFIED */
    flex-direction: column;
    /* ADDED */
    align-items: center;
    /* ADDED */
    max-width: 70%;
    /* ADDED to contain image */
    width: 100%;
    /* ADDED */
    overflow: hidden;
}

.case-profit {
    max-width: 100%;
    /* ADDED to contain image */
    z-index: 9999;
}

.case-profit-img-mobile {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 5px;
    /* Slight rounding */
    transform-origin: top left;
    z-index: 99999;
}

.profit-amount {
    /* These styles are now *only* for desktop */


    /* These styles are for mobile */
    .case-profit-mobile & {
        position: static;
        transform: none;
        text-shadow: none;
        pointer-events: auto;
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
        margin-bottom: 10px;
        /* ADDED: Space between number and image */
    }
}

.flip-hint {
    font-size: 0.9rem;
    color: #A685E2;
    font-style: italic;
    margin-top: auto;
    /* Pushes to bottom */
}

/* This class is added by JS to flip the card */
.case-mobile.is-flipped .case-flipper {
    transform: rotateY(180deg);
}


/* Who We Are Section */
.who-we-are-container {
    background: linear-gradient(135deg, #532480, #0a0015);
    border-radius: 30px;
    padding: 60px;
    margin-top: 40px;
    border: 2px solid #8148D4;
    box-shadow: 0 20px 60px rgba(129, 72, 212, 0.3);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.who-we-are-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.who-we-are-title {
    font-size: var(--font-size-h2);
    /* MODIFIED: Fluid font size */
    font-weight: 800;
    background: linear-gradient(135deg, #8148D4, #A685E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-align: center;
    /* Center title */
}

.who-we-are-logo {
    width: 125px;
    height: 125px;
    flex-shrink: 0;

}

.who-we-are-logo .logo-image {
    width: 100%;
    height: 100%;
    animation: none;
    filter: drop-shadow(2px 1px 3px rgba(184, 200, 241, 3.6));
    object-fit: cover;
}

.who-we-are-description {
    font-size: var(--font-size-p-large);
    /* MODIFIED: Fluid font size */
    color: #A685E2;
    max-width: 750px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

.who-we-are-subheading {
    font-size: 1rem;
    color: #CFCDE6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    position: relative;
}

.who-we-are-subheading::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8148D4, transparent);
    opacity: 0.5;
}

.who-we-are-content h3 {
    font-size: var(--font-size-h3);
    /* MODIFIED: Fluid font size */
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #A685E2, #CFCDE6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.who-we-are-rating {
    border: 1px solid #8148D4;
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-block;
    margin: 0 auto 30px auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: #CFCDE6;
    backdrop-filter: blur(5px);

}

.who-we-are-rating span {
    color: #f39c12;
    margin-right: 2px;
    letter-spacing: 2px;
}

.who-we-are-content {

    text-align: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-scroll {
    overflow: hidden;
    padding: 18px 0;
    /* أصغر في الارتفاع */
    background: transparent;
    /* بدون خلفية ولا بوردر */
    position: relative;
    border: none;
    box-shadow: none;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-radius: 5px;
}

/* الجوانب المظللة اللي بتدي إحساس العمق */
.logo-scroll::before,
.logo-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.logo-scroll::before {
    left: 0;
    background: linear-gradient(to right, rgba(10, 0, 21, 1) 15%, rgba(10, 0, 21, 0) 69%);
}

.logo-scroll::after {
    right: 0;
    background: linear-gradient(to left, rgba(10, 0, 21, 1) 15%, rgba(10, 0, 21, 0) 69%);
}

/* الشريط المتحرك */
.logo-track {
    display: flex;
    gap: 80px;
    align-items: center;
    width: max-content;
    animation: scrollLogos 70s linear infinite;
    will-change: transform;
}

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

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

/* الكونتينر بتاع كل براند */
.brand-logo {
    flex: 0 0 auto;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(164, 92, 232, 0.2));
}

.brand-logo:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(164, 92, 232, 0.7));
}

/* الصور نفسها */
.brand-logo img {
    height: 50px;
    /* أصغر شويه */
    width: auto;
    object-fit: contain;
    background: transparent;
    /* عشان تبقى شفافه لو PNG */
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(164, 92, 232, 0.3));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.brand-logo:hover img {
    transform: scale(1.1);
    filter: brightness(1.6) drop-shadow(0 0 25px rgba(164, 92, 232, 0.8));
}

/* ✨ تأثير خفي لما اللوجو يدخل النفق */
.logo-scroll:hover .brand-logo {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.logo-scroll:hover .brand-logo:hover {
    opacity: 1;
}

/* موبايل */
@media (max-width: 768px) {
    .logo-track {
        gap: 40px;
        animation-duration: 60s;
    }

    .brand-logo img {
        height: 35px;
    }
}

/* Results Gallery Section */
#results-gallery {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.results-subtitle {
    text-align: center;
    font-size: var(--font-size-subtitle);
    color: #A685E2;
    margin-bottom: 50px;
    font-style: italic;
}

.results-grid {
    margin-top: 40px;
    width: 100%;
}

.result-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(83, 36, 128, 0.2);
    border: 2px solid #532480;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    display: block;
    width: 100%;
}

/* Hidden items (for load more functionality) */
.result-item.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.result-item:hover {
    transform: translateY(-10px);
    border-color: #8148D4;
    box-shadow: 0 20px 60px rgba(129, 72, 212, 0.5);
}

.result-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.result-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-item:hover .result-image {
    transform: scale(1.1);
}

.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 72, 212, 0.8), rgba(166, 133, 226, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.result-item:hover .result-overlay {
    opacity: 1;
}

.result-overlay i {
    font-size: 3rem;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-item:hover .result-overlay i {
    transform: scale(1.2);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 20px 0;
}

.load-more-btn {
    color: #7237e0;
    background: transparent;
    font-size: 1.4rem;
    border: none;
    border-bottom: 2px solid #7237e0;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Poppins', sans-serif;
}

.load-more-btn:hover {
    /* box-shadow: 0 15px 40px rgba(129, 72, 212, 0.6); */
}

.load-more-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.load-more-btn.hidden {
    display: none;
}

/* Responsive Design for Results Gallery */
@media (max-width: 1024px) {
    .results-grid {
        column-count: 2;
        /* 2 columns on tablet */
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-gap: 20px;
    }

    .result-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #results-gallery {
        padding: 60px 20px;
    }

    .results-grid {
        column-count: 2;
        /* Min 2 columns on mobile */
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-gap: 15px;
    }

    .result-item {
        margin-bottom: 15px;
    }

    .result-overlay i {
        font-size: 2.5rem;
    }

    .load-more-btn {
        font-size: 1rem;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    #results-gallery {
        padding: 40px 15px;
    }

    .results-grid {
        column-count: 2;
        /* Keep 2 columns even on small mobile */
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-gap: 12px;
    }

    .result-item {
        margin-bottom: 12px;
    }

    .results-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .result-overlay i {
        font-size: 2rem;
    }

    .load-more-btn {
        font-size: 0.95rem;
        padding: 12px 28px;
    }
}

/* Process Section - Stairs Design */
.process-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
    position: relative;
}

.process-step {
    background: rgba(83, 36, 128, 0.2);
    border: 2px solid #532480;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.process-step:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

.process-step:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: #8148D4;
    box-shadow: 0 20px 60px rgba(129, 72, 212, 0.4);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 110px;
    width: 130px;
    height: 3px;
    background: linear-gradient(90deg, #8148D4, #A685E2);
    z-index: -1;
}

.process-step:nth-child(odd):::before {
    right: -100px;
    transform: translateY(-50%) rotate(15deg);
}

.process-step:nth-child(even):::before {
    left: -100px;
    transform: translateY(-50%) rotate(-15deg);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8148D4, #A685E2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(129, 72, 212, 0.5);
    z-index: 10;
}

.step-title {
    font-size: var(--font-size-h3-alt);
    /* MODIFIED: Fluid font size */
    font-weight: 700;
    color: #A685E2;
    margin-bottom: 15px;
    margin-top: 20px;
}

.step-description {
    color: #CFCDE6;
    line-height: 1.8;
    font-size: var(--font-size-p);
    /* MODIFIED: Fluid font size */
}

/* Image Popup Overlay */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.4s ease-in-out;
}

.image-popup-overlay.active .image-popup-content {
    transform: scale(1);
}

.popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.popup-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* =====================================
  MODIFIED: Responsive Design
  =====================================
*/

/* Tablet and Mobile */
@media (max-width: 1024px) {
    section {
        padding: 60px 20px;
    }

    .logo-container {
        left: 0;
    }

    .logo-image {
        /* max-width: 120px; */
        min-width: 90px;
    }

    header {
        padding-top: 150px;
        /* More space for logo */
        min-height: 80vh;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 60px;
        /* More space between flippable cards */
    }

    /* MODIFIED: Hide desktop card, show mobile card */
    .case-desktop {
        display: none;
    }

    .case-mobile {
        display: block;
        cursor: pointer;
    }

    .case-image {
        height: auto;
        /* Adjusted for tablet */
    }

    .case-face .case-image {
        min-height: auto;
    }

    .case-image,
    .case-img {
        width: 85%;
    }

    /* NEW: Notification positioning for mobile/tablet 
      This is fixed to the top as requested.
    */
    .notification-container {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: auto;
        /* Remove bottom positioning */
        width: auto;
        max-width: 400px;
        /* Limit width */
        margin: 0 auto;
        /* Center it */
        z-index: -0;
        align-items: center;
        /* Center notifications */
        pointer-events: none;
    }

    .notification {
        min-width: 0;
        width: 100%;
    }

    .basket-container {
        right: 10px;
        bottom: 90px;
        /* Lowered */
    }

    .who-we-are-container {
        padding: 40px;
    }

    .who-we-are-logo .logo-image {
        animation: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }


    .who-we-are-logo {

        margin: 0 auto;
        width: 90px;
        /* Smaller */
        height: 90px;
    }

    .process-step::before {
        display: none;
        /* Hide stair connectors */
    }

    .process-step {
        margin: 0 auto 20px auto !important;
        width: 100%;
        padding: 30px;
    }

    .step-title {
        margin-top: 15px;
    }

}

/* Mobile only */
@media (max-width: 480px) {
    section {
        padding: 40px 15px;
    }

    header {
        padding-top: 130px;
        min-height: 60vh;
    }

    .case-profit-mobile {
        max-width: 100%;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        text-align: center;
    }

    .basket-container {
        bottom: 250px;
    }

    .case-image {
        height: auto;
        /* Adjusted for mobile */
    }

    .case-face .case-image {
        min-height: 300px;
        height: auto;
        /* Adjusted for mobile */
    }

    .case-image,
    .case-img {
        width: 100%;
    }

    .who-we-are-title {
        font-size: 25px;
        display: none;
    }

    .who-we-are-logo {
        position: relative;
        animation: none;
    }

    .who-we-are-logo .logo-image {
        animation: none;
    }

    .who-we-are-container {
        padding: 20px 20px;
    }

    .who-we-are-rating {
        font-size: 0.6rem;
        justify-content: center;
        text-align: left;
        padding: 5px 10px;
    }

    .who-we-are-rating span {
        font-size: 13px;
    }

    .who-we-are-description {
        font-size: 14px;
        text-align: left;

    }

    .who-we-are-content h3 {
        font-size: 17px;

    }

    .image-popup-content {
        width: 98%;
        height: 70%;
    }

    .popup-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 379px) {
    .basket-container {
        bottom: 169px;
    }

    .subtitle {
        font-size: 0.78rem;
        text-align: center;
    }
}

/* --- Reports Section --- */
#reports-section {
    padding: 100px 20px;
    background: radial-gradient(circle at center, rgba(129, 72, 212, 0.1) 0%, transparent 70%);
    border-radius: 40px;
    margin: 80px auto;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
}

.reports-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.reports-header {
    text-align: center;
    margin-bottom: 50px;
}

.reports-title {
    font-size: var(--font-size-h2);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #A685E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.reports-subtitle {
    font-size: var(--font-size-subtitle);
    color: #CFCDE6;
    max-width: 700px;
    line-height: 1.6;
}

.report-window {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(129, 72, 212, 0.4);
    background: #000;
    box-shadow: 0 0 40px rgba(129, 72, 212, 0.2), inset 0 0 30px rgba(0,0,0,0.5);
}

.report-pdf {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.report-overlay-cue {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(transparent, rgba(10, 0, 21, 0.98));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 60px;
    z-index: 10;
    pointer-events: none;
}

.view-report-btn {
    background: linear-gradient(135deg, #8148D4, #A685E2);
    border: none;
    color: #fff !important;
    padding: 20px 45px;
    border-radius: 60px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(129, 72, 212, 0.4);
    pointer-events: auto;
}

.view-report-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 50px rgba(129, 72, 212, 0.6);
}

.pulse-icon {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.3); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Report Full Modal */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.report-modal.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.report-modal.active .modal-container {
    transform: scale(1);
}

.close-report-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #000;
    font-size: 35px;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.close-report-modal:hover {
    transform: rotate(90deg) scale(1.1);
    background: #fff;
}

.full-report-pdf {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}
