/* Main CSS - Premium Design System V3 */

/* 1. Typography & Base */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-primary: #FF4654;
    --brand-secondary: #FF858D;
    --brand-dark: #0F172A;
    --brand-text: #2C2C2C;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 2. Advanced Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 70, 84, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 70, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 70, 84, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

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

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

@keyframes moveRight {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

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

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

/* Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite 3s;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-moveRight {
    animation: moveRight 3s linear infinite;
}

.animate-marquee {
    animation: marquee 60s linear infinite;
}

/* 3. Glassmorphism & Cards */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.premium-card {
    background: #ffffff;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 70, 84, 0.3);
}

/* 4. Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #FF4654 0%, #FF858D 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 5. Utilities & Layouts */
.perspective-1000 {
    perspective: 1000px;
}

.perspective-container {
    perspective: 2000px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

/* High Performance 3D Card Hover */
.card-3d {
    transform: translate3d(0, 0, 0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

.rich-feature-card {
    isolation: isolate;
}

.rich-feature-card .iconify {
    transition: transform 0.4s ease, color 0.4s ease;
}

.rich-feature-card:hover .iconify {
    transform: translateY(-2px);
}

.shadow-soft {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.bg-hero-glow {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-nav-overlay {
    transition: opacity 0.3s ease;
}

/* Mobile menu */
.mobile-menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-card {
    border-radius: 1.35rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.55);
}

.mobile-menu-card+.mobile-menu-card {
    margin-top: 1rem;
}

.mobile-accordion-button {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
}

.mobile-accordion-button .label {
    display: block;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.04rem;
    line-height: 1.5rem;
}

.mobile-accordion-button .hint {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: #94A3B8;
    margin-top: 0.4rem;
}

.mobile-accordion-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-top: 0.9rem;
    margin-left: 0.35rem;
    padding-left: 1.75rem;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
}

.mobile-accordion-panel.open {
    max-height: 900px;
    opacity: 1;
}

.mobile-accordion-panel .mobile-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.94rem;
    font-weight: 600;
    color: #475569;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-accordion-panel .mobile-link::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #FF4654, #FF858D);
    display: inline-flex;
}

.mobile-accordion-panel .mobile-link:hover {
    color: #FF4654;
    transform: translateX(4px);
}

.mobile-quick-links {
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.35rem;
    background: rgba(248, 250, 252, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mobile-quick-links .label {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: #94A3B8;
    font-weight: 700;
    display: block;
    margin-bottom: 0.8rem;
}

.mobile-quick-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-quick-links a {
    font-weight: 600;
    color: #0f172a;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: inline-flex;
}

.mobile-quick-links a:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Bento Grid Specifics */
.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.bento-item:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

/* COMPARISON ROW - FIXED */
.comparison-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
}

.comparison-cell-bad {
    flex-grow: 1;
    font-weight: 600;
    color: #64748B;
    position: relative;
    padding-left: 2rem;
}

.comparison-cell-bad::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: #F87171;
}

@media (max-width: 767px) {
    #services-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #services-container>.snap-center {
        scroll-snap-align: start;
    }
}

@media (hover: none),
(pointer: coarse) {

    .card-3d,
    .card-3d:hover,
    .tilt-card,
    .tilt-card:hover,
    #hero-tilt-container {
        transform: none !important;
        transition: transform 0.3s ease;
    }
}

.mobile-accordion-button .accordion-icon {
    transition: transform 0.3s ease;
}

.mobile-accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* Teams Section Styles (BalanceIT Style) */
.ts-section {
    max-width: 1240px;
    margin: 0 auto 80px;
    padding: 0 40px;
    text-align: center;
}

.ts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ts-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-primary);
    border-radius: 50%;
}

.ts-badge-text {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748B;
}

.ts-heading {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--brand-dark);
}

.ts-heading span {
    color: var(--brand-primary);
}

.ts-desc {
    max-width: 680px;
    margin: 0 auto 72px;
    color: #64748B;
    font-size: 17px;
    font-weight: 400;
}

.ts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.ts-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 48px 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ts-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #e5e5e5;
}

.ts-avatar-container {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ts-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
    background: #f0f7ff;
    color: var(--brand-primary);
    overflow: hidden;
}

.ts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.ts-role {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.ts-bio {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 28px;
    line-height: 1.6;
}

.ts-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.ts-tag {
    background: #f5f5f7;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    border: 1px solid transparent;
}

.ts-cta {
    margin-top: 20px;
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--brand-primary);
    color: #fff;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2);
}

.ts-btn:hover {
    background-color: #e64545;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.3);
}

.ts-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.ts-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .ts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-heading {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .ts-grid {
        grid-template-columns: 1fr;
    }

    .ts-section {
        padding: 0 24px;
        margin: 80px auto;
    }

    .ts-heading {
        font-size: 32px;
    }
}