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

::-webkit-scrollbar-track {
    background: #030614;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 2px solid #030614;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.8);
    /* Cyan hover for AI theme */
}

/* Modal Inner Scrollbar */
.modal-scrollable::-webkit-scrollbar {
    width: 6px;
}

.modal-scrollable::-webkit-scrollbar-track {
    margin: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

/* Glassmorphism Utilities - Deep AI Theme */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* AI Startup Neon Glow effect */
.neon-glow-text {
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
}

/* Blinking Cursor Animation */
.blinking-cursor {
    font-weight: 800;
    font-size: 1.1em;
    color: #a855f7;
    /* Purple to match the gradient trailing edge */
    animation: blink 1s step-end infinite;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

select {
    text-align: center;
    text-align-last: center;
}

/* Base Job Card with dark background and hover effects */
.job-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    will-change: transform, box-shadow;
    background-color: #0f172a;
    /* Slate 900 base */
}

.job-card:hover {
    transform: translateY(-8px) scale(1.02);
    /* Subtly colored neon glow behind */
    box-shadow: 0 15px 35px -5px rgba(6, 182, 212, 0.15),
        0 0 50px rgba(168, 85, 247, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Dropdown override styling (since stock <select> styling is stubborn) */
select option {
    background-color: #0f172a;
    color: #cbd5e1;
}

/* Animated Gradient Mesh Blobs */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 15s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Initial Smooth Reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    select {
        text-align: left !important;
        text-align-last: left !important;
    }
}


/* Theme Variations (Light/Dark mode tweaks) */
html.dark .glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html:not(.dark) .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .glass-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html:not(.dark) .glass-pill {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

html:not(.dark) .job-card {
    background-color: #ffffff;
}

html:not(.dark) .job-card:hover {
    box-shadow: 0 15px 35px -5px rgba(6, 182, 212, 0.1),
        0 0 40px rgba(168, 85, 247, 0.05),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
}

html:not(.dark) select option {
    background-color: #ffffff;
    color: #0f172a;
}

html.dark select option {
    background-color: #0f172a;
    color: #cbd5e1;
}

/* Scrollbar dynamic adjustment */
html:not(.dark) ::-webkit-scrollbar-track {
    background: #f8fafc;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid #f8fafc;
}

/* Light mode specific typewriter text glow */
html:not(.dark) .neon-glow-text {
    background: linear-gradient(135deg, #ea580c, #db2777);
    /* Orange to Pink Sunset */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(234, 88, 12, 0.3)) drop-shadow(0 4px 20px rgba(219, 39, 119, 0.2));
}

html:not(.dark) .blinking-cursor {
    color: #db2777 !important;
    text-shadow: 0 0 10px rgba(219, 39, 119, 0.4) !important;
}