@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #8b5cf6; /* Glowing Violet */
    --primary-hover: #7c3aed;
    --secondary-color: #06b6d4; /* Neon Cyan */
    --secondary-hover: #0891b2;
    --accent-color: #ec4899; /* Cyber Pink */
    
    --bg-darker: #050508; /* Void Black */
    --bg-dark: #0a0b12; /* Space Dark */
    
    --text-main: #f8fafc; /* Brilliant White */
    --text-muted: #94a3b8; /* Silver Grey */
    --text-light: #64748b; /* Slate Blue */
    
    /* Ultra-premium Glossy Glassmorphism */
    --glass-bg: rgba(13, 16, 27, 0.55); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), inset 0 1px 1px 0 rgba(255, 255, 255, 0.06);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: radial-gradient(120% 120% at 50% 10%, #07080d 30%, #110e20 70%, #1a0f30 100%) !important;
    color: var(--text-main) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Subtle cyber grid overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Ambient glow blobs */
.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: floatingBlobs 12s infinite alternate ease-in-out;
}

.bg-blob-1 { top: -150px; right: -100px; }
.bg-blob-2 { bottom: -150px; left: -100px; }

@keyframes floatingBlobs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
    100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Glossy Glassmorphism Panels */
.glass-panel, .service-card, .mock-match-engine {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-smooth) !important;
}

.glass-panel:hover, .service-card:hover, .mock-match-engine:hover {
    box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-4px) !important;
}

/* AI Matching Items */
.simulation-item {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff !important;
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc 0%, #8b5cf6 50%, #06b6d4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

/* Custom premium input fields */
.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    transition: var(--transition-smooth) !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2) !important;
}

/* Ensure select option dropdown lists have dark background and white text */
select.form-control option, .form-control select option, select option {
    background-color: #110e20 !important;
    color: #ffffff !important;
}

/* Buttons styling overrides */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px -8px rgba(139, 92, 246, 0.6) !important;
}

.btn-primary:hover {
    box-shadow: 0 15px 35px -8px rgba(139, 92, 246, 0.8) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px -8px rgba(6, 182, 212, 0.5) !important;
}

.btn-secondary:hover {
    box-shadow: 0 15px 35px -8px rgba(6, 182, 212, 0.7) !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Table styling */
.table {
    color: #f8fafc !important;
}

.table th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Site Footer */
.site-footer {
    background: #050508 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 35px 0 !important;
}

.footer-link {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary-color) !important;
}

/* Sleek translucent logo styling for recruitment portal & headers */
.logo-img, img#header-logo, .navbar-brand img {
    opacity: 0.94 !important;
    transition: all 0.3s ease-in-out !important;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.25)) !important;
    border-radius: 8px !important;
}

.logo-img:hover, img#header-logo:hover, .navbar-brand img:hover {
    opacity: 1 !important;
    transform: translateY(-1px) scale(1.03) !important;
    filter: drop-shadow(0 6px 18px rgba(16, 185, 129, 0.45)) !important;
}

/* Fix for inputs inside light-themed containers bleeding white text from global dark theme */
.bg-white .form-control,
.bg-light .form-control,
.card .form-control,
.profile-card .form-control,
.premium-input {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.bg-white .form-control:focus,
.bg-light .form-control:focus,
.card .form-control:focus,
.profile-card .form-control:focus,
.premium-input:focus {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.bg-white .form-control::placeholder,
.bg-light .form-control::placeholder,
.card .form-control::placeholder,
.profile-card .form-control::placeholder,
.premium-input::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

.bg-white select.form-control option,
.bg-light select.form-control option,
.card select.form-control option,
.profile-card select.form-control option,
select.premium-input option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}
