@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--secondary);
    filter: blur(120px);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    opacity: 0.3;
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.search-box {
    background: var(--glass);
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    backdrop-filter: blur(20px);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1rem;
    color: var(--light);
    font-size: 1.1rem;
    outline: none;
}

/* Glass Cards */
.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.job-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.job-card .company {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.job-card .meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 5rem auto;
    width: 90%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Dashboard */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 5%;
    min-height: calc(100vh - 80px);
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: #94a3b8;
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .nav-links {
        display: none;
        /* Add mobile menu later if needed */
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}