@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand-primary: #0f172a;
    --brand-accent: #06b6d4;
    --gold-premium: #fbbf24;
    --gold-pale: #FFFDE7;
    --text-dark: #1a202c;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.glass-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Horizontal List Card */
.job-card {
    display: grid;
    grid-template-columns: 1fr auto auto; 
    align-items: center; 
    background: white;
    border-bottom: 1px solid #f1f5f9; 
    padding: 0.5rem 0; 
    gap: 0;
    transition: all 0.2s ease;
    min-height: 60px; 
}

.job-card:hover {
    background: #fdfdfd;
    transform: translateX(4px);
    z-index: 10;
}

/* Modern High-End Tier Styling */
.card-premium {
    background: #f0f9ff !important; /* Extremely soft blue tint */
    border-left: 6px solid #0369a1 !important; /* Strong professional blue border */
}

.card-gold {
    background: #fffbeb !important; /* Extremely soft amber tint */
    border-left: 6px solid #d97706 !important; /* Strong gold border */
}

.card-premium .job-title {
    color: #0c4a6e !important;
}

.card-gold .job-title {
    color: #78350f !important;
}

.card-premium:hover, .card-gold:hover {
    transform: translateX(6px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

.card-logo-container {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.card-logo {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    border-radius: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.75rem;
}

.job-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.job-meta-line {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salary-tag {
    font-weight: 600;
    color: #22c55e;
    font-size: 0.875rem;
    text-align: right;
    min-width: 120px;
}

.apply-btn-compact {
    background: #475569;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem; 
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: all 0.2s ease; /* Professional smooth transition */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.apply-btn-compact:hover {
    background: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
    transform: translateY(-1px); /* Very subtle lift */
}

.apply-btn-compact:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

/* Card Button Overrides */
.card-premium .apply-btn-compact {
    background: white !important;
    color: #000085 !important;
    border: none;
}

.card-gold .apply-btn-compact {
    background: #1a1a1a !important;
    color: white !important;
    border: none;
}

.btn-expired {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .job-card {
        grid-template-columns: 44px 1fr !important;
        gap: 0.75rem;
        padding: 1rem;
    }
    .salary-actions-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.8rem !important;
        margin-top: 0.5rem;
    }
}

.chip {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.2);
}

.chip:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-scale-up {
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.custom-scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-reverse {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(0.95); }
    66% { transform: translate(15px, -10px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 12s ease-in-out infinite;
}

/* Abstract Background Effects */
.bg-mesh-lines {
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(251, 191, 36, 0.03) 0, transparent 50%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.grid-overlay {
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    position: fixed;
    inset: 0;
    z-index: -1;
}

.abstract-line {
    position: fixed;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.3), transparent);
    width: 100%;
    transform: rotate(-15deg);
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    mask-image: radial-gradient(circle at center, transparent, black 80%);
    -webkit-mask-image: radial-gradient(circle at center, transparent, black 80%);
}

.abstract-line-gold {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.4), transparent);
    transform: rotate(15deg);
}

@keyframes line-flow {
    0% { transform: translateX(-100%) rotate(-15deg); }
    100% { transform: translateX(100%) rotate(-15deg); }
}

.animate-line-flow {
    animation: line-flow 10s linear infinite;
}

/* Infinite Logo Carousel */
@keyframes infinite-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-carousel-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    overflow: hidden;
    white-space: nowrap;
}

.logo-carousel-track {
    display: flex;
    width: max-content;
    animation: infinite-scroll 40s linear infinite;
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 60px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Morphing Career Transformation */
.evolution-bg-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.transformation-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.morphing-unit {
    position: absolute;
    bottom: 10px;
    left: -100px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph-travel 15s linear infinite;
}

.morph-icon {
    position: absolute;
    transition: opacity 0.4s ease;
    width: 100%;
    height: 100%;
}

/* Morphing Keyframes for Travel */
@keyframes morph-travel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* Visibility Control based on Travel Progress */
@keyframes show-walk { 0%, 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes show-bike { 0%, 32% { opacity: 0; } 34%, 63% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes show-car { 0%, 64% { opacity: 0; } 66%, 100% { opacity: 1; } }

/* Hero Section Corner Line Art */
.hero-line-art {
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 380px;
    height: 120px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.05));
}

.hero-line-art svg {
    width: 100%;
    height: 100%;
}
