/**
 * Kpo-Informatique - Custom Styles
 * Modern design with glassmorphism, gradients, and animations
 */

/* ===== BASE TYPOGRAPHY ===== */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ===== HERO SECTION ===== */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #f97316 75%, #ea580c 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* ===== PATTERNS ===== */
.tech-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== GLOW & GRADIENTS ===== */
.glow-effect {
    box-shadow:
        0 0 20px rgba(249, 115, 22, 0.3),
        0 0 40px rgba(249, 115, 22, 0.2),
        0 0 60px rgba(249, 115, 22, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #f97316, #ea580c, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ANIMATIONS ===== */
.pulse-slow {
    animation: pulse 3s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

/* Scroll indicator animation */
.scroll-indicator {
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for service cards */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

.reveal-delay-7 {
    transition-delay: 0.7s;
}

.reveal-delay-8 {
    transition-delay: 0.8s;
}

/* ===== GLASSMORPHISM ===== */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== CODE BLOCK ===== */
.code-bg {
    background: #0f172a;
    position: relative;
}

.code-bg::before {
    content: '{ "devops": true, "cloud": "expert", "status": "available" }';
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(249, 115, 22, 0.7);
    opacity: 0.6;
}

/* ===== NAVIGATION ===== */
.nav-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== LOGO ===== */
.site-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

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

.logo-link:hover .site-logo {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

#back-to-top:hover {
    transform: translateY(-2px);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ACCESSIBILITY - Elegant Focus States ===== */
/* Remove default ugly focus for mouse clicks, keep for keyboard */
:focus {
    outline: none;
}

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.4);
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}

/* Navigation links - subtle underline effect on focus */
nav a:focus-visible {
    box-shadow: none;
    text-decoration: underline;
    text-decoration-color: #f97316;
    text-underline-offset: 4px;
}

/* Buttons - subtle glow on focus */
button:focus-visible {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
    border-radius: 8px;
}

/* Logo link - no outline, just scale */
.logo-link:focus-visible {
    box-shadow: none;
}

.logo-link:focus-visible .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

/* ===== FORM VALIDATION ===== */
input.border-green-500,
textarea.border-green-500 {
    border-color: #22c55e !important;
}

input.border-red-500,
textarea.border-red-500 {
    border-color: #ef4444 !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2.5rem;
    }

    .code-bg::before {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .nav-glass,
    #back-to-top,
    .hero-gradient::before {
        display: none;
    }
}