/* ========================================================
   JOHAN SMITH - PORTFOLIO & BLOG STYLES
   Design System: Minimalist, Parallax, Innovative & High-Tech
   ======================================================== */

:root {
    --bg-dark: #080a10;
    --bg-secondary: #0d121d;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-card-hover: rgba(24, 32, 51, 0.85);
    --bg-glass: rgba(13, 18, 29, 0.65);
    
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.25);
    --color-emerald: #10b981;
    --color-emerald-glow: rgba(16, 185, 129, 0.25);
    --color-purple: #a855f7;
    --color-indigo: #6366f1;
    
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.35);

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background canvas and parallax ambient orbs */
.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.orb-1 {
    top: 5%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
}

.orb-2 {
    top: 45%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%);
}

.orb-3 {
    top: 80%;
    left: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0) 70%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

/* Gradient typography */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism helpers */
.bg-dark-glass {
    background-color: var(--bg-glass);
}

.bg-dark-card {
    background-color: var(--bg-card);
}

.bg-dark-secondary {
    background-color: var(--bg-secondary);
}

.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.15);
}

/* Timeline Cards */
.timeline-card {
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Tech Badges */
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #e2e8f0;
}

.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    transform: translateY(-1px);
}

/* Parallax Tilt Card Container */
.parallax-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080a10;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Modals */
.modal-container {
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .parallax-orb {
        filter: blur(80px);
    }
    .orb-1, .orb-2, .orb-3 {
        width: 300px;
        height: 300px;
    }
}
