/**
 * RedXtreme - Custom Stylesheet v1.2 (Kinetic Tech Animations)
 */

body {
    font-family: 'Manrope', sans-serif;
    background-color: #131313;
    color: #e5e2e1;
    overflow-x: hidden;
}

.font-headline { 
    font-family: 'Space Grotesk', sans-serif; 
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism & Paneles */
.glass-panel {
    background: rgba(32, 31, 31, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.text-glow-primary {
    text-shadow: 0 0 18px rgba(144, 218, 97, 0.45);
}

.text-glow-secondary {
    text-shadow: 0 0 18px rgba(84, 215, 246, 0.45);
}

.bloom-icon {
    filter: drop-shadow(0 0 10px rgba(144, 218, 97, 0.65));
}

/* Gradiente Cinético Animado para Textos */
@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-text-shimmer {
    background: linear-gradient(90deg, #90da61, #54d7f6, #cccb6e, #90da61);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s ease infinite;
    display: inline-block;
    padding-right: 0.22em;
    padding-left: 0.05em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Orbes de Luz Flotantes */
@keyframes orbFloatA {
    0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(30px, -25px) scale(1.15); opacity: 0.28; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

@keyframes orbFloatB {
    0% { transform: translate(0, 0) scale(1.1); opacity: 0.15; }
    50% { transform: translate(-25px, 20px) scale(0.95); opacity: 0.28; }
    100% { transform: translate(0, 0) scale(1.1); opacity: 0.15; }
}

.animate-orb-primary {
    animation: orbFloatA 8s ease-in-out infinite;
    will-change: transform, opacity;
}

.animate-orb-secondary {
    animation: orbFloatB 10s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Grid Cibernético de Fondo */
.tech-grid-overlay {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(144, 218, 97, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(144, 218, 97, 0.035) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Tarjetas Tecnológicas Interactivas (Hover Lift & Spotlight) */
.tech-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    will-change: transform, box-shadow;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px -4px rgba(144, 218, 97, 0.18);
}

.tech-card-secondary:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px -4px rgba(204, 203, 110, 0.18);
}

/* Botón con Pulso de Energía */
@keyframes energyPulse {
    0% { box-shadow: 0 0 0 0 rgba(144, 218, 97, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(144, 218, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(144, 218, 97, 0); }
}

.animate-pulse-glow {
    animation: energyPulse 2.8s infinite;
}

/* Animaciones de Flotación */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.icon-float {
    animation: float-gentle 3.2s ease-in-out infinite;
}

.icon-float-delay {
    animation: float-gentle 3.2s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* Reveal Animations on Scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-inview > .reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-inview > .reveal-item:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.is-inview > .reveal-item:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.is-inview > .reveal-item:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.is-inview > .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: #90da61;
    color: #153800;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 0.25rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid #e5e2e1;
    outline-offset: 2px;
}

section[id] { 
    scroll-margin-top: 5.5rem; 
}

@media (prefers-reduced-motion: no-preference) {
    html { 
        scroll-behavior: smooth; 
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #90da61;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-up, .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .icon-float, .icon-float-delay, .animate-orb-primary, .animate-orb-secondary, .animate-text-shimmer, .animate-pulse-glow { 
        animation: none !important; 
    }
}

.footer-grid-bg {
    background-image:
        linear-gradient(rgba(144, 218, 97, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(144, 218, 97, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}
