/* ============================================
   PORTAFOLIO - MARCO ADRIEL VARGAS V.
   styles.css
   ============================================ */

body {
    background-color: #050505;
    color: #f4f4f5;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- SCROLLBAR PERSONALIZADO --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5722;
}

/* --- BURBUJA DE TEXTO (HERO) --- */
.bubble-tail::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 24px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #ff5722 transparent transparent transparent;
}

/* --- ANIMACIONES DE REVELADO AL SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- TARJETAS DE PROYECTOS --- */
.project-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: #ff5722;
    box-shadow: 0 10px 30px -10px rgba(255, 87, 34, 0.15);
}

/* --- EFECTO GLOW (HERO) --- */
.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.15) 0%, rgba(5,5,5,0) 70%);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
}

/* --- LINK ACTIVO EN NAVEGACIÓN --- */
.nav-link.active-link {
    color: #ff5722;
}
.nav-link.active-link::after {
    width: 100%;
}

/* --- STACK TECNOLÓGICO: Borde naranja animado (glow pulsante) --- */
@keyframes orange-glow-border {
    0%   { border-color: #27272a; box-shadow: 0 0 0px rgba(255, 87, 34, 0); }
    50%  { border-color: #ff5722; box-shadow: 0 0 22px 4px rgba(255, 87, 34, 0.35), inset 0 0 14px rgba(255, 87, 34, 0.06); }
    100% { border-color: #27272a; box-shadow: 0 0 0px rgba(255, 87, 34, 0); }
}

@keyframes orange-glow-icon {
    0%, 100% { text-shadow: none; }
    50%       { text-shadow: 0 0 12px rgba(255, 87, 34, 0.9); }
}

.stack-card {
    position: relative;
    animation: orange-glow-border 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.stack-card:hover {
    transform: translateY(-4px);
    animation: none;
    border-color: #ff5722;
    box-shadow: 0 0 30px 6px rgba(255, 87, 34, 0.4), inset 0 0 20px rgba(255, 87, 34, 0.08);
}

.stack-card h3 i {
    animation: orange-glow-icon 3s ease-in-out infinite;
}

.stack-card:hover h3 i {
    animation: none;
    text-shadow: 0 0 16px rgba(255, 87, 34, 1);
}
