/* Custom styles for BDL Testing */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #fbcfe8;
    color: #6e154a;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #f472b6;
    outline-offset: 2px;
}

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

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

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

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

/* Subtle grain texture overlay (optional enhancement) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

/* Apply animations only when JS is enabled and prefers-reduced-motion is not set */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .reveal-on-scroll.delay-1 { animation-delay: 0.1s; }
    .reveal-on-scroll.delay-2 { animation-delay: 0.2s; }
    .reveal-on-scroll.delay-3 { animation-delay: 0.3s; }
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
