/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.8rem;
    /* Smaller size */
    border-radius: 50px;
    font-weight: 700;
    transition: all var(--duration-base) var(--ease-out-expo);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    /* Slightly smaller text */
    gap: 12px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.primary-glowing {
    background: linear-gradient(135deg, var(--royal-gold), var(--warm-gold));
    color: var(--midnight-navy);
    /* Constant Ultra Neon Gold Glow */
    box-shadow:
        0 0 30px rgba(201, 176, 55, 0.8),
        0 0 60px rgba(201, 176, 55, 0.5),
        0 0 90px rgba(201, 176, 55, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    /* Steady Floating Animation */
    animation: floating-btn 3s infinite ease-in-out;
}

@keyframes floating-btn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.primary-glowing:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow:
        0 0 45px rgba(201, 176, 55, 1),
        0 0 90px rgba(201, 176, 55, 0.8);
    animation-play-state: paused;
}

.cyan-neon-glowing {
    background: var(--color-neon);
    color: #000;
    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.6),
        0 0 40px rgba(0, 229, 255, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.4);
    animation: cyan-pulse 2s infinite alternate;
}

@keyframes cyan-pulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.8), 0 0 60px rgba(0, 229, 255, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.cyan-neon-glowing:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.9), 0 0 80px rgba(0, 229, 255, 0.7);
    animation-play-state: paused;
}

.secondary-glow {
    background: transparent;
    color: var(--pure-white);
    border: 1px solid var(--color-neon);
    box-shadow: var(--glow-shadow);
}

.mega {
    font-size: 1.5rem;
    padding: 1.5rem 4rem;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: var(--space-lg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Horizontal Service Cards - Professional Refinement */
.service-item-3d {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
    padding: 24px !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle white border, not neon */
    border-radius: 25px;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease,
        opacity 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    box-shadow: none;
    /* No glow by default */
    opacity: 0.5;
    /* Dim by default */
}

/* Desktop Specific removed to prevent constant glow */

.service-icon-box {
    min-width: 64px;
    height: 64px;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* No float animation - Static until scroll active */
}

.service-text-content {
    text-align: right;
    flex-grow: 1;
}

.service-text-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: color 0.4s ease;
}

.body-text-sm {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

/* Professional Active State - Clean Lift & Glow */
.service-item-3d.active-neon-blue {
    opacity: 1 !important;
    border-color: var(--color-neon);
    background: rgba(0, 229, 255, 0.1);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 229, 255, 0.5);
    /* Pop-Out transformation */
    transform: translateY(-20px) scale(1.08);
    z-index: 15;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item-3d.active-neon-blue .service-icon-box {
    background: var(--color-neon);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.service-item-3d.active-neon-blue .service-text-content h3 {
    color: var(--color-neon);
}

/* Vertical Value Cards - Professional Refinement */
/* Continuous Floating Animation */
@keyframes float-3d {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
    }
}

/* Vertical Value Cards - Static Base State */
.value-item-3d {
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1),
        box-shadow 0.25s ease,
        border-color 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* Active State — triggered by JS class .values-neon-active */
/* Active State — triggered by JS class .values-neon-active */
.value-item-3d.values-neon-active,
.service-item-3d.values-neon-active {
    opacity: 1;
    border-color: var(--color-neon);
    background: rgba(0, 229, 255, 0.07);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 229, 255, 0.55),
        0 0 80px rgba(0, 229, 255, 0.2),
        inset 0 0 20px rgba(0, 229, 255, 0.05);
    z-index: 20;
    animation: values-float 1.2s ease-in-out infinite;
}

@keyframes values-float {

    0%,
    100% {
        transform: translateY(-12px) scale(1.06);
        box-shadow:
            0 30px 70px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(0, 229, 255, 0.55),
            0 0 80px rgba(0, 229, 255, 0.2),
            inset 0 0 20px rgba(0, 229, 255, 0.05);
    }

    50% {
        transform: translateY(-20px) scale(1.07);
        box-shadow:
            0 45px 90px rgba(0, 0, 0, 0.9),
            0 0 60px rgba(0, 229, 255, 0.75),
            0 0 100px rgba(0, 229, 255, 0.35),
            inset 0 0 30px rgba(0, 229, 255, 0.1);
    }
}

/* Icon glow when active */
.value-item-3d.values-neon-active .achievement-icon {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7));
    transform: scale(1.15) !important;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Service Card Specific Children */
.service-item-3d.values-neon-active .service-icon-box {
    background: var(--color-neon);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.service-item-3d.values-neon-active .service-text-content h3 {
    color: var(--color-neon);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Mobile Sizing for 3D Cards - More Compact */
@media (max-width: 480px) {

    .service-item-3d,
    .value-item-3d {
        padding: 1.25rem 1rem !important;
        /* Tighter padding */
        min-height: auto !important;
        /* Remove fixed min-height */
        transform: scale(0.92);
        /* Start visibly smaller */
        margin-bottom: 0.5rem;
        /* Reduce vertical gap */
    }

    .service-item-3d.values-neon-active,
    .value-item-3d.values-neon-active {
        transform: scale(1.02) !important;
        /* Pop out nicely */
    }

    .service-text-content h3,
    .value-item-3d h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
    }

    .body-text-sm,
    .value-item-3d .body-text {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }

    .service-icon-box {
        min-width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .service-icon-box svg {
        width: 24px;
        height: 24px;
    }

    .value-item-3d .achievement-icon {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Title color shift */
.value-item-3d.values-neon-active .text-gold {
    color: var(--color-neon) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Active State - Strong 3D Pop-Out (legacy scroll-animations.js class) */
.value-item-3d.active-neon-blue {
    opacity: 1;
    border-color: var(--color-neon);
    background: rgba(0, 229, 255, 0.1);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 229, 255, 0.5);
    transform: translateY(-25px) scale(1.1);
    z-index: 20;
}

#services .glass-card.active-neon-blue {
    border-color: var(--color-neon);
    /* Refined drop shadow and neon glow */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 229, 255, 0.4),
        inset 0 0 15px rgba(0, 229, 255, 0.1);
    /* Controlled vertical lift and scaling */
    transform: translateY(-20px) scale(1.05) translateZ(40px);
    background: rgba(0, 229, 255, 0.05);
    z-index: 10;
}

#services .glass-card .achievement-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    transition: transform 0.5s ease;
}

#services .glass-card.active-neon-blue .achievement-icon {
    transform: translateZ(50px) scale(1.1);
}

#services .glass-card h3,
#services .glass-card p {
    transition: transform 0.5s ease;
}

#services .glass-card.active-neon-blue h3 {
    transform: translateZ(30px);
    color: var(--color-neon);
}

#services .glass-card.active-neon-blue p {
    transform: translateZ(10px);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-neon);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2);
}

/* Achievement Cards */
.achievement-card {
    text-align: center;
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    background: linear-gradient(to bottom, var(--color-neon), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
}

/* Quote/Blockquote */
.golden-quote {
    position: relative;
    padding: var(--space-lg);
    border: 2px solid var(--color-accent);
    border-radius: 30px;
    background: rgba(10, 17, 40, 0.5);
    text-align: center;
    margin: var(--space-lg) auto;
    max-width: 800px;
}

.golden-quote::before {
    content: '“';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    color: var(--color-accent);
    opacity: 0.3;
}

/* Results Strip */
.results-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1.5rem 0;
}

.result-pill {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--color-neon);
    color: var(--color-neon);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.result-pill:hover {
    background: rgba(0, 229, 255, 0.15);
    transform: translateY(-3px);
}

/* Mobile Sticky CTA - Redesigned to be smaller and circular */
.mobile-sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transform: scale(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.mobile-sticky-cta.visible {
    transform: scale(1);
}

.mobile-sticky-cta .whatsapp-cta {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    font-size: 0;
    /* Hide text, keep icon */
}

.mobile-sticky-cta .whatsapp-cta .icon {
    font-size: 32px;

    margin: 0;
}

/* Mobile: Dim other cards when one is active */
@media (max-width: 1024px) {

    .has-active-card .service-item-3d:not(.values-neon-active),
    .has-active-card .value-item-3d:not(.values-neon-active) {
        opacity: 0.15 !important;
        transform: scale(0.85);
        filter: blur(1.5px);
        transition: all 0.4s ease;
    }
}

/* Dim inactive cards on Desktop when hovering the container */
@media (min-width: 1024px) {

    /* When hovering the grid, dim ALL items first */
    .grid-3:hover .service-item-3d:not(:hover),
    .grid-4:hover .value-item-3d:not(:hover) {
        opacity: 0.2;
        transform: scale(0.9);
        filter: blur(2px);
        transition: all 0.4s ease;
    }
}

/* Social Buttons */
.whatsapp-cta {
    background: #25D366;
    color: white;
    box-shadow:
        0 0 15px rgba(37, 211, 102, 0.8),
        0 0 35px rgba(37, 211, 102, 0.5),
        0 0 60px rgba(37, 211, 102, 0.25),
        inset 0 0 10px rgba(37, 211, 102, 0.1) !important;
    animation: whatsapp-neon-pulse 2.5s infinite alternate !important;
}

@keyframes whatsapp-neon-pulse {
    0% {
        box-shadow:
            0 0 10px rgba(37, 211, 102, 0.7),
            0 0 25px rgba(37, 211, 102, 0.4),
            0 0 45px rgba(37, 211, 102, 0.2);
    }

    100% {
        box-shadow:
            0 0 20px rgba(37, 211, 102, 1),
            0 0 45px rgba(37, 211, 102, 0.7),
            0 0 75px rgba(37, 211, 102, 0.35);
    }
}

.whatsapp-cta:hover {
    animation-play-state: paused !important;
    box-shadow:
        0 0 25px rgba(37, 211, 102, 1),
        0 0 55px rgba(37, 211, 102, 0.8),
        0 0 90px rgba(37, 211, 102, 0.4) !important;
}

.instagram-cta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow:
        0 0 10px rgba(220, 39, 67, 0.6),
        0 0 25px rgba(220, 39, 67, 0.35),
        0 0 5px rgba(240, 148, 51, 0.4);
    animation: instagram-neon-pulse 2s infinite alternate;
}

@keyframes instagram-neon-pulse {
    0% {
        box-shadow:
            0 0 8px rgba(240, 148, 51, 0.7),
            0 0 20px rgba(240, 148, 51, 0.4),
            0 0 5px rgba(220, 39, 67, 0.3);
    }

    100% {
        box-shadow:
            0 0 15px rgba(188, 24, 136, 0.8),
            0 0 35px rgba(188, 24, 136, 0.5),
            0 0 10px rgba(220, 39, 67, 0.5);
    }
}

.instagram-cta:hover {
    animation-play-state: paused;
    box-shadow:
        0 0 20px rgba(220, 39, 67, 0.9),
        0 0 45px rgba(188, 24, 136, 0.6),
        0 0 70px rgba(240, 148, 51, 0.3);
    transform: translateY(-3px) scale(1.03);
}

.facebook-cta {
    background: #1877F2;
    box-shadow:
        0 0 10px rgba(24, 119, 242, 0.7),
        0 0 25px rgba(24, 119, 242, 0.4),
        inset 0 0 8px rgba(24, 119, 242, 0.1);
    animation: facebook-neon-pulse 2s infinite alternate;
}

@keyframes facebook-neon-pulse {
    0% {
        box-shadow:
            0 0 8px rgba(24, 119, 242, 0.6),
            0 0 20px rgba(24, 119, 242, 0.3);
    }

    100% {
        box-shadow:
            0 0 18px rgba(24, 119, 242, 0.9),
            0 0 40px rgba(24, 119, 242, 0.55),
            0 0 60px rgba(24, 119, 242, 0.25);
    }
}

.facebook-cta:hover {
    animation-play-state: paused;
    box-shadow:
        0 0 25px rgba(24, 119, 242, 1),
        0 0 55px rgba(24, 119, 242, 0.7),
        0 0 80px rgba(24, 119, 242, 0.35);
    transform: translateY(-3px) scale(1.03);
}

.tiktok-cta {
    background: #010101;
    color: white;
    border: 1px solid rgba(105, 201, 208, 0.85);
    box-shadow:
        0 0 12px rgba(105, 201, 208, 0.9),
        0 0 30px rgba(105, 201, 208, 0.6),
        0 0 55px rgba(105, 201, 208, 0.3),
        inset 0 0 10px rgba(105, 201, 208, 0.08);
}

.tiktok-cta:hover {
    background: #111;
    box-shadow:
        0 0 20px rgba(105, 201, 208, 1),
        0 0 50px rgba(105, 201, 208, 0.8),
        0 0 80px rgba(105, 201, 208, 0.4);
    border-color: rgba(105, 201, 208, 1);
    transform: translateY(-3px) scale(1.03);
}

.social-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    min-width: 140px;
}