/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #ff3333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #0f0f0f;
    --dark-text: #ffffff;
    --border-color: #333333;
    --transition: all 0.3s ease;
}

html {
    background-color: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background-color: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #000000;
}

/* Navigation */
.navbar {
    background-color: #000000;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(255,51,51,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    -webkit-user-select: none;
    user-select: none;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff3333;
    border-bottom: 3px solid #ff3333;
    padding-bottom: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    touch-action: manipulation;
    user-select: none;
}

.btn-primary {
    background-color: #ff3333;
    color: white;
}

.btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,51,51,0.5);
}

.btn-secondary {
    background-color: #333333;
    color: white;
}

.btn-secondary:hover {
    background-color: #555555;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ff3333;
    color: #ff3333;
}

.btn-outline:hover {
    background-color: #ff3333;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 0;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInDown 0.8s ease;
}

@keyframes slideInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.search-container input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #000000;
}

/* Featured Jobs Section */
.featured-section {
    padding: 60px 20px;
    background-color: #000000;
}

.featured-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.job-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #333333;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: #ff3333;
    transition: 0.5s;
}

.job-card:hover::before {
    left: 100%;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255,51,51,0.2);
}

.job-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.job-card .company {
    color: #ff3333;
    font-weight: 500;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #cccccc;
}

.job-meta span {
    display: flex;
    align-items: center;
}

.job-card p {
    color: #999999;
    margin: 15px 0;
    min-height: 40px;
}

.job-card .btn {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.text-center {
    text-align: center;
}

/* Stats Section */
.stats-section {
    padding: 60px 20px;
    background-color: #000000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #ff3333;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.1rem;
    color: #cccccc;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #0f0f0f;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #333333;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ff3333;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Browse Jobs Page */
.jobs-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 20px;
    padding: 0 20px;
}

.filters-sidebar {
    flex: 0 0 250px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border: 1px solid #333333;
}

.filters-sidebar h3 {
    margin-bottom: 20px;
    color: #ff3333;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #333333;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: #0f0f0f;
    color: #ffffff;
}

.jobs-main {
    flex: 1;
}

.jobs-search {
    display: flex;
    margin-bottom: 20px;
}

.jobs-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #333333;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #0f0f0f;
    color: #ffffff;
}

.results-info {
    margin-bottom: 20px;
    color: #cccccc;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff3333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #333333;
}

.job-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.job-item h3 {
    color: #ffffff;
    margin-bottom: 8px;
}

.job-item .company {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    border: 1px solid #333333;
    color: #ffffff;
}

.close {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: #ffffff;
}

/* Application Form */
.apply-section {
    padding: 40px 20px;
    background-color: #000000;
    min-height: calc(100vh - 300px);
}

.apply-container {
    max-width: 700px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border: 1px solid #333333;
}

fieldset {
    border: none;
    border-top: 2px solid #333333;
    margin-bottom: 30px;
    padding-top: 20px;
}

fieldset:first-of-type {
    border-top: none;
    padding-top: 0;
}

legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff3333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333333;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0f0f0f;
    color: #ffffff;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 3l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255,51,51,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

.success-message {
    background-color: #2a4a2a;
    border: 1px solid #3a6a3a;
    color: #66ff66;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-message.hidden {
    display: none;
}

.loading {
    text-align: center;
    color: #888888;
    padding: 40px 20px;
    font-style: italic;
}

/* AI Features Section */
.ai-features-section {
    padding: 60px 20px;
    background: #000000;
}

.ai-features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border-top: 4px solid #ff3333;
    border: 1px solid #333333;
}

.ai-card::after {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(255,51,51,0.2);
}

.ai-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.ai-card p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.ai-card-button {
    display: inline-block;
    background: #ff3333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.ai-card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,51,51,0.5);
}

/* Job Recommendations */
.recommendations-section {
    padding: 40px 20px;
    background: #000000;
}

.recommendations-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #000000;
}

.recommendations-input {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.recommendations-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #333333;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #0f0f0f;
    color: #ffffff;
}

.recommendations-input input:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255,51,51,0.2);
}

.recommendations-input button {
    padding: 12px 25px;
}

.recommendation-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ff3333;
    animation: slideIn 0.5s ease;
    border: 1px solid #333333;
}

.recommendation-item h4 {
    color: #ffffff;
    margin-bottom: 10px;
}

.match-score {
    display: inline-block;
    background: #ff3333;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skill Matcher */
.skill-matcher-section {
    padding: 40px 20px;
    background: #000000;
}

.skill-input-group {
    max-width: 800px;
    margin: 0 auto 30px;
    background-color: #000000;
}

.skill-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.skill-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333333;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #0f0f0f;
    color: #ffffff;
}

.skill-input-group input:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255,51,51,0.2);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: #ff3333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.skill-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
}

.skill-tag button:hover {
    opacity: 0.8;
}

/* Market Insights */
.insights-section {
    padding: 40px 20px;
    background: #000000;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.insight-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: var(--transition);
    border: 1px solid #333333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,51,51,0.2);
}

.insight-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.insight-card p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.insight-card small {
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border-top: 4px solid #ff3333;
    border: 1px solid #333333;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 35px rgba(255, 51, 51, 0.2);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-card p {
    font-size: 1.1rem;
    color: #cccccc;
    margin: 0;
}

.contact-card a {
    color: #ff3333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #ff6666;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container input {
        min-width: 100%;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .jobs-container {
        flex-direction: column;
    }

    .filters-sidebar {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .ai-features-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-input {
        flex-direction: column;
    }

    .recommendation-item {
        flex-direction: column;
    }

    .recommendation-item > div {
        flex-direction: column !important;
    }

    .recommendation-item button {
        width: 100%;
        margin-top: 10px;
    }

    .chat-widget {
        bottom: 75px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: 100%;
        height: 480px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
    }
}

/* ====== AI CHAT WIDGET ====== */

.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
    height: 550px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    z-index: 999;
    animation: slideUpChat 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #333333;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes slideUpChat {
    from {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chat-widget.minimized {
    display: none !important;
    animation: slideDownChat 0.3s ease forwards;
}

@keyframes slideDownChat {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
}

.chat-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(255,51,51,0.2);
    flex-shrink: 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-icon {
    font-size: 1.6rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #0f0f0f;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message p {
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.95rem;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background: #ff3333;
    color: white;
    border-bottom-right-radius: 2px;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message p {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #333333;
    border-bottom-left-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.bot-message.typing p::after {
    content: '';
    animation: typing 1.5s steps(3);
}

@keyframes typing {
    0% { content: ''; }
    33% { content: '●'; }
    66% { content: '●●'; }
    100% { content: '●●●'; }
}

.chat-input-area {
    padding: 12px 12px;
    border-top: 1px solid #333333;
    display: flex;
    gap: 8px;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
    flex-shrink: 0;
}

#chatInput {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 0.93rem;
    transition: var(--transition);
    font-family: inherit;
    background-color: #0f0f0f;
    color: #ffffff;
}

#chatInput:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255,51,51,0.2);
}

#chatInput::placeholder {
    color: #666;
    font-size: 0.92rem;
}

.chat-send-btn {
    background: #ff3333;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,51,51,0.5);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #ff3333;
    border: 3px solid white;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,51,51,0.5);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.chat-toggle:hover {
    transform: scale(1.15) translateY(0);
    box-shadow: 0 8px 30px rgba(255,51,51,0.6);
}

.chat-toggle:active {
    transform: scale(0.95);
}

.chat-toggle.hidden {
    display: none !important;
    pointer-events: none;
}

.chat-toggle span:first-child {
    animation: bobbing 2.5s ease-in-out infinite;
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(5deg); }
    75% { transform: translateY(-3px) rotate(-3deg); }
}

.new-message-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #dc3545;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    animation: badgePulse 0.6s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

@keyframes badgePulse {
    0% { 
        transform: scale(0);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 15px;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container input {
        width: 100%;
    }

    .search-container button {
        width: 100%;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .apply-container {
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .featured-section h2,
    .ai-features-section h2,
    .text-center,
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .ai-card {
        padding: 18px;
    }

    .ai-card h3 {
        font-size: 1.1rem;
    }

    .ai-card p {
        font-size: 0.9rem;
    }

    .footer {
        padding: 20px 15px;
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }

    /* Chat Widget Mobile */
    .chat-widget {
        position: fixed;
        bottom: 70px;
        right: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 140px);
        max-height: 550px;
        border-radius: 16px 16px 0 0;
        max-width: 100vw;
    }

    .chat-header {
        padding: 14px 16px;
    }

    .chat-title h4 {
        font-size: 0.95rem;
    }

    .chat-icon {
        font-size: 1.4rem;
    }

    .chat-messages {
        padding: 12px;
        gap: 8px;
    }

    .message p {
        max-width: 90%;
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .chat-input-area {
        padding: 10px;
        gap: 6px;
    }

    #chatInput {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .chat-send-btn {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        right: 10px;
        bottom: 10px;
        font-size: 1.3rem;
        box-shadow: 0 3px 10px rgba(255,51,51,0.3);
    }

    .new-message-badge {
        width: 20px;
        height: 20px;
        top: -6px;
        right: -6px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 40% auto 20% auto;
    }

    .recommendations-input {
        flex-direction: column;
    }

    .recommendations-input input,
    .recommendations-input button {
        width: 100%;
    }

    .skill-matcher-section,
    .recommendations-section {
        padding: 20px 15px;
    }

    .job-item {
        padding: 15px;
    }

    .insight-card h4 {
        font-size: 0.95rem;
    }

    .insight-card p {
        font-size: 1.2rem;
    }
}
