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

body {
    background-color: #f8fafc; /* slate-50 */
    color: #0f172a; /* slate-900 */
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body.dark {
    background-color: #020617; /* slate-950 */
    color: #f1f5f9; /* slate-100 */
}

/* Custom Component Classes (without @apply) */
.btn-primary {
    padding: 1rem 2rem;
    background-color: #0ea5e9; /* primary */
    color: white;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.3);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: rgba(14, 165, 233, 0.9);
    transform: scale(1.05);
}

.btn-primary:active {
    transform: scale(0.95);
}

.card {
    background-color: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dark .card {
    background-color: #0f172a; /* slate-900 */
    border-color: #1e293b; /* slate-800 */
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Glassmorphism for Navbar */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scroll-active {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark #navbar.scroll-active {
    background-color: rgba(2, 6, 23, 0.7);
    border-color: #1e293b;
}

/* Pricing Card Highlight */
.pricing-popular {
    border: 4px solid #0ea5e9;
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background-color: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
    background-color: #0f172a;
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(14, 165, 233, 0.5);
}

/* Dark Mode Transition */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Hover Shine Effect for Cards */
.card-hover-shine {
    position: relative;
    overflow: hidden;
}
.card-hover-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s;
    pointer-events: none;
}
.card-hover-shine:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}
