/* Custom Styles for Soft Space Redesign */

/* Language Switching */
body.lang-ru .lang-en {
    display: none !important;
}

body.lang-en .lang-ru {
    display: none !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Font Overrides handled by Tailwind config in HTML, but ensuring defaults here */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

body.lang-ru {
    --font-heading: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
}

.font-poppins {
    font-family: 'Poppins', sans-serif !important;
}

.font-handwriting {
    font-family: 'Dancing Script', cursive;
}

/* Falling Icons Animation Styles */
.falling-icon {
    position: absolute;
    transition: transform linear;
    will-change: transform, opacity;
    z-index: 10;
}

.stacked-icon-base {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease-out;
    pointer-events: none;
    z-index: 5;
}

/* Modal Animation Classes */
.modal-open {
    display: block !important;
}

.modal-backdrop-active {
    opacity: 1 !important;
}

.modal-content-active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Modal heading size for Russian */
body.lang-ru .modal-heading {
    font-size: 1.5rem !important;
    line-height: 1.2;
}

/* intl-tel-input overrides to match design */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 1.5rem 0 0 1.5rem;
    /* Match rounded-3xl */
    padding-left: 2rem !important;
    /* Matches left-8 */
}

.iti input {
    padding-left: 4rem !important;
    /* Matches pl-16 */
}

@media (min-width: 768px) {
    .iti input {
        padding-left: 5rem !important;
        /* Matches pl-20 */
    }
}

.iti__selected-flag {
    background-color: transparent !important;
}

/* Keyframes for simple animations if needed */
@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* iPhone 16 Pro Mockup */
:root {
    --phone-width: 320px;
    --phone-height: 660px;
    --bezel-color: #1a1a1a;
    --inner-bezel: #0a0a0a;
    --screen-radius: 44px;
    --outer-radius: 54px;
}

.iphone-2d {
    position: relative;
    width: var(--phone-width);
    height: var(--phone-height);
    background: var(--bezel-color);
    border-radius: var(--outer-radius);
    box-shadow:
        0 0 0 2px #2c2c2e,
        0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 12px;
    box-sizing: border-box;
    margin: 0 auto;
    /* Center it */
    animation: float-phone 6s ease-in-out infinite;
}

.inner-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--inner-bezel);
    border-radius: var(--screen-radius);
    overflow: hidden;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.screen-content {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    /* Ensure icons don't spill out */
}

.dynamic-island {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 26px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.screen-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 5;
}

.btn {
    position: absolute;
    background: #1a1a1a;
    width: 3px;
    border-radius: 2px 0 0 2px;
    left: -3px;
}

.btn-right {
    left: auto;
    right: -3px;
    border-radius: 0 2px 2px 0;
}

.action-btn {
    top: 100px;
    height: 32px;
}

.vol-up {
    top: 155px;
    height: 55px;
}

.vol-down {
    top: 220px;
    height: 55px;
}

.power-btn {
    top: 170px;
    height: 85px;
}

.camera-control {
    position: absolute;
    right: -2px;
    top: 450px;
    width: 3px;
    height: 48px;
    background: #111;
    border-radius: 0 4px 4px 0;
    box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes float-phone {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(5px, -15px) rotate(1deg);
    }

    66% {
        transform: translate(-5px, 5px) rotate(-1deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* How We Build Section Styles */
/* Tech Background Styles */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 2;
}

.blur-blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.blob-indigo {
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: drift 15s infinite ease-in-out;
}

.blob-purple {
    background: radial-gradient(circle, #312e81 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: drift 20s infinite ease-in-out reverse;
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(50px, 100px) scale(1.1);
        opacity: 0.45;
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.35;
    }
}

.step-number {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
    font-size: 8rem;
    line-height: 1;
    font-weight: 900;
    position: absolute;
    top: -1.5rem;
    right: -1rem;
    z-index: 0;
    transition: all 0.5s ease;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.step-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-10px);
}

.step-card:hover .step-number {
    -webkit-text-stroke: 1px rgba(79, 70, 229, 0.3);
    transform: scale(1.1) rotate(-5deg);
}

.cta-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
}

/* Fix Swiper Navigation Arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
    content: none !important;
}


/* Make It Reality Section Styles */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.bg-grid-pattern {
    background-image: radial-gradient(#4f46e5 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

.frosted-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.industry-card:hover .glow-blob {
    width: 350px;
    height: 350px;
    opacity: 0.6;
}

.icon-container {
    position: relative;
    z-index: 2;
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.industry-card:hover .icon-container {
    opacity: 0.6;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.5) 0%, transparent 70%);
}

.card-content {
    position: relative;
    z-index: 2;
}

.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* Results & KPI Section Styles - Dark Edition */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.stat-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.2);
    z-index: 10;
}

.stat-card:hover .glow-blob {
    width: 400px;
    height: 400px;
    opacity: 0.6;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.5) 0%, transparent 70%);
}

.impact-text {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.outcome-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.outcome-card:hover {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.05);
}

.dark-gradient-bg {
    background: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        #050507;
}

.geometric-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Case Studies Section Styles */
.case-card {
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(79, 70, 229, 0.25);
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: #4f46e5;
    box-shadow: 0 40px 80px -20px rgba(79, 70, 229, 0.3);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.phone-mockup {
    width: 200px;
    height: 420px;
    border: 10px solid #18181b;
    border-radius: 3rem;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.card-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.app-logo-box {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    overflow: hidden;
}

.progress-bar-inner {
    transition: width 2s ease-in-out;
    width: 0;
}

.active .progress-bar-inner {
    width: var(--target-width);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Features Section Styles */
.feature-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    transition: all 0.4s ease;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.2);
}

.accent-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

/* Modal Styles */
#imageModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: zoom-out;
    padding: 40px;
    align-items: center;
    justify-content: center;
}

#imageModal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Strategy Section Styles */
.strategy-card {
    position: relative;
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.25);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    z-index: 1;
}

.strategy-card:hover {
    transform: translateY(-12px);
    border-color: #4f46e5;
    box-shadow: 0 40px 80px -15px rgba(79, 70, 229, 0.2);
}

.big-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 11rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(79, 70, 229, 0.06);
    -webkit-text-stroke: 2.5px rgba(79, 70, 229, 0.25);
    transition: all 0.5s ease;
    z-index: -1;
    user-select: none;
}

.strategy-card:hover .big-number {
    color: rgba(79, 70, 229, 0.1);
    -webkit-text-stroke: 2.5px rgba(79, 70, 229, 0.4);
    transform: scale(1.05) translateX(-10px);
}

.strategy-card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.strategy-card:hover .strategy-card-pattern {
    opacity: 0.3;
}

.accent-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* Customer Feedback Section Styles */
.testimonial-carousel {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    padding-bottom: 80px;
    margin-bottom: -60px;
    padding-top: 20px;
}

.testimonial-carousel:active {
    cursor: grabbing;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: calc(50% - 12px);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        min-width: calc(33.333% - 16px);
    }
}

.testimonial-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -15px rgba(79, 70, 229, 0.3);
    border-color: #4f46e5;
    z-index: 20;
}

.dot {
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    background-color: #4f46e5;
}

.tech-grid-vibrant {
    background-image: radial-gradient(circle at 1.5px 1.5px, rgba(79, 70, 229, 0.15) 1.5px, transparent 0);
    background-size: 32px 32px;
}

.glow-sphere-vibrant {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    z-index: 0;
    opacity: 0.6;
}

/* Footer Redesign Styles */
.footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #a1a1aa;
    /* text-zinc-400 */
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.menu-header-link {
    color: #4f46e5;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.menu-header-link:hover {
    color: #818cf8;
}

.glass-info-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.footer-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.12) 1px, transparent 0);
    background-size: 40px 40px;
}

.social-btn {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.social-btn:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-4px);
    border-color: #4f46e5;
}

/* CTA Gradient for 'Ready to boost' section */
.cta-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}