:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --dark: #212529;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}


.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.auth-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

.btn-signup {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-signup:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 50px 5% 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e7ff 100%);
    min-height: auto;
    gap: 20px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.text-blue {
    color: #4361ee;
}

.text-orange {
    color: #ff9f1c;
}

.hero-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Counters Section */
.counters {
    padding: 0 5% 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: -10px;
    position: relative;
    z-index: 10;
}

.counter-card {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.counter-card:hover {
    transform: translateY(-10px);
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.counter-label {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Filters Section */
.filters {
    padding: 50px 5% 20px;
    text-align: center;
}

.filter-bar {
    background: white;
    padding: 15px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 25px auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.filter-item:last-child {
    border-right: none;
    flex: 0.5;
}

.filter-item i {
    color: var(--primary);
}

.filter-item input, .filter-item select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.btn-search {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.seekers-filter-bar {
    background: white;
    padding: 15px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.seekers-filter-bar .filter-item {
    padding: 0 20px;
    border-right: 1px solid #eee;
    flex: 1;
}

.seekers-filter-bar .filter-item:last-child {
    border-right: none;
}

/* Jobs Grid */
.jobs-section {
    padding: 20px 5% 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.company-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.company-info p {
    font-size: 0.9rem;
    color: #64748b;
}

.job-body {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 50px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-salary {
    font-weight: 700;
    color: #1e293b;
}

.btn-apply {
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-apply:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.job-footer {
    padding: 15px 20px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

.btn-know-more {
    background: #f1f5f9;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.btn-know-more:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Job Seekers / Candidates styles */
.jobseekers-section {
    padding: 40px 5% 60px;
}

.jobseekers-section .section-header {
    margin-bottom: 20px;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.candidate-card .company-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
    overflow: hidden;
}

.candidate-card .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-card .company-info h4 {
    font-size: 1.05rem;
}

.candidate-card .job-meta {
    margin-bottom: 16px;
}

.candidate-card .job-desc {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.candidate-card .job-footer {
    padding: 18px 20px;
}

@media (max-width: 1024px) {
    .candidates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 100px 5%;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer Section */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 5% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Ticker Section */
.job-ticker {
    background: #1e293b;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    margin-top: 70px; /* Offset for fixed navbar */
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-item i {
    color: var(--accent);
}

.ticker-item .new-badge {
    background: var(--accent);
    color: #1e293b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.job-ticker:hover .ticker-content {
    animation-play-state: paused;
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        gap: 30px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-image {
        justify-content: center;
    }
    .hero-image img {
        max-width: 300px;
    }
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about {
        flex-direction: column;
        gap: 40px;
        padding: 40px 5%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        flex-direction: row;
        justify-content: space-between;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-container {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .nav-container.active {
        display: flex;
        /*flex-direction: column;*/
        /*width: 100%;*/
        /*gap: 15px;*/
        /*text-align: center;*/
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        text-align: center;
    }
    .auth-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .auth-btns .btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
        text-align: center;
        white-space: normal;
    }
    .job-ticker {
        margin-top: 70px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content ul {
        grid-template-columns: 1fr;
    }
    .counters {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        margin: 20px auto;
    }
    .filter-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    .btn-search {
        width: 100%;
        margin-top: 10px;
    }
}
