/**
 * Innovation Media Center - Custom CSS
 * Animations et styles additionnels
 */

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-image {
    animation: slideInLeft 1s ease-out;
}

.about-text {
    animation: slideInRight 1s ease-out;
}

.service-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   CUSTOM SCROLLBAR (Webkit browsers)
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-anthracite);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-cyan), var(--color-violet));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* ========================================
   GLOWING EFFECTS
   ======================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   PARTICLE BACKGROUND (Optional)
   ======================================== */

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(94, 200, 229, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 124, 182, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(232, 91, 184, 0.3), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(94, 200, 229, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* ========================================
   LOGO STYLES
   ======================================== */

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .about-content {
        padding: var(--spacing-md) 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* ========================================
   LOADING ANIMATION
   ======================================== */

.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}
