/* Custom Styles for Buy This Code */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.03); }
}

.glow-effect {
    animation: pulseGlow 4s ease-in-out infinite;
}

.calc-option input[type="radio"]:checked + span {
    color: #3B82F6;
}

.calc-option:has(input[type="radio"]:checked) {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.1);
}

.grain::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Card Entrance Animation */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item-card {
    animation: cardFadeInUp 0.4s cubic-bezier(.16,1,.3,1) backwards;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast Notifications */
.btc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(22, 31, 48, 0.95);
    border: 1px solid #10B981;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(12px);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
}
.btc-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
