@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tesla 3-6-9 Abstract Background Overlay */
.tesla-grid-overlay {
    background-size: 100px 100px;
    background-image:
        linear-gradient(to right, rgba(30, 58, 138, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 58, 138, 0.05) 1px, transparent 1px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Slider specific styles */
.slide-content {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text selection color */
::selection {
    background-color: #dc2626; /* vibrant-red */
    color: white;
}

/* Dropcap for articles (simulated) */
.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #1e3a8a; /* royal-800 */
    padding-right: 0.5rem;
    padding-top: 0.25rem;
}