@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #4c1d95; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c3aed; 
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .magic-font {
    font-family: 'Cinzel', serif;
}

/* Glowing Effects */
.glow-text {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
}

.glow-box {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.glow-box:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Background Animation */
.bg-magic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 100%);
    overflow: hidden;
}

.bg-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 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='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: pan 60s linear infinite;
}

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

/* Card Reveal Animation */
.reveal-card {
    animation: flipIn 0.8s ease-out forwards;
    backface-visibility: visible;
}

@keyframes flipIn {
    0% { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    100% { opacity: 1; transform: perspective(400px) rotateY(0deg); }
}

/* Sidebar Specifics */
.nav-item {
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.nav-item:hover, .nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #a855f7;
    color: #fff;
}
.nav-item i {
    width: 24px;
    text-align: center;
}

/* Tool Container */
.tool-container {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}
