* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    color: #252129;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px;
    background-color: #FFFFFF;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 30px;
    font-weight: bold;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Navigation */

.navbar nav {
    display: flex;
    gap: 40px;
}

.navbar nav a {
    text-decoration: none;
    color: #252129;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #A98BC3;
}

.navbar nav a.active {
    color: #A98BC3;
    font-weight: bold;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #30213F;
}

/* Background Image */

.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

/* Hero Text */

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 650px;
    color: white;
}

.hero-overlay h1 {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
    color: white;
    letter-spacing: 2px;
}

.hero-overlay h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: white;
}

.hero-overlay p {
    font-size: 19px;
    line-height: 1.7;
    max-width: 600px;
    color: white;
}


/* =========================
   JOB SEEKER / EMPLOYER
========================= */

.main-options {
    display: flex;
    width: 100%;
}

.option {
    position: relative;
    width: 50%;
    height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-size: cover;
    background-position: center;
}

/* Job seeker */

.job-seeker {
    background-image: url("images/job-seeker.jpg");
}

/* Employer */

.employer {
    background-image: url("images/manpower.jpg");
}

/* Overlay */

.option::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(48, 33, 63, 0.65);
}

/* Employer lighter overlay */

.employer::before {
    background: rgba(255, 246, 246, 0.75);
}

/* Content */

.option-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    max-width: 450px;
}

.option-content h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.option-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Employer text */

.employer .option-content {
    color: black;
}

.employer .option-content h2 {
    color: black;
}

.employer .option-content p {
    color: black;
}

.employer .option-button {
    color: black;
    border-color: black;
}

.employer .option-button:hover {
    background-color: black;
    color: white;
}


/* Buttons */

.option-button {
    display: inline-block;
    padding: 14px 28px;

    border: 2px solid #FFFFFF;
    color: #FFFFFF;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    transition: 0.3s;
}

/* Job seeker button */

.job-seeker .option-button:hover {
    background-color: #A98BC3;
    border-color: #A98BC3;
    color: #30213F;
}

/* Employer button */

.employer .option-button {
    color: #30213F;
    border-color: #30213F;
}

.employer .option-button:hover {
    background-color: #30213F;
    color: #FFFFFF;
}


/* =========================
   WHO WE ARE
========================= */

.about-intro {
    display: flex;
    width: 100%;
    min-height: 500px;
    background-color: #F7F4F0;
}

/* Image */

.about-image {
    width: 50%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */

.about-content {
    width: 50%;
    padding: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Small heading */

.about-content span {
    color: #A98BC3;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

/* Main heading */

.about-content h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #30213F;
    margin-bottom: 22px;
    max-width: 550px;
}

/* Paragraph */

.about-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #55505A;
    max-width: 520px;
    margin-bottom: 30px;
}

/* Learn More */

.text-button {
    display: inline-block;
    width: fit-content;

    padding: 13px 25px;

    border: 2px solid #30213F;
    color: #30213F;

    text-decoration: none;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;

    transition: 0.3s;
}

.text-button:hover {
    background-color: #30213F;
    color: #FFFFFF;
}


/* =========================
   FOOTER
========================= */

footer {
    width: 100%;
    background-color: #241033;
    color: white;

    text-align: center;

    padding: 65px 20px 35px;
}

/* Logo */

.footer-logo {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 18px;
}

/* Tagline */

.footer-tagline {
    color: #d8cce4;
    font-size: 15px;

    max-width: 600px;
    margin: 0 auto 35px;

    line-height: 1.7;
}

/* Contact details */

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 70px;
    margin-bottom: 35px;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #eee;
    text-decoration: none;

    font-size: 15px;
    padding: 8px 15px;
}

.footer-contact i {
    color: #c9b2e8;
    font-size: 18px;
}

/* Social icons */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
    margin-bottom: 35px;
}

.social-links a {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #8d70aa;
    border-radius: 50%;

    color: white;
    text-decoration: none;

    font-size: 17px;

    transition: 0.3s;
}

.social-links a:hover {
    background-color: #c9b2e8;
    color: #241033;
    transform: translateY(-3px);
}

/* Copyright */

.copyright {
    padding-top: 25px;

    border-top: 1px solid #49345a;

    color: #b9a9c7;
    font-size: 13px;

    max-width: 850px;
    margin: 0 auto;
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* NAVBAR */

    .navbar {
        height: auto;
        padding: 18px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 24px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .navbar nav a {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        height: 500px;
    }

    .hero-overlay {
        left: 25px;
        right: 25px;
        max-width: none;
    }

    .hero-overlay h1 {
        font-size: 42px;
    }

    .hero-overlay h2 {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-overlay p {
        font-size: 16px;
        line-height: 1.5;
    }


    /* JOB SEEKER / EMPLOYER */

    .main-options {
        flex-direction: column;
    }

    .option {
        width: 100%;
        min-height: 400px;
    }

    .option-content {
        padding: 30px 25px;
    }

    .option-content h2 {
        font-size: 30px;
    }

    .option-content p {
        font-size: 16px;
    }


    /* WHO WE ARE */

    .about-intro {
        flex-direction: column;
    }

    .about-image,
    .about-content {
        width: 100%;
    }

    .about-image {
        min-height: 300px;
    }

    .about-content {
        padding: 50px 25px;
    }

    .about-content h2 {
        font-size: 32px;
    }


    /* FOOTER */

    footer {
        padding: 40px 20px;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================
   QUESTION POPUP
========================= */

.question-popup {
    position: fixed;
    inset: 0;

    background: rgba(48, 33, 63, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.question-box {
    position: relative;

    width: 90%;
    max-width: 450px;

    padding: 40px 30px;

    background: #E8E4E1;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.question-box h2 {
    color: #30213F;
    margin-bottom: 15px;
}

.question-box p {
    color: #55505A;
    margin-bottom: 20px;
}

.question-box input {
    width: 100%;
    padding: 14px;

    border: 1px solid #30213F;
    border-radius: 10px;

    font-size: 15px;
    outline: none;

    margin-bottom: 15px;
}

#question-submit {
    padding: 12px 25px;

    border: none;
    border-radius: 25px;

    background: #30213F;
    color: white;

    cursor: pointer;

    transition: 0.3s;
}

#question-submit:hover {
    background: #A98BC3;
}

.close-question {
    position: absolute;

    top: 12px;
    right: 16px;

    border: none;
    background: none;

    font-size: 28px;

    cursor: pointer;

    color: #30213F;
}


/* =========================
   PRIVACY & TERMS
========================= */

.legal-section {
    text-align: center;
    padding: 50px 20px;
    background: #F7F4F0;
}

.legal-section h2 {
    color: #30213F;
    font-size: 30px;
    margin-bottom: 10px;
}

.legal-section p {
    color: #55505A;
    margin-bottom: 25px;
}

#legal-button {
    padding: 12px 28px;

    border: 1px solid #30213F;
    border-radius: 25px;

    background: transparent;
    color: #30213F;

    font-weight: 600;
    cursor: pointer;

    transition: 0.3s;
}

#legal-button:hover {
    background: #30213F;
    color: white;
}


/* =========================
   LEGAL POPUP
========================= */

.legal-popup {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(48, 33, 63, 0.6);

    z-index: 10000;

    padding: 30px 20px;

    overflow-y: auto;
}

.legal-box {
    position: relative;

    max-width: 800px;

    margin: 30px auto;

    padding: 45px;

    background: #F7F4F0;

    border-radius: 20px;

    color: #55505A;

    line-height: 1.7;
}

.legal-box h2 {
    color: #30213F;
    margin-bottom: 20px;
}

.legal-box h3 {
    color: #30213F;

    margin-top: 25px;
    margin-bottom: 8px;
}

.legal-box p {
    margin-bottom: 15px;
}

.legal-close {
    position: absolute;

    top: 15px;
    right: 20px;

    border: none;
    background: none;

    color: #30213F;

    font-size: 30px;

    cursor: pointer;
}

.legal-date {
    margin-top: 30px;

    font-size: 14px;
    color: #777;
}


/* =========================
   LIORA AI FLOATING BUTTON
========================= */

.chatbot-button {
    position: fixed !important;

    left: 25px !important;
    right: auto !important;

    bottom: 25px !important;

    width: 145px;
    height: 55px;

    background: #30213F;
    color: white;

    border-radius: 30px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    gap: 10px;

    cursor: pointer;

    z-index: 999999 !important;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;
}

.chatbot-button i {
    font-size: 20px;
}

.chatbot-button span {
    white-space: nowrap;
}


/* =========================
   LIORA AI CHAT WINDOW
========================= */

.chatbot {
    position: fixed;

    left: 25px;
    right: auto;

    bottom: 95px;

    width: 750px;

    height: min(600px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);

    background: #F7F4F0;

    border-radius: 20px;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);

    overflow: hidden;

    display: none;

    flex-direction: column;

    z-index: 999998;
}


/* =========================
   CHATBOT HEADER
========================= */

.chatbot-header {
    background: #30213F;

    color: white;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.chatbot-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.chatbot-header span {
    font-size: 12px;
    color: #d8cce4;
}


/* Close button */

#chatbot-close {
    border: none;

    background: transparent;

    color: white;

    font-size: 28px;

    cursor: pointer;

    line-height: 1;

    padding: 2px 5px;

    flex-shrink: 0;
}


/* =========================
   CHAT MESSAGES
========================= */

.chatbot-messages {
    flex: 1;

    padding: 20px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;
}


/* Bot message */

.bot-message {
    align-self: flex-start;

    max-width: 85%;

    background: white;

    color: #30213F;

    padding: 12px 15px;

    border-radius: 15px 15px 15px 4px;

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 15px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


/* =========================
   CHAT OPTIONS
========================= */

.chatbot-options {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.chatbot-options button {
    width: 100%;

    padding: 11px 14px;

    background: white;

    border: 1px solid #A98BC3;

    border-radius: 10px;

    color: #30213F;

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition: 0.3s;
}

.chatbot-options button:hover {
    background: #A98BC3;
    color: white;
}


/* =========================
   CHAT INPUT
========================= */

.chatbot-input {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px;

    background: white;

    border-top: 1px solid #ddd;
}

.chatbot-input input {
    flex: 1;

    padding: 11px 13px;

    border: 1px solid #ddd;

    border-radius: 20px;

    outline: none;

    font-size: 13px;
}

.chatbot-input input:focus {
    border-color: #A98BC3;
}

.chatbot-input button {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #30213F;
    color: white;

    cursor: pointer;

    transition: 0.3s;
}

.chatbot-input button:hover {
    background: #A98BC3;
}


/* =========================
   USER MESSAGE
========================= */

.user-message {
    align-self: flex-end;

    max-width: 80%;

    background: #30213F;
    color: white;

    padding: 11px 15px;

    border-radius: 15px 15px 4px 15px;

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 12px;
}


/* =========================
   CHATBOT ACTION BUTTON
========================= */

.chatbot-action {
    border: none;

    background: #30213F;
    color: white;

    padding: 10px 15px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    margin-top: 5px;
}

.chatbot-action:hover {
    background: #A98BC3;
}


/* =========================
   FINAL MOBILE CHATBOT FIX
========================= */

@media (max-width: 768px) {

    /* LIORA AI BUTTON */

    .chatbot-button {
        left: 15px !important;
        right: auto !important;

        bottom: 15px !important;

        width: 140px;
        height: 55px;

        border-radius: 30px;

        box-sizing: border-box;
    }

    .chatbot-button i {
        font-size: 20px;
    }

    .chatbot-button span {
        font-size: 13px;

        font-weight: 600;

        letter-spacing: 0.5px;

        white-space: nowrap;
    }


    /* LIORA AI CHAT WINDOW */

    .chatbot {
        left: 15px;
        right: 15px;

        bottom: 85px;

        width: auto;
        max-width: none;

        height: calc(100vh - 105px);

        max-height: calc(100vh - 105px);

        border-radius: 18px;
    }


    /* CHAT HEADER */

    .chatbot-header {
        padding: 15px 16px;
    }

    #chatbot-close {
        font-size: 28px;

        padding: 5px;

        flex-shrink: 0;
    }


    /* CHAT MESSAGES */

    .chatbot-messages {
        padding: 15px;
    }


    /* Prevent oversized content */

    img,
    video,
    iframe {
        max-width: 100%;
    }

    .container,
    section {
        max-width: 100%;
    }
}