/* ================================================
   MAV Portfolio - ENHANCED COOL VERSION 🔥
   ================================================ */

/* Floating particles effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.25), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, -10px);
    }

    50% {
        transform: translate(-5px, 15px);
    }

    75% {
        transform: translate(15px, 5px);
    }
}

/* Desktop */
.desktop {
    position: relative;
    z-index: 2;
}

/* Enhanced Desktop Icons with Glow */
.icon {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    background: linear-gradient(45deg, transparent, rgba(0, 123, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(8px);
}

.icon:hover::before {
    opacity: 1;
}

.icon:hover {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(0, 123, 255, 0.4));
}

.icon:active {
    transform: translateY(-4px) scale(1.05);
}

/* Windows with Glass Effect */
.window {
    background: rgba(192, 192, 192, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: windowAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes windowAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Title Bar with Gradient */
.title-bar {
    background: linear-gradient(135deg, #000080 0%, #0000cc 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.title-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

body.dark-mode .title-bar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Enhanced Skill Cards */
.skill-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 128, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(0, 123, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.4);
}

/* Animated Skill Tags */
.skill-tag {
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.08), rgba(0, 0, 255, 0.12));
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.15), rgba(0, 123, 255, 0.2));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 128, 0.2);
}

.skill-tag:hover::before {
    left: 100%;
}

/* Enhanced Certification Cards */
.cert-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 128, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-card:hover::after {
    opacity: 1;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Animated Certificate Icon */
.cert-icon {
    position: relative;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.cert-card:hover .cert-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 20px rgba(0, 0, 128, 0.4);
}

/* Certificate Link Button with Ripple Effect */
.cert-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.cert-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cert-link:hover::before {
    width: 300px;
    height: 300px;
}

.cert-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.3);
    background: linear-gradient(135deg, #0000a0 0%, #000080 100%);
}

/* Project Cards Enhancement */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 123, 255, 0.2);
}

/* Tech Tags Animation */
.tech-tag {
    transition: all 0.3s;
    cursor: pointer;
}

.tech-tag:hover {
    background: rgba(0, 0, 255, 0.15);
    transform: scale(1.1);
}

/* Button Animations */
.btn-primary,
.btn-toggle {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-primary::after,
.btn-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-primary:hover::after,
.btn-toggle:hover::after {
    width: 200px;
    height: 200px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.3);
}

.btn-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Section Headers with Pulse Animation */
.section-header {
    position: relative;
    animation: headerPulse 2s ease-in-out infinite;
}

@keyframes headerPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--table-header), transparent);
    animation: lineExpand 3s infinite;
}

@keyframes lineExpand {

    0%,
    100% {
        width: 0;
        left: 50%;
    }

    50% {
        width: 100%;
        left: 0;
    }
}

/* Taskbar Enhancement */
#taskbar {
    background: rgba(192, 192, 192, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

#taskbar-buttons button {
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

#taskbar-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s;
}

#taskbar-buttons button:hover::before {
    left: 100%;
}

#taskbar-buttons button:hover {
    transform: translateY(-2px);
    background: #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Toggle with Glow */
#dark-mode-toggle {
    position: relative;
    transition: all 0.3s;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

/* Dark Mode Enhancements */
body.dark-mode .window {
    background: rgba(128, 128, 128, 0.85);
    border-color: rgba(192, 192, 192, 0.3);
}

body.dark-mode .skill-card,
body.dark-mode .cert-card,
body.dark-mode .project-card {
    background: rgba(192, 192, 192, 0.95);
    border-color: rgba(128, 128, 128, 0.3);
}

/* Loading Animation */
.loading-window {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scrollbar Enhancement */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--scrollbar-face), #999);
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d0d0d0, #b0b0b0);
}

/* Experience Items Enhancement */
.experience-item {
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--table-header), transparent);
    transition: height 0.3s;
}

.experience-item:hover::before {
    height: 100%;
}

.experience-item:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive animations stay smooth */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Group Title Animation */
.group-title {
    position: relative;
    display: inline-block;
}

.group-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--table-header), transparent);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}