/* Styles personnalisés en complément de Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

/* Critical CSS for performance */
.critical-loading {
    min-height: 100vh;
    background: linear-gradient(to bottom, #121212, #1E1E1E);
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    image-rendering: optimizeQuality;
}

/* Reduce layout shifts */
.aspect-square {
    aspect-ratio: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    img {
        image-rendering: optimizeSpeed;
        transform: translateZ(0);
    }
    
    /* Reduce transitions on mobile for better performance */
    .mobile-optimized .transition {
        transition: none !important;
    }
    
    .mobile-optimized .hover\:shadow-2xl:hover {
        box-shadow: none !important;
    }
    
    .mobile-optimized .transform:hover {
        transform: none !important;
    }
    
    /* Optimize iframe loading on mobile */
    .mobile-optimized iframe {
        height: 250px !important;
    }
}

/* Performance improvements */
.gradient-bg {
    will-change: auto;
}

/* Optimize animations */
.transition-all {
    transition-property: opacity, transform;
}

/* Critical loading state */
.critical-loading {
    contain: layout style paint;
}

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

.gradient-bg {
    background: linear-gradient(to bottom, #121212, #1E1E1E);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #1DB954;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1DB954;
    margin-top: 10px;
}