/* Base Styles */
body {
    background-color: #f5f5f0;
    color: #1a2e25;
}

/* Background Mesh & Animations */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(-45deg, #f5f5f0, #dcfce7, #fef3c7, #d1fae5, #f0fdf4, #ecfdf5);
    background-size: 400% 400%;
    animation: gradientShift 120s ease-in-out infinite;
}

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

.shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.6;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: float 40s infinite alternate ease-in-out;
}

.shape-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Glass Panels */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Advanced hover effect that will be controlled by JS mouse pos */
.hover-lift {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.8);
}

/* Leaf Particles */
.leaf-particle {
    position: absolute;
    top: -50px;
    border-radius: 20% 80% 20% 80% / 20% 80% 20% 80%;
    pointer-events: none;
    z-index: 0;
    animation: fall linear infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    filter: blur(0.5px);
    transform-origin: center;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg) translateX(0) rotateX(0deg); }
    20% { transform: translateY(20vh) rotate(45deg) translateX(20px) rotateX(20deg); }
    40% { transform: translateY(40vh) rotate(90deg) translateX(-20px) rotateX(-20deg); }
    60% { transform: translateY(60vh) rotate(135deg) translateX(20px) rotateX(20deg); }
    80% { transform: translateY(80vh) rotate(180deg) translateX(-20px) rotateX(-20deg); }
    100% { transform: translateY(110vh) rotate(225deg) translateX(0) rotateX(0deg); }
}

/* Terminal custom scroll tweaks */
.term-body::-webkit-scrollbar-track {
    background: transparent;
}
