/* =========================================================
   ELITEPORT - ULTIMATE UX OPTIMIZED DARK THEME (COMPLETE)
========================================================= */

:root {
    /* Premium Dark Palette */
    --background: #0b1120;       
    --surface: #1e293b;          
    --surface-hover: #334155;
    
    /* Neon Accents */
    --accent: #3b82f6;           
    --accent-hover: #60a5fa;     
    --accent-glow: rgba(59, 130, 246, 0.25);
    
    /* Typography Colors */
    --text-main: #f8fafc;        
    --text-muted: #94a3b8;       
    
    /* UI Elements */
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --success: #34d399;
    --success-bg: rgba(16, 185, 129, 0.1);
    
    /* UX Transitions */
    --smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* --- Global Layout & UX Spacing --- */
section { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* --- Navbar (Glassmorphism UX) --- */
nav {
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 5%;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-size: 1.6rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: -0.5px;}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: var(--smooth); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-main); }
.btn-login { color: var(--text-main) !important; font-weight: 600 !important; }
.btn-signup {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    color: #fff !important; padding: 12px 28px; border-radius: 10px; font-weight: 600;
    transition: var(--smooth); box-shadow: 0 4px 15px var(--accent-glow); 
    border: 1px solid rgba(255,255,255,0.1); text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }

/* --- Hero Section --- */
.hero { text-align: center; max-width: 900px; padding: 120px 20px 60px; }
.badge {
    display: inline-flex; padding: 8px 20px; background: rgba(59, 130, 246, 0.1);
    color: var(--accent-hover); border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(59, 130, 246, 0.2); letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 {
    font-size: 4.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-description { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 750px; margin-left: auto; margin-right: auto; }
.hero-search {
    display: flex; max-width: 650px; margin: 0 auto 25px; background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 50px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-search input { flex: 1; background: transparent; border: none; padding: 14px 24px; color: var(--text-main); font-size: 1.05rem; outline: none; }
.hero-search button {
    background: var(--accent); color: white; border: none; padding: 14px 36px; border-radius: 40px;
    font-weight: 600; cursor: pointer; transition: var(--smooth); font-size: 1rem;
}
.hero-search button:hover { background: var(--accent-hover); transform: scale(1.02); }
.popular-search-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 0.9rem; align-items: center; }
.popular-search-tags span { color: #64748b; font-weight: 500; }
.popular-search-tags a { color: var(--text-muted); text-decoration: none; background: rgba(255,255,255,0.03); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); transition: var(--smooth); }
.popular-search-tags a:hover { background: var(--surface-hover); color: var(--text-main); border-color: var(--border-highlight); }

/* --- Trusted By Banners --- */
.trusted-by-section { text-align: center; padding: 40px 20px; border-bottom: 1px solid var(--border); }
.trusted-text { color: #64748b; margin-bottom: 20px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.trusted-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.company-logo { font-size: 1.2rem; font-weight: 700; color: #cbd5e1; }

/* --- UX Optimized Grids (Cards) --- */
.action-grid, .vetting-grid, .feature-grid, .security-grid, .testimonial-grid, .hub-grid { display: grid; gap: 24px; margin-top: 40px; }
.action-grid { grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto 80px; }
.vetting-grid, .feature-grid, .security-grid, .testimonial-grid, .hub-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Premium Card Design for All Sections */
.action-card, .vetting-card, .feature-card, .security-card, .testimonial-card, .hub-article-card {
    background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px);
    border: 1px solid var(--border); padding: 40px 32px; border-radius: 24px;
    transition: var(--smooth); display: flex; flex-direction: column; text-align: left;
}
.action-card:hover, .vetting-card:hover, .feature-card:hover, .security-card:hover, .hub-article-card:hover, .testimonial-card:hover {
    transform: translateY(-4px); border-color: var(--border-highlight); background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.icon-wrapper, .feature-icon, .security-icon {
    width: 56px; height: 56px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 24px; color: var(--accent);
}
.action-card h3, .vetting-card h4, .feature-card h3, .security-card h4, .hub-article-card h4 {
    font-size: 1.35rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; line-height: 1.4;
}
.action-card p, .vetting-card p, .feature-card p, .security-card p, .hub-article-card p, .testimonial-text {
    color: var(--text-muted); flex-grow: 1; margin-bottom: 30px; font-size: 1rem; line-height: 1.6;
}

/* Card Buttons (Large Touch Targets) */
.btn-card { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: var(--smooth); font-size: 1.05rem; }
.btn-hire { background: var(--text-main); color: var(--background); }
.btn-hire:hover { background: #e2e8f0; transform: translateY(-2px); }
.btn-work { background: transparent; color: var(--text-main); border: 1px solid var(--border-highlight); }
.btn-work:hover { background: var(--surface-hover); transform: translateY(-2px); }

/* 🌟 PREMIUM PLATFORM STATS SECTION 🌟 */
.platform-stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 20px;
    margin: 40px auto 100px;
    max-width: 1000px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.platform-stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stat-box {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    transition: var(--smooth);
}
.stat-box:hover {
    transform: translateY(-5px) scale(1.02);
}
.stat-box h3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    filter: drop-shadow(0 4px 15px var(--accent-glow));
}
.stat-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- How it Works Section --- */
.how-it-works-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.how-it-works-text { flex: 1; min-width: 300px; }
.how-it-works-text h2 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; }
.how-it-works-steps { flex: 1.2; min-width: 300px; }
.step-card { position: relative; padding-left: 60px; margin-bottom: 35px; }
.step-number { position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; box-shadow: 0 0 15px var(--accent-glow); }
.step-card h4 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Categories Grid (Optimized for Mobile & Desktop) --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.category-square {
    aspect-ratio: 1 / 1; background: rgba(30, 41, 59, 0.3); border: 1px solid var(--border); border-radius: 24px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    text-decoration: none; padding: 24px; transition: var(--smooth);
}
.category-square:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(30, 41, 59, 0.7); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.cat-icon { font-size: 2.8rem; margin-bottom: 16px; }
.cat-title { color: var(--text-main); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; line-height: 1.3; }

/* --- Skills Tags --- */
.skills-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.skill-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-main); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; transition: var(--smooth); cursor: pointer; }
.skill-chip:hover { background: var(--accent); border-color: var(--accent); }

/* --- Latest Jobs (UX List) --- */
.latest-jobs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.highlight-badge { color: var(--text-main); font-size: 0.85rem; font-weight: 600; background: var(--surface-hover); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); }
.compact-job-card {
    background: rgba(30, 41, 59, 0.3); border: 1px solid var(--border); border-radius: 20px;
    padding: 28px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: var(--smooth);
}
.compact-job-card:hover { border-color: var(--border-highlight); background: rgba(30, 41, 59, 0.5); transform: translateX(4px); }
.job-card-left { flex: 1; }
.job-card-left h3 { font-size: 1.3rem; color: var(--text-main); margin-bottom: 12px; font-weight: 600; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.verified-text { color: var(--success); display: inline-flex; align-items: center; gap: 4px; }
.job-card-right { display: flex; align-items: center; gap: 32px; }
.budget-amount { color: var(--text-main); font-size: 1.5rem; font-weight: 700; text-align: right; }
.budget-type { font-size: 0.8rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
.apply-btn { padding: 12px 28px; font-size: 0.95rem; min-height: 48px; border-radius: 10px; }

/* 🌟 BROWSE ALL LINK 🌟 */
.browse-all-link { text-align: center; margin-top: 40px; }
.browse-all-link a { 
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-main); text-decoration: none; font-weight: 600; 
    font-size: 1.05rem; padding: 14px 36px; border: 1px solid var(--border-highlight); 
    border-radius: 50px; background: rgba(255, 255, 255, 0.03);
    transition: var(--smooth); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.browse-all-link a:hover { 
    background: var(--surface-hover); border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-2px); color: #fff;
}

/* --- Enterprise Section --- */
.enterprise-section { background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%); border-radius: 24px; border: 1px solid var(--border); padding: 60px !important; margin: 60px auto; max-width: 1000px; }
.enterprise-container { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.enterprise-content { flex: 2; min-width: 300px; }
.enterprise-title { font-size: 2.5rem; color: white; margin-bottom: 20px; font-weight: 800;}
.highlight-text { background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.enterprise-desc { color: #94a3b8; font-size: 1.05rem; margin-bottom: 20px; }
.enterprise-benefits { list-style: none; margin-bottom: 30px; }
.enterprise-benefits li { color: #f8fafc; margin-bottom: 10px; font-weight: 500; }
.btn-enterprise { background: white; color: #0f172a; padding: 14px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-block; transition: 0.2s; }
.btn-enterprise:hover { background: #e2e8f0; transform: translateY(-2px); }
.enterprise-icon { flex: 1; font-size: 8rem; text-align: center; opacity: 0.8; }

/* --- Vision Manifesto --- */
.vision-manifesto-section { text-align: center; background: rgba(30, 41, 59, 0.3); border-radius: 24px; padding: 60px 20px !important; border: 1px dashed var(--border); margin: 60px auto; max-width: 1000px; }
.vision-content h2 { color: var(--accent-hover); margin-bottom: 24px; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.vision-content p { color: var(--text-muted); font-size: 1.1rem; max-width: 800px; margin: 0 auto 20px; line-height: 1.8; }

/* --- Growth Hub Specifics --- */
.hub-category { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; display: block; letter-spacing: 1px; }
.hub-link { color: var(--text-main); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: var(--smooth); display: inline-block; margin-top: auto; }
.hub-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); transform: translateX(4px); }

/* --- Testimonials & FAQ --- */
.stars { color: #fbbf24; margin-bottom: 15px; letter-spacing: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; margin-top: auto; border-top: 1px solid var(--border); padding-top: 20px; }
.author-avatar { width: 50px; height: 50px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.author-info h4 { color: var(--text-main); margin-bottom: 3px; font-size: 1.05rem; }
.author-info span { color: var(--text-muted); font-size: 0.85rem; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: rgba(30, 41, 59, 0.4); border: 1px solid var(--border); border-radius: 12px; padding: 25px; margin-bottom: 20px; }
.faq-item h4 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 10px; }

/* --- Final CTA --- */
.final-cta-section { text-align: center; background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9)); border-radius: 24px; padding: 80px 20px !important; margin: 80px auto; border: 1px solid var(--border); }
.final-cta-section h2 { font-size: 2.5rem; color: white; margin-bottom: 20px; font-weight: 800; }
.cta-large-btn { padding: 16px 40px; font-size: 1.2rem; }

/* --- Auth Forms (Login/Register) --- */
.form-container, .premium-form-card { max-width: 500px; margin: 40px auto; background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(16px); padding: 48px 40px; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); position: relative; }
.form-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #8b5cf6); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 10px; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 20px; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 1rem; background: rgba(15, 23, 42, 0.6); color: var(--text-main); transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); background: rgba(15, 23, 42, 0.9); outline: none; box-shadow: 0 0 0 4px var(--accent-glow); }

/* --- Footer & UX Readability --- */
.footer { background-color: #05080f; color: var(--text-muted); padding: 80px 20px 40px; margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: var(--text-main); font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: var(--smooth); display: inline-block; }
.footer-links a:hover { color: var(--text-main); transform: translateX(4px); }

/* =========================================================
   MOBILE RESPONSIVE UX
========================================================= */
@media (max-width: 768px) {
    /* Whitespace & Headings */
    section { padding: 60px 15px; }
    .hero { padding: 80px 15px 40px; }
    .hero h1 { font-size: 2.6rem; letter-spacing: -0.01em; }
    .section-header h2 { font-size: 2rem; }
    .section-header { margin-bottom: 40px; }
    
    .vision-manifesto-section { padding: 40px 15px !important; }

    /* Search Bar UX */
    .hero-search { flex-direction: column; border-radius: 16px; padding: 12px; background: rgba(30, 41, 59, 0.8); }
    .hero-search input { padding: 16px; text-align: center; }
    .hero-search button { margin-top: 8px; width: 100%; min-height: 52px; border-radius: 12px; }

    /* Grids to Single Column */
    .action-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 50px; }
    .action-card { padding: 32px 24px; }

    /* Mobile Platform Stats Fix (2 Boxes Per Row) */
    .platform-stats-section {
        flex-direction: row; 
        padding: 40px 15px; 
        border-radius: 16px; 
        margin: 40px auto 60px;
        gap: 30px 10px;
    }
    .stat-box { min-width: 40%; flex: 1 1 40%; padding: 0; }
    .stat-box h3 { font-size: 2.5rem; }
    .stat-box p { font-size: 0.8rem; letter-spacing: 1px; }

    /* Mobile Category Grid (2 Boxes per line) */
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-square { padding: 20px 12px; border-radius: 16px; aspect-ratio: auto; min-height: 140px; }
    .cat-icon { font-size: 2.2rem; margin-bottom: 12px; }
    .cat-title { font-size: 0.9rem; line-height: 1.2; }
    .cat-desc { display: none; } /* Hidden for clean mobile UX */

    /* Mobile Job Cards (Full Width Buttons) */
    .compact-job-card { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px; }
    .job-card-right { width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
    .budget-amount { text-align: left; }
    .budget-type { text-align: left; }
    .apply-btn { width: 100%; text-align: center; } 
    
    /* Browse all link full width on mobile */
    .browse-all-link a { width: 100%; border-radius: 12px; }

    /* Enterprise & Security Mobile Fixes */
    .enterprise-section { padding: 40px 20px !important; }
    .enterprise-container { flex-direction: column; text-align: left; }
    .enterprise-icon { display: none; }

    /* Mobile Footer UX Fix */
    .footer { padding: 60px 20px 30px; }
    .footer-container { 
        grid-template-columns: repeat(2, 1fr); /* 2 Columns for Links */
        gap: 40px 20px; 
        text-align: left; 
    }
    .footer-col:first-child { 
        grid-column: 1 / -1; 
        margin-bottom: 10px;
    }
    .footer-links a:hover { transform: none; color: var(--accent-hover); }

    /* Mobile Navbar */
    .menu-toggle { display: flex; flex-direction: column; cursor: pointer; gap: 6px; z-index: 101; }
    .menu-toggle .bar { width: 28px; height: 3px; background-color: var(--text-main); border-radius: 3px; transition: 0.3s; }
    .nav-links {
        position: absolute; top: 75px; left: -100%; flex-direction: column;
        background: rgba(11, 17, 32, 0.98); width: 100%; padding: 40px 20px; 
        border-bottom: 1px solid var(--border); transition: 0.3s;
    }
    .nav-links.active { left: 0; }
    .btn-signup { width: 100%; min-height: 52px; margin-top: 10px; }
}
