/* Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Background Ambient Glow */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    border-radius: 50%;
}

.dark .bg-glow {
    background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, rgba(11,17,32,0) 70%);
}

/* Mobile Menu Icon */
.menu-icon {
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-icon-close {
    display: none;
}

#mobile-menu-btn.active .menu-icon-open {
    display: none;
}

#mobile-menu-btn.active .menu-icon-close {
    display: block;
}

/* Mobile Menu Slide Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.visible {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Progress Bar Animation (Skills) */
.skill-bar {
    background-color: #e2e8f0;
    border-radius: 9999px;
    height: 6px;
    overflow: hidden;
}

.dark .skill-bar {
    background-color: #334155;
}

.skill-progress {
    background: linear-gradient(90deg, #2563EB, #1D4ED8);
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s ease-out;
    width: 0;
}

.skill-progress.animate {
    width: var(--proficiency);
}

/* Timeline Styles (Experience) */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #2563EB;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #2563EB;
}

.dark .timeline-item::before {
    border-color: #0B1120;
}

.timeline-divider {
    position: absolute;
    left: -0.125rem;
    top: 1.5rem;
    bottom: -3rem;
    width: 0.25rem;
    background-color: #e0e7ff;
}

.dark .timeline-divider {
    background-color: #334155;
}

/* Show only the featured achievement image on mobile. */
@media (max-width: 767px) {
    .achievement-list {
        display: block;
    }

    .achievement-list > *:not(:first-child) {
        display: none;
    }

    .project-list > *:not(:first-child) {
        display: none;
    }

    .skills-list > *:not(:first-child) {
        display: none;
    }
}
