.gradient-bg {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #34D399 100%);
}

.hero-bg {
    background: linear-gradient(135deg, #6366F1 0%, #1F2937 100%), url('https://www.transparenttextures.com/patterns/circuit.png');
    background-size: cover, auto;
    background-position: center;
    animation: fadeIn 1s ease-in;
}

.skill-badge {
    transition: all 0.4s ease;
}

    .skill-badge:hover {
        transform: rotate(5deg) translateY(-5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

.project-card, .certificate-card, .experience-card {
    transition: all 0.4s ease;
}

    .project-card:hover, .certificate-card:hover, .experience-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

.nav-link {
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: #34D399;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-in {
    animation: slideInDown 0.5s ease forwards;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #6366F1, #34D399);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #374151;
    border: 3px solid #34D399;
}

.swiper-slide img {
    transition: transform 0.5s ease;
}

    .swiper-slide img:hover {
        transform: scale(1.1);
    }

.project-swiper {
    height: 100%;
}

    .project-swiper .swiper-slide img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .certificate-modal.active {
        display: flex;
        opacity: 1;
    }

    .certificate-modal img {
        max-width: 95%;
        max-height: 95%;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

    .certificate-modal .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #374151;
        color: #F9FAFB;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 24px;
        transition: all 0.3s ease;
    }

        .certificate-modal .close-btn:hover {
            background: #34D399;
            color: #fff;
        }

.certificate-btn {
    background: linear-gradient(to right, #6366F1, #34D399);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

    .certificate-btn:hover {
        background: linear-gradient(to right, #4F46E5, #22D3EE);
        color: #fff;
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    .certificate-btn:active {
        animation: pulse 0.2s ease;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-btn {
    transition: all 0.3s ease;
}

    .hero-btn:hover {
        transform: scale(1.05);
        background: linear-gradient(to right, #34D399, #6366F1);
    }

.hero-profile:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.5);
}

.navbar {
    background: #1F2937;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: #1F2937;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        padding: 0.5rem 0;
    }
