:root {
    /* Color Palette - Luxury Dark & Vibrant */
    --bg-body: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(10, 10, 10, 0.7);

    --primary: #FF2E4D;
    /* More electric red */
    --primary-dark: #cc0020;
    --accent: #2D6CDF;

    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --text-dark: #111111;

    --gradient-hero: radial-gradient(circle at 50% -20%, rgba(255, 46, 77, 0.15) 0%, rgba(10, 10, 10, 0) 60%);
    --gradient-glow: linear-gradient(135deg, #FF2E4D 0%, #FF8A9B 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1400px;
    --radius-lg: 24px;
    --radius-sm: 12px;

    /* Effects */
    --shadow-glow: 0 0 30px rgba(255, 46, 77, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin: 0;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 46, 77, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for navbar */
    background: var(--bg-body);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    pointer-events: none;
}

/* Featured Badge */
.badge-pill {
    display: inline-flex;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 46, 77, 0.3);
    background: rgba(255, 46, 77, 0.1);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Stats Ticker */
.stats-ticker-container {
    margin-top: -80px;
}

/* Job Cards - Premium */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 46, 77, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.job-type-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5rem;
}


/* Default Mobile Elements State (hidden on desktop) */
.mobile-sticky-btn,
.mobile-toggle,
.mobile-menu {
    display: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --radius-lg: 16px;
    }

    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        text-align: center;
        padding-top: 160px;
    }

    .hero .animate-up {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-ticker-container {
        margin-top: 2rem;
        /* Add positive space on mobile */
    }

    /* Navbar Mobile */
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar .logo {
        font-size: 1.5rem;
    }

    .navbar a[href*="login"],
    .navbar a[href*="register"] {
        display: none;
        /* Hide auth links on mobile to save space, assuming they can access elsewhere or it's less critical */
    }

    /* Stack Grids */
    .premium-grid {
        grid-template-columns: 1fr;
        /* Full width cards */
    }

    /* Job Detail Stacking */
    section .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Sticky sidebar becomes normal on mobile */
    div[style*="active"] {
        position: relative !important;
        top: 0 !important;
    }

    /* Sticky Mobile Button - FAB Style */
    .mobile-sticky-btn {
        display: flex !important;
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        left: auto !important;
        transform: none !important;
        z-index: 9999;
        width: auto !important;
        max-width: none !important;
        justify-content: center;
        align-items: center;
        box-shadow: 0 5px 20px rgba(255, 46, 77, 0.4);
        border: none;
        border-radius: 50px;
        padding: 0.8rem 1.5rem;
        backdrop-filter: blur(5px);
        animation: fadeInUp 0.5s ease 0.2s forwards;
        opacity: 0;
    }

    /* Mobile Navigation & Toggle */
    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
    }

    .mobile-toggle span {
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Active State for Toggle */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding-top: 120px;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        opacity: 0;
        visibility: hidden;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 2rem;
    }

    .mobile-menu a {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--text-main);
        text-decoration: none;
        transition: color 0.3s;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
    }

    .mobile-menu.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-menu.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-menu.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-menu.active a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-menu.active a:nth-child(6) {
        transition-delay: 0.6s;
    }

    .mobile-menu a:hover {
        color: var(--primary);
    }

    body.no-scroll {
        overflow: hidden;
    }
}