/* Custom styling beyond Tailwind */

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

/* Text selection */
::selection {
    background: rgba(2, 132, 199, 0.3); /* primary-500 with opacity */
    color: inherit;
}

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Transitions for hover effects */
.hover-translate {
    transition: transform 0.3s ease;
}

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

/* Gradient text for special elements */
.text-gradient {
    background: linear-gradient(90deg, #0ea5e9, #0369a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0284c7; /* primary-500 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0369a1; /* primary-600 */
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e293b; /* dark-200 */
}

.dark ::-webkit-scrollbar-thumb {
    background: #38bdf8; /* primary-300 */
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #7dd3fc; /* primary-200 */
}

/* Loading animation */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #0284c7;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform .5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Skills section icons hover effect */
.skill-icon {
    transition: all 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.1) rotate(5deg);
    color: #0284c7; /* primary-500 */
}

/* Timeline connector animations */
.timeline-connector {
    position: relative;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #0284c7;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Typography enhancements */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Custom card effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive font sizes */
@media (max-width: 640px) {
    h1 {
        font-size: calc(1.5rem + 2vw);
    }
    h2 {
        font-size: calc(1.2rem + 1.5vw);
    }
    h3 {
        font-size: calc(1rem + 0.8vw);
    }
}