/* Custom styles beyond Tailwind */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Code block styling */
pre {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1.bg-gradient-to-r {
    background-size: 200% auto;
    animation: gradient-shift 8s ease infinite;
}

/* Feature card hover effect */
.bg-black\/40 {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bg-black\/40:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 200px;
}

/* Logo glow effect */
.hero-logo {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transition: filter 0.5s ease;
}

.hero-logo:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Animated gradient border */
@keyframes border-glow {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 5px rgba(88, 101, 242, 0.1);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 5px rgba(88, 101, 242, 0.1);
    }
}

.glow-border {
    animation: border-glow 4s infinite;
}

/* Improved button hover effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-hover-effect:hover:after {
    transform: translateX(0);
}

/* Fade-in animation for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Improved focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #5865F2;
    outline-offset: 2px;
}

/* Responsive image handling */
.responsive-img {
    max-width: 100%;
    height: auto;
}