/**
 * Kpo-Cloud - Custom Styles
 * Kept for: @keyframes, backdrop-filter, glassmorphism, print styles, reduced motion
 * Everything else moved to src/input.css @layer components
 */

/* ===== BASE TYPOGRAPHY ===== */
body {
    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 30%, #0f172a 60%, #1e293b 80%, #f97316 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.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

/* ===== 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: fadeInUp 1s ease-out 0.5s both;
}

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

/* ===== GLASSMORPHISM ===== */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    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);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== ACCESSIBILITY - Elegant Focus States ===== */
: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;
}

nav a:focus-visible {
    box-shadow: none;
    text-decoration: underline;
    text-decoration-color: #f97316;
    text-underline-offset: 4px;
}

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
    border-radius: 8px;
}

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

/* ===== DELAY UTILITIES ===== */
.delay-1s { animation-delay: 1s; }
.delay-2s { animation-delay: 2s; }

/* ===== KEYFRAMES FOR MOBILE MENU ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-glass,
    #back-to-top,
    .hero-gradient::before {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .float {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
        opacity: 1;
    }
}
