/* Estilos personalizados para ANCO Tech */

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(44, 95, 45, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(44, 95, 45, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Clases de animación */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Delays para animaciones escalonadas */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

/* Estilos para el navbar con scroll */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para íconos tecnológicos */
.tech-icon-container {
    position: relative;
    display: inline-block;
}

.tech-icon-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.tech-icon-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite reverse;
}

/* Estilos para tarjetas de servicios */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #2C5F2D;
    box-shadow: 0 20px 40px rgba(44, 95, 45, 0.1);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #2C5F2D;
}

.service-card:hover .service-icon {
    color: #012a52; /* Verde más oscuro, ajusta el tono a tu preferencia */
    transform: scale(1.1);
}

/* Estilos para tarjetas de proyectos */
.project-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Estilos para tarjetas del equipo */
.team-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 95, 45, 0.2);
}

.team-avatar {
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

/* Estilos para la línea de tiempo */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(30px);
}

.timeline-item:nth-child(even).animate {
    transform: translateX(0);
}

/* Estilos para el carrusel de partners */
.partner-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Estilos para el formulario de contacto */
.form-control input:focus,
.form-control textarea:focus {
    border-color: #2C5F2D;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* Efectos de parallax suaves */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Estilos para elementos que aparecen al hacer scroll */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos responsivos adicionales */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .tech-icon-container i {
        font-size: 3rem;
    }
    
    .tech-icon-container::before {
        width: 80px;
        height: 80px;
    }
    
    .tech-icon-container::after {
        width: 60px;
        height: 60px;
    }
}

/* Estilos para mejorar la accesibilidad */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #2C5F2D;
    outline-offset: 2px;
}

/* Estilos para el modo oscuro (opcional) */
[data-theme="dark"] .service-card:hover {
    border-color: #4A7C59;
    box-shadow: 0 20px 40px rgba(74, 124, 89, 0.2);
}

[data-theme="dark"] .navbar-scrolled {
    background-color: rgba(45, 55, 72, 0.95);
}

/* Animación de carga para elementos */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilos para botones con efectos especiales */
.btn-glow {
    position: relative;
    overflow: hidden;
}

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

.btn-glow:hover::before {
    left: 100%;
}

/* Mejoras para la experiencia de usuario */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Estilos para indicadores de carga */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2C5F2D;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}