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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Animation for section headings */
section h2 {
    position: relative;
    display: inline-block;
}
section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: #3b82f6;
    bottom: -8px;
    left: 20%;
    border-radius: 2px;
}
/* Achievements section styling */
#achievements .bg-white {
    transition: transform 0.3s ease;
}
#achievements .bg-white:hover {
    transform: translateY(-8px);
}

/* Qualifications section styling */
#qualifications ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}
#qualifications ul li:last-child {
    border-bottom: none;
}

/* Experience card animation */
.experience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-card:hover {
    transform: translateY(-5px);
}
/* Portfolio item hover effect */
.portfolio-item {
    transition: transform 0.3s ease;
}
.portfolio-item:hover {
    transform: scale(1.03);
}

/* Download button styles */
.download-btn {
    transition: all 0.2s ease;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Modal styling */
.modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section h2 {
        font-size: 2rem;
    }
    section h2::after {
        width: 50%;
        left: 25%;
    }
}