/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    background: #FCF4D7;
    color: #082f49;
}
/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Better image quality for high-dpi displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}
/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.delay-100 {
    animation-delay: 100ms;
}
.delay-200 {
    animation-delay: 200ms;
}
.delay-300 {
    animation-delay: 300ms;
}

/* Custom underline effect */
.link-underline {
    position: relative;
    display: inline-block;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0ea5e9;
    transition: width 0.3s ease;
}

/* Text colors */
.text-primary {
    color: #0ea5e9;
}

.text-secondary {
    color: #ef4444;
}
.text-dark {
    color: #FCF4D7;
}
.text-light {
    color: #FCF4D7;
}
.text-gray {
    color: #FCF4D7;
}
.text-dark-gray {
    color: #FCF4D7;
    opacity: 0.9;
}
/* Background colors */
.bg-primary {
    background-color: #0ea5e9;
}

.bg-secondary {
    background-color: #ef4444;
}

.bg-dark {
    background-color: #082f49;
}

.bg-light {
    background-color: #FCF4D7;
}

.bg-gray {
    background-color: #94a3b8;
}

.bg-dark-gray {
    background-color: #64748b;
}
.link-underline:hover::after {
    width: 100%;
}

/* Project card hover effect */
.project-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
}