/* Custom Utilities extending Tailwind */

@layer utilities {
    .text-balance {
        text-wrap: balance;
    }
}

/* Custom Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Abstract Honeycomb SVG Pattern */
.bg-honeycomb {
    background-image: url("assets/svg/honeycomb.svg");
}

.bg-dot-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.bg-dot-pattern-dark {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Custom Gradients */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

.text-gradient-brand {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #f39518 0%, #e47c10 100%);
}

/* Code block styling */
pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

pre::-webkit-scrollbar {
    height: 6px;
}

pre::-webkit-scrollbar-track {
    background: transparent;
}

pre::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Smooth Card Hover Transitions */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-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);
}

/* API Section Code Animation */
.typing-line {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #f39518;
    }
}