.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.project-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-text {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}


.topic-tag {
    background: rgba(118, 75, 162, 0.2);
    color: #764ba2;
    border: 1px solid rgba(118, 75, 162, 0.3);
}


@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.particles div {
    animation-name: particleFloat !important;
}


.skill-island {
    position: relative;
    overflow: hidden;
}

.skill-island::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-island:hover::before {
    left: 100%;
}


.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}


.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}


@media (max-width: 768px) {
    .project-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat {
        font-size: 0.8rem;
    }
    
    .custom-project-image {
        padding: 0.8rem;
    }
    
    .project-status {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}


.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}


.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
    color: #fff !important;
    font-weight: 600;
    padding: 0.5em 1.2em;
    border-radius: 2em;
    box-shadow: 0 2px 12px 0 rgba(108, 99, 255, 0.10);
    text-decoration: none;
    transition: 
        background 0.2s,
        box-shadow 0.2s,
        transform 0.15s,
        color 0.2s;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.project-link:hover, .project-link:focus {
    background: linear-gradient(90deg, #fc5c7d 0%, #6a82fb 100%);
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(252, 92, 125, 0.18);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

.project-link svg {
    width: 1.1em;
    height: 1.1em;
    margin-left: 0.3em;
    transition: transform 0.2s;
    vertical-align: middle;
}

.project-link:hover svg {
    transform: translateX(3px) scale(1.1);
}


.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: #667eea;
    transition: fill 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    fill: #ffffff;
}

.contact-item span {
    font-weight: 500;
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.contact-item:hover span {
    color: #ffffff;
}


.skill-level {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.skill-description {
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.4;
}


.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat {
    font-size: 0.9rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}


.custom-project-image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    min-height: 200px;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}


#contact-form {
    max-width: 400px;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: none;
}
#contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
#contact-form label {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(102,126,234,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}
#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    border: 1.5px solid #667eea;
    box-shadow: 0 0 0 2px #667eea33;
}
#contact-form textarea {
    min-height: 90px;
    resize: vertical;
}
#contact-form button.cta-button {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 2em;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px 0 rgba(102,126,234,0.10);
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
#contact-form button.cta-button:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 24px 0 rgba(102,126,234,0.18);
    transform: translateY(-2px) scale(1.04);
}
#contact-form-status {
    min-height: 1.5em;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}
@media (max-width: 600px) {
    #contact-form {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 2rem 0 0 0;
    font-size: 1.1rem;
}
.pagination-btn {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.6em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px 0 rgba(102,126,234,0.10);
}
.pagination-btn:disabled {
    background: rgba(102,126,234,0.18);
    color: #b0b0b0;
    cursor: not-allowed;
    box-shadow: none;
}
.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.04);
}
.pagination-info {
    color: #b0b0b0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
#github-page-input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(102,126,234,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    padding: 0.2em 0.7em;
    width: 2.5em;
    text-align: center;
    margin: 0 0.2em;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    box-shadow: none;
}
#github-page-input::-webkit-inner-spin-button, #github-page-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#github-page-input:focus {
    border: 1.5px solid #667eea;
    box-shadow: 0 0 0 2px #667eea33;
    outline: none;
}
@media (max-width: 600px) {
    .pagination {
        flex-direction: column;
        gap: 0.7rem;
        font-size: 1rem;
    }
}


.project-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: projectFadeIn 0.5s cubic-bezier(.4,1.4,.6,1) forwards;
}
@keyframes projectFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.pagination-btn.active {
    transform: scale(0.96);
    box-shadow: 0 0 0 2px #667eea55;
    filter: brightness(1.15);
}


.animated-loader {
    position: relative;
    color: #667eea;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.animated-loader::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-left: 0.7em;
    border: 3px solid #667eea33;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}