/* ==========================================
   TARJETA MAUXITS - CYBERPUNK DESIGN SYSTEM
   ========================================== */

/* Glassmorphic Cards */
.glass-panel {
    background: rgba(14, 14, 18, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
    z-index: 20;
}

/* Futuristic Corner Cut */
.clip-path-corner {
    clip-path: polygon(12px 0, 100% 0,
            100% calc(100% - 12px), calc(100% - 12px) 100%,
            0 100%, 0 12px);
}

/* CRT Scanline Overlay Effect */
.scanline::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 50;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

/* Audio Visualizer Bars Animation */
.bar {
    width: 3px;
    background: #00f0ff;
    animation: equalize 1s infinite;
}

.bar:nth-child(1) {
    height: 10px;
    animation-delay: -0.2s;
}

.bar:nth-child(2) {
    height: 16px;
    animation-delay: -0.4s;
}

.bar:nth-child(3) {
    height: 12px;
    animation-delay: -0.6s;
}

.bar:nth-child(4) {
    height: 8px;
    animation-delay: -0.8s;
}

@keyframes equalize {
    0%, 100% {
        height: 8px;
    }
    50% {
        height: 20px;
    }
}

.paused .bar {
    animation-play-state: paused;
    height: 4px !important;
}

/* Progress Bar Calibration Animation */
@keyframes calibration {
    0% {
        transform: scaleX(0);
        opacity: 0.5;
    }
    20% {
        transform: scaleX(0.2);
    }
    40% {
        transform: scaleX(1.15);
        filter: brightness(1.5);
    }
    60% {
        transform: scaleX(0.6);
    }
    70% {
        transform: scaleX(1.05);
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.animate-calibration {
    transform-origin: left;
    animation: calibration 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Custom Cyber Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0e0e12;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f0ff;
}

/* Courses & Certifications Infinite Marquee */
.courses-marquee-row {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: courses-scroll 50s linear infinite;
}

.courses-marquee-row.reverse {
    animation-direction: reverse;
}

.courses-marquee-row:hover {
    animation-play-state: paused;
}

@keyframes courses-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.course-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
}

/* Image Drag Prevention */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}
