/*
 * Ciphernest Consultancy Services - Custom Styles
 * Overrides for brand colors matching the logo design
 * Cyan/Turquoise (#00BCD4) and Purple (#9C27B0) gradient theme
 */

:root {
    /* Primary brand colors - Cyan/Turquoise */
    --main-h: 187;
    --main-s: 100%;
    --main-l: 42%;
    --main: var(--main-h) var(--main-s) var(--main-l);

    /* Secondary brand color - Purple */
    --secondary-h: 291;
    --secondary-s: 64%;
    --secondary-l: 42%;

    /* Gradient colors */
    --gradient-cyan: #00BCD4;
    --gradient-purple: #9C27B0;
    --gradient-primary: linear-gradient(135deg, var(--gradient-cyan) 0%, var(--gradient-purple) 100%);
}

/* Gradient text effect for headings */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Banner Text Display - Desktop by default */
.desktop-banner-text {
    display: inline;
}

.mobile-banner-text {
    display: none;
    overflow: visible !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.02em;
}

/* Ensure h1 and banner section don't clip text */
.banner h1 {
    overflow: visible !important;
    line-height: 1.4 !important;
}

.banner h1.fw-semibold {
    overflow: visible !important;
}

/* Mobile Banner Grid Layout */
.mobile-banner-grid {
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
}

.mobile-banner-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 0rem;
    position: relative;
    z-index: 10;
}

.mobile-banner-row.mobile-banner-values {
    margin-top: -0.6rem;
}

.mobile-banner-col {
    flex: 0 0 auto;
    text-align: left !important;
    padding: 4px 10px 4px 0;
    position: relative;
    z-index: 10;
    color: #000 !important;
}

.mobile-banner-col:first-child {
    min-width: 140px;
    padding-right: 15px;
}

.mobile-banner-col:last-child {
    min-width: 160px;
    padding-right: 15px;
}

/* Override text-heighlight default centering for mobile banner */
.mobile-banner-text .text-heighlight {
    text-align: left !important;
    display: inline-block !important;
    min-width: auto !important;
    width: auto !important;
}

.mobile-banner-text .verticalFlip,
.mobile-banner-text .slidingVertical {
    text-align: left !important;
    display: inline-block !important;
}

.mobile-banner-text .verticalFlip span,
.mobile-banner-text .slidingVertical span {
    text-align: left !important;
    display: block !important;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

/* Gradient border */
.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Hover effects with gradient */
.hover-gradient:hover {
    background: var(--gradient-primary);
    color: white !important;
    transition: all 0.3s ease;
}

/* Button gradient style */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.3);
}

/* Custom shadow with brand colors */
.shadow-cyan {
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.shadow-purple {
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.2);
}

/* Service cards with gradient hover */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.service-card:hover {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.15);
}

/* Icon backgrounds with gradient */
.icon-gradient-bg {
    background: var(--gradient-primary);
    border-radius: 50%;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Animated gradient border */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-border {
    background: linear-gradient(90deg, var(--gradient-cyan), var(--gradient-purple), var(--gradient-cyan));
    background-size: 200% 200%;
    animation: gradient-border 3s ease infinite;
}

/* ============================================
   Banner Text Animations - Rotating/Sliding Words
   ============================================ */

/* Vertical Sliding Animation */
.slidingVertical {
    display: inline-block;
    text-indent: 8px;
    position: relative;
    vertical-align: top;
}

.slidingVertical span {
    animation: topToBottom 12.5s linear infinite;
    -ms-animation: topToBottom 12.5s linear infinite;
    -webkit-animation: topToBottom 12.5s linear infinite;
    color: var(--gradient-purple);
    opacity: 0;
    overflow: hidden;
    position: absolute;
    font-weight: bold;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.slidingVertical span:nth-child(2) {
    animation-delay: 2.5s;
    -ms-animation-delay: 2.5s;
    -webkit-animation-delay: 2.5s;
}

.slidingVertical span:nth-child(3) {
    animation-delay: 5s;
    -ms-animation-delay: 5s;
    -webkit-animation-delay: 5s;
}

.slidingVertical span:nth-child(4) {
    animation-delay: 7.5s;
    -ms-animation-delay: 7.5s;
    -webkit-animation-delay: 7.5s;
}

.slidingVertical span:nth-child(5) {
    animation-delay: 10s;
    -ms-animation-delay: 10s;
    -webkit-animation-delay: 10s;
}

/* Top to Bottom Sliding Animation */
@-moz-keyframes topToBottom {
    0% { opacity: 0; }
    5% { opacity: 0; -moz-transform: translateY(-50px); }
    10% { opacity: 1; -moz-transform: translateY(0px); }
    25% { opacity: 1; -moz-transform: translateY(0px); }
    30% { opacity: 0; -moz-transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

@-webkit-keyframes topToBottom {
    0% { opacity: 0; }
    5% { opacity: 0; -webkit-transform: translateY(-50px); }
    10% { opacity: 1; -webkit-transform: translateY(0px); }
    25% { opacity: 1; -webkit-transform: translateY(0px); }
    30% { opacity: 0; -webkit-transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes topToBottom {
    0% { opacity: 0; }
    5% { opacity: 0; transform: translateY(-50px); }
    10% { opacity: 1; transform: translateY(0px); }
    25% { opacity: 1; transform: translateY(0px); }
    30% { opacity: 0; transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

/* Vertical Flip Animation */
.verticalFlip {
    display: inline-block;
    text-indent: 8px;
    position: relative;
    vertical-align: top;
}

.verticalFlip span {
    animation: vertical 12.5s linear infinite;
    -ms-animation: vertical 12.5s linear infinite;
    -webkit-animation: vertical 12.5s linear infinite;
    color: var(--gradient-cyan);
    opacity: 0;
    overflow: hidden;
    position: absolute;
    font-weight: bold;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.verticalFlip span:nth-child(2) {
    animation-delay: 2.5s;
    -ms-animation-delay: 2.5s;
    -webkit-animation-delay: 2.5s;
}

.verticalFlip span:nth-child(3) {
    animation-delay: 5s;
    -ms-animation-delay: 5s;
    -webkit-animation-delay: 5s;
}

.verticalFlip span:nth-child(4) {
    animation-delay: 7.5s;
    -ms-animation-delay: 7.5s;
    -webkit-animation-delay: 7.5s;
}

.verticalFlip span:nth-child(5) {
    animation-delay: 10s;
    -ms-animation-delay: 10s;
    -webkit-animation-delay: 10s;
}

/* Vertical Flip Rotation Animation */
@-moz-keyframes vertical {
    0% { opacity: 0; }
    5% { opacity: 0; -moz-transform: rotateX(180deg); }
    10% { opacity: 1; -moz-transform: translateY(0px); }
    25% { opacity: 1; -moz-transform: translateY(0px); }
    30% { opacity: 0; -moz-transform: translateY(0px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

@-webkit-keyframes vertical {
    0% { opacity: 0; }
    5% { opacity: 0; -webkit-transform: rotateX(180deg); }
    10% { opacity: 1; -webkit-transform: translateY(0px); }
    25% { opacity: 1; -webkit-transform: translateY(0px); }
    30% { opacity: 0; -webkit-transform: translateY(0px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes vertical {
    0% { opacity: 0; }
    5% { opacity: 0; transform: rotateX(180deg); }
    10% { opacity: 1; transform: translateY(0px); }
    25% { opacity: 1; transform: translateY(0px); }
    30% { opacity: 0; transform: translateY(0px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

/* Text highlight styles for animated words */
.text-heighlight {
    position: relative;
    display: inline-block;
    min-width: 150px;
    text-align: left;
}

.text-heighlight .verticalFlip,
.text-heighlight .slidingVertical {
    min-height: 1.2em;
    display: inline-block;
    position: relative;
}

/* Banner image - no effects */
.banner-image-magnify img {
    width: 100%;
    height: auto;
    display: block;
}

/* Smooth animation for banner image */
@keyframes bannerImageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.banner-image-float {
    animation: bannerImageFloat 6s ease-in-out infinite;
}

/* ============================================
   Custom Cursor - Transparent Circle on Hover
   ============================================ */

.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    margin-left: -16px;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    border: 1px solid white;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 10000000;
    opacity: 1;
    pointer-events: none;
    transition: all 0.08s ease-out;
    mix-blend-mode: difference;
}

.cursor-outer.cursor-hover {
    opacity: 0;
    transition: all 0.3s ease;
}

.cursor-outer.cursor-big {
    opacity: 0;
}

.mouseCursor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translateZ(0);
    visibility: hidden;
    text-align: center;
}

.mouseCursor.cursor-big {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
}

.cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    margin-left: -5px;
    margin-top: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 10000001;
    background-color: white;
    opacity: 1;
    pointer-events: none;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, margin 0.3s ease-in-out, opacity 0.3s ease-in-out;
    mix-blend-mode: difference;
}

.cursor-inner span {
    color: white;
    line-height: 60px;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.cursor-inner.cursor-hover {
    margin-left: -12px;
    margin-top: -12px;
    width: 25px;
    height: 25px;
    background-color: white;
    opacity: 0;
    mix-blend-mode: difference;
    transition: all 0.3s ease;
}

/* ============================================
   Why Choose Us Section - Equal Height Cards
   ============================================ */

.choose-us-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Showcase Section - Image Display Settings
   ============================================ */

.show-case-slider .group-item a.tw-max-h-410-px {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.show-case-slider .group-item img.object-fit-cover {
    object-fit: contain !important;
    background: #1a1a2e;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    padding: 25px;
}

/* ============================================
   Technology Cards - Feature One Styles
   ============================================ */

.feature-one__single {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.feature-one__img {
    position: relative;
    display: block;
    overflow: hidden;
    z-index: 1;
    border-radius: 12px;
    height: 240px;
}

.feature-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-transform 500ms ease;
    transition: -webkit-transform 500ms ease;
    transition: transform 500ms ease;
    transition: transform 500ms ease, -webkit-transform 500ms ease;
}

.feature-one__single:hover .feature-one__img img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.feature-one__title-box {
    position: absolute;
    left: 30px;
    bottom: 30px;
    opacity: 1;
    visibility: visible;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    z-index: 5;
}

.feature-one__single:hover .feature-one__title-box {
    opacity: 0;
    visibility: hidden;
}

.feature-one__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #fff;
    text-shadow: 0px 0px 6px #000000c7;
    margin: 0;
}

.feature-one__hover-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 30px 25px 25px;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    opacity: 1;
    -webkit-transform-origin: top;
    transform-origin: top;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    z-index: 3;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.95) 0%, rgba(156, 39, 176, 0.95) 100%);
    border-radius: 12px;
}

.feature-one__single:hover .feature-one__hover-content {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
}

.feature-one__icon {
    position: relative;
    display: block;
}

.feature-one__icon img {
    height: 45px;
    width: auto;
}

.feature-one__hover-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin-top: 15px;
    margin-bottom: 12px;
    color: #fff;
}

.feature-one__hover-text {
    font-size: 14px;
    color: #ececec;
    line-height: 22px;
}

/* ============================================
   Circular Progress Animation
   ============================================ */

.radial-progress {
    width: 80px;
    height: 80px;
}

.radial-progress circle {
    fill: none;
    stroke-width: 5;
}

.radial-progress .incomplete {
    stroke: rgba(255, 255, 255, 0.2);
}

.radial-progress .complete {
    stroke: #00bcd4;
    stroke-linecap: round;
    stroke-dasharray: 219.91; /* 2 * π * 35 = circumference */
    stroke-dashoffset: 219.91;
    animation: progress-animation 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes progress-animation {
    to {
        stroke-dashoffset: 21.99; /* 10% of circumference (90% filled) */
    }
}

.radial-progress .percentage {
    fill: white;
    font-size: 18px;
    font-weight: bold;
    text-anchor: middle;
}

/* ============================================
   Responsive Media Queries
   ============================================ */

/* Tablet and Below (991px and down) */
@media (max-width: 991px) {
    /* Banner Text - Show mobile version only */
    .desktop-banner-text {
        display: none !important;
    }

    .mobile-banner-text {
        display: inline !important;
    }

    /* Banner team image - Hide on tablet */
    .banner-team-img {
        display: none !important;
    }

    /* Hide banner image section */
    .banner .col-lg-6:nth-child(2) {
        display: none !important;
    }

    /* Make banner content full width */
    .banner .col-lg-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Banner cards - Hide */
    .banner .max-w-218-px {
        display: none !important;
    }

    /* Hide experience badge */
    .banner .clip-path-one {
        display: none !important;
    }

    /* Roadmap balls - 2 per row with beautiful styling */
    .ball.tw-w-180-px {
        width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
        flex: none !important;
        max-width: 100% !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        padding: 1.3rem 0.9rem !important;
        position: relative !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .ball.tw-w-180-px:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 30px rgba(0, 188, 212, 0.3) !important;
        z-index: 10 !important;
    }

    /* Override AOS animations to prevent overlap */
    .ball.tw-w-180-px.animation-item {
        animation: none !important;
        opacity: 1 !important;
    }

    /* How We Work balls container - Prevent overlap */
    .flex-grow-1 .d-flex.tw-gap-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* Reset all ball positioning classes */
    .ball.tw-w-180-px {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        float: none !important;
        clear: both !important;
    }

    /* Disable AOS transforms for balls */
    [data-aos].ball {
        transform: none !important;
        transition-property: box-shadow, transform !important;
    }

    /* Hide arrow in How We Work section */
    .pt-120 .animate__wobble__two {
        display: none !important;
    }

    /* About Section - Reduce gaps */
    .about .d-flex[style*="gap: 20px"] {
        gap: 15px !important;
    }

    /* About section - Hide ONLY the stats cards container */
    .gradient-bg-one .d-flex[style*="min-height: 300px"] {
        display: none !important;
    }

    /* Hide the desktop CTA card */
    .mobile-cta-card {
        display: none !important;
    }

    /* Show mobile bottom CTA card */
    .mobile-bottom-cta-card {
        display: block !important;
        margin-top: 1.5rem;
    }

    .mobile-bottom-cta-card .bg-main-600 {
        box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
    }

    /* Footer Quick Links and Services side by side */
    .footer .col-lg-2.col-sm-4,
    .footer .col-lg-3.col-sm-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .footer .col-lg-2.col-sm-4 .footer-item,
    .footer .col-lg-3.col-sm-4 .footer-item {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    /* Custom Cursor - Disable on tablets and touch devices */
    .cursor-outer,
    .cursor-inner,
    .mouseCursor {
        display: none !important;
    }
}

/* Small Tablets (767px and down) */
@media (max-width: 767px) {
    /* Banner Text - Show mobile version only */
    .desktop-banner-text {
        display: none !important;
    }

    .mobile-banner-text {
        display: inline !important;
    }

    /* Banner team image - Hide on tablet */
    .banner-team-img {
        display: none !important;
    }

    /* Hide banner image section on tablet */
    .banner .col-lg-6:nth-child(2) {
        display: none !important;
    }

    /* Make banner content full width on tablet */
    .banner .col-lg-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Banner cards - Hide on tablet */
    .banner .max-w-218-px {
        display: none !important;
    }

    /* Hide experience badge on tablet */
    .banner .clip-path-one {
        display: none !important;
    }

    /* Technology cards */
    .feature-one__img {
        height: 200px;
    }

    /* CTA model image */
    .cta-model-img {
        max-width: 350px;
    }

    /* Choose Us section */
    .choose-us-wrapper {
        height: 350px !important;
    }

    .choose-us-image {
        height: 350px !important;
    }

    /* Roadmap balls - 2 per row with beautiful styling */
    .ball.tw-w-180-px {
        width: 100% !important;
        height: auto !important;
        min-height: 165px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
        flex: none !important;
        max-width: 100% !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        padding: 1.2rem 0.8rem !important;
        position: relative !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .ball.tw-w-180-px:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 30px rgba(0, 188, 212, 0.3) !important;
        z-index: 10 !important;
    }

    /* Override AOS animations on tablet to prevent overlap */
    .ball.tw-w-180-px.animation-item {
        animation: none !important;
        opacity: 1 !important;
    }

    /* How We Work balls container - Prevent overlap */
    .flex-grow-1 .d-flex.tw-gap-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* Reset all ball positioning classes */
    .ball.tw-w-180-px {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        float: none !important;
        clear: both !important;
    }

    /* Disable AOS transforms on tablet for balls */
    [data-aos].ball {
        transform: none !important;
        transition-property: box-shadow, transform !important;
    }

    .ball .tw-text-base {
        font-size: 0.85rem !important;
    }

    /* Hide arrow in How We Work section on tablet */
    .pt-120 .animate__wobble__two {
        display: none !important;
    }

    /* About section - Hide ONLY the stats cards container on tablet */
    .gradient-bg-one .d-flex[style*="min-height: 300px"] {
        display: none !important;
    }

    /* Hide the desktop CTA card on tablet */
    .mobile-cta-card {
        display: none !important;
    }

    /* Show mobile bottom CTA card on tablet */
    .mobile-bottom-cta-card {
        display: block !important;
        margin-top: 1.5rem;
    }

    .mobile-bottom-cta-card .bg-main-600 {
        box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
    }

    /* Footer Quick Links and Services side by side on tablet */
    .footer .col-lg-2.col-sm-4,
    .footer .col-lg-3.col-sm-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .footer .col-lg-2.col-sm-4 .footer-item,
    .footer .col-lg-3.col-sm-4 .footer-item {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}

/* Mobile Devices (575px and down) */
@media (max-width: 575px) {
    /* Disable custom cursor on mobile */
    .cursor-outer,
    .cursor-inner,
    .mouseCursor {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Banner Text - Show mobile version only */
    .desktop-banner-text {
        display: none !important;
    }

    .mobile-banner-text {
        display: inline !important;
    }

    /* Banner Section - Stack positioned elements */
    .banner [style*="right: -40px"],
    .banner [style*="right: -30px"] {
        position: relative !important;
        right: 0 !important;
        margin-top: 20px;
    }

    .banner .tw-ps-98-px {
        padding-left: 15px !important;
    }

    /* Banner icons */
    .banner [style*="font-size: 32px"],
    .banner [style*="font-size: 30px"],
    .banner [style*="font-size: 28px"] {
        font-size: 24px !important;
    }

    /* Banner team image - Hide on mobile */
    .banner-team-img {
        display: none !important;
    }

    /* Hide banner image section on mobile - using adjacent element selector */
    .banner .col-lg-6:nth-child(2) {
        display: none !important;
    }

    /* Make banner content full width on mobile */
    .banner .col-lg-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Animated text highlight */
    .text-heighlight {
        min-width: 100px;
        display: block;
    }

    /* Technology cards */
    .feature-one__img {
        height: auto !important;
        min-height: 220px !important;
    }

    .feature-one__single {
        margin-bottom: 1rem;
    }

    /* Fix hover content to fit screen on mobile */
    .feature-one__hover-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 15px 12px 12px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .feature-one__icon {
        flex-shrink: 0;
    }

    .feature-one__hover-title {
        font-size: 15px !important;
        line-height: 18px !important;
        margin-top: 8px !important;
        margin-bottom: 6px !important;
        flex-shrink: 0;
    }

    .feature-one__hover-text {
        font-size: 11px !important;
        line-height: 16px !important;
        flex-grow: 1;
        overflow-y: auto !important;
    }

    /* Roadmap balls - Mobile optimized - 2 per row with beautiful styling */
    .ball.tw-w-180-px {
        width: 100% !important;
        height: auto !important;
        min-height: 145px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
        flex: none !important;
        max-width: 100% !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        padding: 1rem 0.5rem !important;
        position: relative !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .ball.tw-w-180-px:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 30px rgba(0, 188, 212, 0.3) !important;
        z-index: 10 !important;
    }

    /* Override AOS animations on mobile to prevent overlap */
    .ball.tw-w-180-px.animation-item {
        animation: none !important;
        opacity: 1 !important;
    }

    .ball h6 {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        margin-top: 0.5rem !important;
        padding: 0 0.3rem !important;
    }

    .ball img {
        max-width: 38px !important;
        max-height: 38px !important;
        filter: brightness(1.1) !important;
    }

    .ball .tw-h-6 {
        width: 1.4rem !important;
        height: 1.4rem !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        position: absolute !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
    }

    /* How We Work balls container - Prevent overlap */
    .flex-grow-1 .d-flex.tw-gap-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Remove default margins that cause overlap */
    .ball.tw-mt-705 {
        margin-top: 0 !important;
    }

    /* Reset all ball positioning classes */
    .ball.tw-w-180-px {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        float: none !important;
        clear: both !important;
    }

    /* Disable AOS transforms on mobile for balls */
    [data-aos].ball {
        transform: none !important;
        transition-property: box-shadow, transform !important;
    }

    /* Force all balls to maintain grid position */
    .ball.tw-w-180-px[class*="tw-mt-"],
    .ball.tw-w-180-px[class*="tw-mb-"],
    .ball.tw-w-180-px[class*="tw-ms-"],
    .ball.tw-w-180-px[class*="tw-me-"] {
        margin: 0 0 12px 0 !important;
    }

    /* Hide arrow in How We Work section on mobile */
    .pt-120 .animate__wobble__two {
        display: none !important;
    }

    /* Adjust How We Work section padding on mobile */
    .pt-120 {
        padding-top: 40px !important;
    }

    .max-w-432-px {
        max-width: 100% !important;
    }

    /* About Section - Reduce padding */
    .about .bg-main-600[style*="padding"],
    .about .bg-main-two-600[style*="padding"] {
        padding: 15px !important;
    }

    .about .bg-main-600 h2,
    .about .bg-main-two-600 h2 {
        font-size: 2rem !important;
    }

    .about .bg-main-600 i,
    .about .bg-main-two-600 i {
        font-size: 40px !important;
    }

    /* Radial progress */
    .radial-progress {
        width: 60px;
        height: 60px;
    }

    /* Banner cards - Hide on mobile */
    .banner .max-w-218-px {
        display: none !important;
    }

    /* Hide experience badge on mobile */
    .banner .clip-path-one {
        display: none !important;
    }

    /* Banner section - Remove negative margins */
    .banner .tw--mt-8-px,
    .banner .tw--me-12-px,
    .banner .tw--mt-12-px {
        margin-top: 0 !important;
        margin-right: 0 !important;
    }

    /* Banner wrapper - Remove negative margin */
    .banner [style*="margin-top: -40px"] {
        margin-top: 0 !important;
    }

    /* Banner positioning wrapper */
    .banner .tw-ps-98-px {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Stats section - Stack vertically */
    .banner .d-flex[style*="gap"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* About section - Hide ONLY the stats cards container on mobile */
    .gradient-bg-one .d-flex[style*="min-height: 300px"] {
        display: none !important;
    }

    .about .d-flex.tw-gap-5 {
        gap: 15px !important;
    }

    .about [style*="gap: 20px"] {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    /* Footer - Better spacing */
    .footer .py-120 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .footer .footer-item {
        margin-bottom: 30px;
    }

    .footer .footer-item__title {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .footer .footer-menu li {
        margin-bottom: 0.5rem !important;
    }

    .footer .footer-item__logo img {
        max-width: 150px !important;
    }

    /* Contact form - Full width inputs */
    .contact-form input,
    .contact-form textarea {
        font-size: 14px !important;
    }

    /* Heading sizes on mobile */
    h1, .h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h2, .h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h3, .h3 {
        font-size: 1.25rem !important;
    }

    /* Banner title specific */
    .banner h1 {
        font-size: 1.75rem !important;
        line-height: 1.4 !important;
        overflow: visible !important;
        padding: 3px 0 !important;
    }

    /* Remove horizontal padding on mobile */
    .tw-ps-8,
    .tw-pe-8,
    .ps-lg-5,
    .pe-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Card padding */
    .tw-p-6,
    .tw-p-9 {
        padding: 1rem !important;
    }

    /* Container padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Section padding */
    .py-120 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Experience badge on mobile */
    .banner [style*="max-width: 200px"] {
        max-width: 150px !important;
        padding: 1rem !important;
    }

    /* Technologies list on mobile */
    .banner .max-w-218-px .d-flex {
        flex-wrap: wrap !important;
    }

    /* Stats counter on mobile */
    .banner .counter {
        font-size: 1.5rem !important;
    }

    /* About section images */
    .about img[style*="height"] {
        height: auto !important;
        max-height: 250px !important;
    }

    /* Hide Why Choose Us image on mobile */
    .choose-us-wrapper {
        display: none !important;
    }

    /* Make Why Choose Us content full width on mobile */
    section .col-lg-5:has(.choose-us-wrapper) {
        display: none !important;
    }

    section .col-lg-7:has(.ps-lg-5) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Extra small devices (below 400px) */
@media (max-width: 399px) {
    /* Even smaller text for very small screens */
    h1, .h1 {
        font-size: 1.5rem !important;
    }

    h2, .h2 {
        font-size: 1.25rem !important;
    }

    .banner h1 {
        font-size: 1.5rem !important;
    }

    /* Smaller buttons */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Roadmap balls even smaller */
    .ball.tw-w-180-px {
        width: 100% !important;
        height: auto !important;
        min-height: 120px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0.8rem 0.3rem !important;
    }

    .ball h6 {
        font-size: 0.6rem !important;
        padding: 0 0.2rem !important;
    }

    .ball img {
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .ball .tw-h-6 {
        width: 1.2rem !important;
        height: 1.2rem !important;
        font-size: 0.6rem !important;
    }

    /* Ensure grid layout stays 2 columns */
    .flex-grow-1 .d-flex.tw-gap-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Disable custom cursor on touch devices */
@media (hover: none) {
    .cursor-outer,
    .cursor-inner,
    .mouseCursor {
        display: none !important;
    }
}

/* Banner team image responsive styles */
.banner-team-img {
    max-width: 380px;
    max-height: 380px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 188, 212, 0.25), 0 0 0 8px rgba(0, 188, 212, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

/* CTA model image responsive styles */
.cta-model-img {
    width: 550px;
    height: 520px;
    object-fit: contain;
    border-radius: 20px;
}

@media (max-width: 991px) {
    .cta-model-img {
        width: 100%;
        height: auto;
        max-width: 450px;
    }
}

/* Choose Us section responsive styles */
.choose-us-wrapper {
    height: 600px;
}

.choose-us-image {
    height: 600px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .choose-us-wrapper {
        height: 450px !important;
    }

    .choose-us-image {
        height: 450px !important;
    }
}

/* Mobile CTA Card - Show on both desktop and mobile */
.mobile-cta-card {
    display: block;
}

@media (max-width: 575px) {
    .mobile-cta-card {
        display: block !important;
        margin-top: 20px;
    }

    .mobile-cta-card .bg-main-600 {
        min-height: 200px !important;
        padding: 20px 15px !important;
    }

    .mobile-cta-card h3 {
        font-size: 1.5rem !important;
    }

    .mobile-cta-card p {
        font-size: 0.85rem !important;
    }

    .mobile-cta-card .btn {
        font-size: 0.85rem !important;
        padding: 0.6rem 1.5rem !important;
    }
}

/* Mobile Bottom CTA Card - Show ONLY on mobile below About Us */
.mobile-bottom-cta-card {
    display: none;
}

@media (max-width: 575px) {
    .mobile-bottom-cta-card {
        display: block !important;
        margin-top: 1.5rem;
    }

    .mobile-bottom-cta-card .bg-main-600 {
        box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
    }

    .mobile-bottom-cta-card h4 {
        font-size: 1.35rem !important;
    }

    .mobile-bottom-cta-card p {
        font-size: 0.85rem !important;
    }

    .mobile-bottom-cta-card .btn {
        font-size: 0.85rem !important;
    }

    /* Hide the desktop CTA card (with class mobile-cta-card) on mobile */
    .mobile-cta-card {
        display: none !important;
    }
}

/* ============================================
   Dark Footer Styles
   ============================================ */

.footer-dark {
    background-color: #000000 !important;
    color: #ffffff;
}

.footer-dark .footer-item__title {
    color: #ffffff !important;
    font-weight: 600;
}

.footer-dark .text-neutral-600 {
    color: #e5e7eb !important;
}

.footer-dark .footer-menu a {
    color: #d1d5db !important;
}

.footer-dark .hover-text-main-600:hover {
    color: #00BCD4 !important;
}

.footer-dark .social-list__link {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-dark .social-list__link:hover {
    background: linear-gradient(135deg, #00BCD4 0%, #9C27B0 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.footer-dark .copyright-text {
    color: #d1d5db !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-dark .copyright-text a {
    color: #00BCD4 !important;
    font-weight: 500;
}

.footer-dark .copyright-text a:hover {
    color: #9C27B0 !important;
}

/* Make logo white on dark footer */
.footer-dark .footer-item__logo img {
    filter: brightness(0) invert(1);
}

/* Footer email - prevent line break */
.footer-menu a[href^="mailto:"] {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* ============================================
   Footer Mobile Layout - Quick Links & Services Side by Side
   ============================================ */

@media (max-width: 575px) {
    /* Make Quick Links and Services columns appear side by side on mobile */
    .footer .col-lg-2.col-sm-4,
    .footer .col-lg-3.col-sm-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Reduce padding for better fit */
    .footer .col-lg-2.col-sm-4 .footer-item,
    .footer .col-lg-3.col-sm-4 .footer-item {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    /* Adjust font sizes for mobile */
    .footer .footer-item__title {
        font-size: 0.95rem !important;
    }

    .footer .footer-menu__link {
        font-size: 0.85rem !important;
    }
}
