/* Portfolio Template - Custom Styles */

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-fade-in-up { animation: fadeInUp 1s ease-out; }
.delay-1 { animation-delay: 0.2s; animation-fill-mode: both; }
.delay-2 { animation-delay: 0.4s; animation-fill-mode: both; }

/* Section reveal animation */
.section-header,
.timeline-item,
.cert-card,
.skill-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible,
.timeline-item.visible,
.cert-card.visible,
.skill-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: #374151 !important;
}

.navbar-scrolled .nav-link:hover {
    color: var(--color-primary) !important;
}

/* Language switcher button - scrolled state */
.navbar-scrolled .lang-btn {
    color: #374151 !important;
    border-color: rgba(55, 65, 81, 0.3) !important;
}

.navbar-scrolled .lang-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Mobile menu button - scrolled state */
.navbar-scrolled #mobileMenuBtn {
    color: #374151 !important;
}

/* Timeline responsive */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: row !important;
    }
    .timeline-item > div:last-child {
        width: 85% !important;
        margin-right: 2rem !important;
        padding-right: 1rem !important;
        padding-left: 0 !important;
    }
    .timeline-item .absolute {
        right: 0 !important;
        transform: none !important;
    }
    .relative > .absolute.top-0 {
        right: 0 !important;
        transform: none !important;
    }
}

/* Skill bar animation */
.skill-bar {
    transition: width 1.5s ease-out;
}

/* Certificate card hover */
.cert-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-4px);
}

/* Lightbox */
#lightbox img {
    animation: fadeIn 0.3s ease;
}

/* Selection color */
::selection {
    background: var(--color-primary);
    color: white;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
