/* Custom styles for Wheeldon Group website */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for cards */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Custom button styles */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Custom form input styles */
.input:focus, .textarea:focus {
    transition: all 0.3s ease;
}

/* Custom navbar styles */
.navbar {
    backdrop-filter: blur(10px);
}

/* Custom section spacing */
section {
    scroll-margin-top: 80px;
}

/* Custom text selection */
::selection {
    background-color: hsl(var(--p));
    color: hsl(var(--pc));
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--b2));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--p));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--pf));
}

/* Responsive typography */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Custom loading animation for buttons */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom focus styles for accessibility */
.btn:focus, .input:focus, .textarea:focus {
    outline: 2px solid hsl(var(--p));
    outline-offset: 2px;
}

/* Custom card hover effects */
.card:hover .avatar {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom form validation styles */
.input.error {
    border-color: hsl(var(--er));
}

.input.success {
    border-color: hsl(var(--su));
}

/* Custom tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--n));
    color: hsl(var(--nc));
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::before {
    opacity: 1;
}

