body {
    font-family: 'Inter', sans-serif;
    text-align: justify;
    background-color: #0a0a0a;
    color: #eaeaea;
}

.text-cyan {
    color: #22d3ee;
}

.bg-cyan {
    background-color: #22d3ee;
}

.border-cyan {
    border-color: #22d3ee;
}

.active-nav {
    color: #22d3ee;
    position: relative;
}

.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #22d3ee;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.glass-card {
    background-color: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 250px;
    max-height: 300px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes carousel {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.animate-carousel {
    animation: carousel 40s linear infinite;
}

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

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

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

/* === Tilted Card Effect === */
.tilted-card-figure {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tilted-card-inner {
    position: relative;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    will-change: transform;
    border-radius: 0.75rem;
    /* Match rounded-xl */
    overflow: hidden;
    /* Ensure image respects border radius initially, though 3D might break it on Safari. Actually, better without overflow hidden if we want 3D pop out */
}

/* Base image is flat on the card Z-plane */
.tilted-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: translateZ(0);
    opacity: 0.3;
    /* Keep it subtle so text is readable */
    transition: opacity 0.4s ease;
    border-radius: 0.75rem;
    /* Match rounded-xl */
}

.tilted-card-figure:hover .tilted-card-bg {
    opacity: 0.5;
    /* Brighten slightly on hover */
}

/* We push the content layer out in 3D space */
.tilted-card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    transform: translateZ(30px);
    display: flex;
    flex-direction: column;
}

.tilted-card-caption {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px;
    background-color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #2d2d2d;
    opacity: 0;
    z-index: 30;
    white-space: nowrap;
    will-change: transform, opacity;
}

@media (max-width: 640px) {
    .tilted-card-caption {
        display: none;
    }
}