/* Custom CSS inspired by Kokonutui & Bklit */

/* Base Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Kokonutui Cards */
.kokonutui-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.kokonutui-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 10;
}

.kokonutui-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Kokonutui Buttons */
.btn-kokonutui {
    background: linear-gradient(135deg, var(--color-primary, #143de7), var(--color-primary-container, #3b5bff));
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 99px;
    box-shadow: 0 4px 14px rgba(20, 61, 231, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-kokonutui::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-kokonutui:hover {
    box-shadow: 0 6px 20px rgba(20, 61, 231, 0.3);
    transform: translateY(-2px);
}

.btn-kokonutui:hover::after {
    left: 100%;
}

.btn-kokonutui-large {
    background: linear-gradient(135deg, var(--color-primary, #143de7), var(--color-primary-container, #3b5bff));
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(20, 61, 231, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-kokonutui-large:hover {
    box-shadow: 0 12px 24px rgba(20, 61, 231, 0.35);
    transform: translateY(-2px);
}

/* Bklit specific touches */
.bklit-badge {
    position: relative;
    overflow: hidden;
}

.bklit-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(20, 61, 231, 0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer-bg 2s infinite linear;
}

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

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

/* Synex Specific Styles */

/* Cloudy Background */
.synex-hero-bg {
    background-color: #d7ebff;
    position: relative;
}

.synex-cloud {
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(40px);
}

.synex-cloud.layer-1 {
    background: radial-gradient(circle at 20% 30%, #ffffff 0%, transparent 60%),
        radial-gradient(circle at 80% 60%, #ffffff 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, #ffffff 0%, transparent 70%);
    animation: drift 20s infinite alternate ease-in-out;
}

.synex-cloud.layer-2 {
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

.synex-cloud.layer-3 {
    background: radial-gradient(circle at 50% 10%, rgba(135, 206, 235, 0.4) 0%, transparent 80%);
    animation: drift 30s infinite alternate ease-in-out;
}

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

    100% {
        transform: scale(1.1) translate(20px, -20px);
    }
}

/* Synex Button */
.synex-btn {
    background: #2481ff;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    box-shadow: 0 4px 14px rgba(36, 129, 255, 0.4);
}

.synex-btn:hover {
    background: #0070f3;
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.5);
    transform: translateY(-2px);
}

/* Float Card */
.synex-float-card {
    transition: transform 0.3s ease-out;
}

/* Chart Animations */
.synex-wave {
    overflow: visible;
}

.wave-path {
    animation: wave-flow 4s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.wave-line {
    animation: wave-flow-line 4s ease-in-out infinite alternate;
}

.wave-dot {
    animation: wave-dot-bounce 4s ease-in-out infinite alternate;
}

@keyframes wave-flow {
    0% {
        transform: scaleY(0.9);
    }

    100% {
        transform: scaleY(1.1);
    }
}

@keyframes wave-flow-line {
    0% {
        transform: scaleY(0.9);
    }

    100% {
        transform: scaleY(1.1);
    }
}

@keyframes wave-dot-bounce {
    0% {
        transform: translateY(5px);
    }

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

/* Circular Chart Initial States */
.circle-1,
.circle-2,
.circle-3 {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bklit-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bklit-btn-outline {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.bklit-btn-outline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-surface-container, #eeecfa);
    transition: all 0.3s ease;
    z-index: -1;
}

.bklit-btn-outline:hover::before {
    height: 100%;
}

/* 3D Perspective specific for hero */
.perspective-1000 {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Custom Animations */
.animate-pulse-slow {
    animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

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

    50% {
        opacity: .7;
        transform: scale(1.05);
    }
}

.pulse-bg {
    animation: pulse-color 2s infinite;
}

@keyframes pulse-color {
    0% {
        background-color: rgba(0, 126, 91, 0.1);
    }

    50% {
        background-color: rgba(0, 126, 91, 0.25);
    }

    100% {
        background-color: rgba(0, 126, 91, 0.1);
    }
}