/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Lazy loading images */
.lazy-load-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load-img.loaded {
    opacity: 1;
}

/* ============================================
   EXPERIENCE & CERTIFICATES SECTION
   ============================================ */

.experience-cert {
    position: relative;
    overflow: hidden;
}

.experience-cert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="%23FEA116" stroke-width="2"/><circle cx="50" cy="50" r="10" fill="none" stroke="%23FEA116" stroke-width="2"/></svg>');
    pointer-events: none;
}

/* Certificate Cards */
.cert-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.featured-badge {
    transition: all 0.3s ease;
}

.cert-card:hover .featured-badge {
    transform: scale(1.1);
}

/* Certificate Items for Gallery */
.certificate-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate-item img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certificate-item:hover img {
    transform: scale(1.05);
    border-color: #FEA116;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.certificate-item p {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certificate-item:hover p {
    color: #FEA116;
}

/* Certificate Pulse Animation */
@keyframes certificatePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.certificate-item:active img {
    animation: certificatePulse 0.3s ease;
}

/* ============================================
   ACHIEVEMENTS & AWARDS SECTION
   ============================================ */

.achievements-awards {
    position: relative;
    overflow: hidden;
}

.achievements-awards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><polygon points="50,10 90,40 90,80 50,90 10,80 10,40" fill="none" stroke="%23FEA116" stroke-width="2"/></svg>');
    pointer-events: none;
}

/* Award Cards */
.award-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254,161,22,0.1), transparent);
    transition: all 0.5s ease;
}

.award-card:hover::before {
    top: 100%;
    left: 100%;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.award-card:hover .featured-badge {
    transform: scale(1.1) rotate(5deg);
}

/* Award Items */
.award-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.award-item img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.award-item:hover img {
    transform: scale(1.05);
    border-color: #FEA116;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.award-item p {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.award-item:hover p {
    color: #FEA116;
}

/* Award Glow Animation */
@keyframes awardGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254,161,22,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(254,161,22,0.2); }
}

.award-item:active img {
    animation: awardGlow 0.3s ease;
}

/* ============================================
   LIGHTBOX GALLERY STYLES
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: transparent;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    color: #FEA116;
    transform: scale(1.1);
}

.lightbox-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prev-slide, .next-slide {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.prev-slide:hover, .next-slide:hover {
    background: #FEA116;
    transform: scale(1.1);
}

.slide-container {
    flex: 1;
    text-align: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.slide-caption {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: #FEA116;
    border-radius: 10px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active {
    opacity: 1;
    border: 2px solid #FEA116;
    transform: scale(1.05);
}

.thumbnail-item:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE STYLES (Combined)
   ============================================ */

/* Tablet and Mobile */
@media (max-width: 768px) {
    /* Experience Content */
    .experience-content,
    .achievements-content {
        text-align: center;
        margin-top: 2rem;
    }
    
    .experience-content .d-flex,
    .achievements-content .d-flex {
        justify-content: center;
    }
    
    /* Certificate & Award Items */
    .certificate-item p,
    .award-item p {
        font-size: 9px;
    }
    
    .certificate-item img,
    .award-item img {
        height: 70px !important;
    }
    
    /* Lightbox */
    .prev-slide, .next-slide {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    #lightboxImage {
        max-height: 50vh;
    }
    
    .thumbnail-item {
        width: 45px;
        height: 45px;
    }
    
    .slide-caption {
        font-size: 12px;
    }
    
    .close-lightbox {
        top: -30px;
        font-size: 30px;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    /* Award Cards */
    .award-card h5,
    .cert-card h5 {
        font-size: 14px;
    }
    
    .award-card small,
    .cert-card small {
        font-size: 10px;
    }
    
    /* Featured Badge */
    .featured-badge {
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
    }
    
    .featured-badge i {
        font-size: 1.5rem !important;
    }
    
    /* Certificate & Award Items */
    .certificate-item img,
    .award-item img {
        height: 60px !important;
    }
    
    /* Lightbox */
    .prev-slide, .next-slide {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin: 0 5px;
    }
    
    .thumbnail-item {
        width: 40px;
        height: 40px;
    }
    
    .close-lightbox {
        top: -25px;
        font-size: 25px;
    }
}

/* Desktop Large */
@media (min-width: 1200px) {
    .certificate-item img,
    .award-item img {
        height: 100px !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hover animations */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Text color utility */
.text-icn {
    color: #FEA116 !important;
}

.bg-icn {
    background-color: #FEA116 !important;
}