:root {
    --bs-body-bg: #ffffff;
    --bs-body-color: #4a5568;
    --card-bg: #ffffff;
    --accent-primary: #7928ca;
    --accent-secondary: #ff0080;
    --gradient-main: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    --glass-border: rgba(0, 0, 0, 0.08); 
    --glass-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.03em;
    color: #1a202c;
}

.card-title-custom {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

/* --- ANIMATION BACKGROUND --- */
.lines-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.vertical-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.02); 
    overflow: hidden;
}

.vertical-line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    opacity: 0;
    border-radius: 50%;
}

.dir-down::after {
    top: -20vh;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    animation-name: drop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.dir-up::after {
    bottom: -20vh;
    background: linear-gradient(to top, transparent, var(--accent-secondary), transparent);
    animation-name: rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes drop {
    0% { top: -20vh; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 120vh; opacity: 0; }
}

@keyframes rise {
    0% { bottom: -20vh; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { bottom: 120vh; opacity: 0; }
}

/* Navbar */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Text Gradients */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 5px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-wrapper:focus-within {
    background: #ffffff;
    border-color: #7928ca;
    box-shadow: 0 0 0 4px rgba(121, 40, 202, 0.1);
}

.form-control-custom {
    background: transparent;
    border: none;
    color: #1a202c;
    padding: 15px 20px;
    font-size: 1.1rem;
}

.form-control-custom:focus {
    background: transparent;
    color: #1a202c;
    box-shadow: none;
}

/* Nav Pills */
.nav-pills-custom .nav-link {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 8px 24px;
    margin: 0 6px 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-pills-custom .nav-link:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.nav-pills-custom .nav-link.active {
    background: var(--gradient-main);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.3);
}

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(0,0,0,0.05);
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(121, 40, 202, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.05), 
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(121, 40, 202, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.icon-square {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.glass-card:hover .icon-square {
    transform: scale(1.1) rotate(5deg);
}

.btn-glow {
    background: #ffffff;
    color: #1a202c;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-glow:hover {
    background: #1a202c;
    color: white;
    border-color: #1a202c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}