/* 
 * Custom Styles for Dr. Mazan E. Rabadi
 * Using a refined, classic aesthetic with teal and slate accents.
 */

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

/* Base Typography adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
 * Hide scrollbar for Chrome, Safari and Opera 
 * but keep functionality for scroll-reveal animations
 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 
 * Custom Animations 
 * Using 'transform' and 'opacity' for performance.
 * Default state is visible to ensure content renders immediately 
 * even if JS fails, though JS adds the 'reveal' class for the effect.
 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-delay-1 {
    animation-delay: 0.1s;
}

.reveal-delay-2 {
    animation-delay: 0.2s;
}

.reveal-delay-3 {
    animation-delay: 0.3s;
}

/* 
 * Custom Scrollbar for Webkit Browsers 
 * Matches the teal color palette
 */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #0f766e; /* teal-700 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #115e59; /* teal-800 */
}

/* 
 * Navbar Transition 
 * The background fades in when scrolled
 */
#navbar {
    transition: all 0.3s ease-in-out;
}

#nav-bg {
    transition: opacity 0.3s ease-in-out;
}

/* 
 * Focus States for Accessibility 
 */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* 
 * Responsive adjustments
 */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .grid-cols-1.lg\:grid-cols-2 {
        gap: 2rem;
    }
}
