/* Base Styles & Custom Properties */
:root {
    --primary: #3b82f6;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --darker: #020617;
}

/* Offset header fixe lors du scroll vers les ancres */
html {
    scroll-padding-top: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-gradient {
    animation: gradient 6s linear infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/* Glassmorphism Header on Scroll */
header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-color: rgba(51, 65, 85, 0.5);
    padding: 0.5rem 0;
}

/* Card Hover Effects */
#services .group:hover {
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

/* Mobile Menu Styles */
.mobile-link {
    @apply text-lg font-medium text-slate-300 hover:text-primary transition-colors py-2;
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    @apply py-20 md:py-32; /* Consistent responsive vertical padding */
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {
    #hero {
        padding-bottom: 1rem;
    }
    /* Hide the mouse scroll indicator on mobile */
    .animate-bounce.cursor-pointer {
        display: none;
    }
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styling */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}
