/* =========================================
   FreelanceHub - Global Styles
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #172033;
    line-height: 1.6;
}

/* =========================================
   Navigation
   ========================================= */

.navbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
}

.logo span {
    color: #111827;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-register {
    background: #2563eb;
    color: white;
    border: 1px solid #2563eb;
}

.btn-login,
.btn-register {
    padding: 10px 18px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-login:hover {
    background: #eff6ff;
}

.btn-register:hover {
    background: #1d4ed8;
}

/* =========================================
   Hero
   ========================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #dbeafe 50%,
            #f8fafc 100%
        );

    padding: 90px 7% 75px;
}

.hero-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.12;
    color: #111827;
    margin-bottom: 22px;
}

.hero h1 span {
    color: #2563eb;
}

.hero-description {
    color: #4b5563;
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #bfdbfe;
}

.secondary-btn:hover {
    background: #eff6ff;
}

/* Hero visual */

.hero-card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.hero-card-header h3 {
    color: #111827;
}

.status {
    background: #dcfce7;
    color: #15803d;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.project-preview {
    border: 1px solid #e5e7eb;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.project-preview h4 {
    color: #111827;
    margin-bottom: 6px;
}

.project-preview p {
    font-size: 13px;
    color: #6b7280;
}

.project-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
}

.price {
    color: #2563eb;
    font-weight: 700;
}

/* =========================================
   Stats
   ========================================= */

.stats {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.stats-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 28px;
}

.stat {
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.stat:last-child {
    border-right: none;
}

.stat h2 {
    color: #2563eb;
    font-size: 28px;
}

.stat p {
    color: #6b7280;
    font-size: 14px;
}

/* =========================================
   Sections
   ========================================= */

.section {
    padding: 75px 7%;
}

.section-header {
    max-width: 1100px;
    margin: 0 auto 35px;
}

.section-header h2 {
    font-size: 32px;
    color: #111827;
}

.section-header p {
    color: #6b7280;
    margin-top: 8px;
}

/* =========================================
   Categories
   ========================================= */

.categories {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 12px;
    transition: 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 7px;
}

.category-card p {
    color: #6b7280;
    font-size: 14px;
}

/* =========================================
   How It Works
   ========================================= */

.steps {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 18px;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: #6b7280;
    font-size: 14px;
}

/* =========================================
   Projects
   ========================================= */

.projects {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
}

.project-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 14px;
}

.project-card h3 {
    margin-bottom: 8px;
}

.project-card p {
    color: #6b7280;
    font-size: 14px;
    min-height: 50px;
}

.project-info {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.project-info strong {
    color: #2563eb;
}

/* =========================================
   CTA
   ========================================= */

.cta {
    margin: 20px 7% 75px;
    padding: 60px;
    background: #1e3a8a;
    border-radius: 18px;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.cta p {
    margin-bottom: 25px;
    color: #dbeafe;
}

/* =========================================
   Forms
   ========================================= */

.form-page {
    min-height: calc(100vh - 72px);
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-card {
    width: 100%;
    max-width: 650px;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.form-card h1 {
    font-size: 30px;
    color: #111827;
    margin-bottom: 8px;
}

.form-card > p {
    color: #6b7280;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #dbeafe;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.full-btn {
    width: 100%;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background: #111827;
    color: white;
    padding: 50px 7% 25px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer h3 {
    margin-bottom: 15px;
}

.footer p,
.footer a {
    color: #9ca3af;
    font-size: 14px;
}

.footer a {
    display: block;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1100px;
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }

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

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

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {

    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 15px;
    }

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

    .section {
        padding: 55px 20px;
    }

    .cta {
        margin: 10px 20px 50px;
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   Registration Page
   ========================================= */

.register-page {
    min-height: calc(100vh - 72px);
    padding: 70px 7%;
    background: #f8fafc;
}

.register-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.register-header h1 {
    font-size: 42px;
    color: #111827;
    margin: 15px 0 10px;
}

.register-header p {
    color: #6b7280;
    font-size: 17px;
}


/* Registration cards */

.registration-options {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}


.registration-card {
    background: white;

    padding: 35px;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

    transition: 0.25s;
}

.registration-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(37, 99, 235, 0.12);
}


.registration-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    border-radius: 14px;

    font-size: 27px;

    margin-bottom: 18px;
}


.freelancer-icon {
    background: #f0fdf4;
}


.registration-label {
    font-size: 12px;

    font-weight: 800;

    color: #2563eb;

    letter-spacing: 1px;
}


.registration-card h2 {
    font-size: 25px;

    color: #111827;

    margin: 8px 0;
}


.registration-description {
    color: #6b7280;

    font-size: 14px;

    margin-bottom: 25px;

    min-height: 45px;
}


/* Terms */

.terms {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    font-size: 13px;

    color: #6b7280;

    margin: 18px 0;
}

.terms input {
    margin-top: 4px;
}

.terms a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}


/* Login prompt */

.login-prompt {
    text-align: center;

    margin-top: 30px;

    color: #6b7280;

    font-size: 14px;
}

.login-prompt a {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;
}


/* Responsive */

@media (max-width: 800px) {

    .registration-options {
        grid-template-columns: 1fr;
    }

    .register-header h1 {
        font-size: 34px;
    }

    .register-page {
        padding: 50px 20px;
    }

}
/* =========================================
   Dashboard
   ========================================= */

.dashboard-page {
    min-height: calc(100vh - 72px);
    padding: 60px 7%;
    background: #f8fafc;
}

.dashboard-header {
    max-width: 1100px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 34px;
    color: #111827;
    margin: 10px 0;
}

.dashboard-header p {
    color: #6b7280;
}


/* Statistics */

.dashboard-stats {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 45px;
}

.dashboard-stat {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 22px;

    display: flex;
    align-items: center;

    gap: 15px;
}

.dashboard-stat > span {
    width: 48px;
    height: 48px;

    background: #eff6ff;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.dashboard-stat strong {
    font-size: 24px;
    color: #111827;
}

.dashboard-stat p {
    color: #6b7280;
    font-size: 13px;
}


/* Dashboard Sections */

.dashboard-section {
    max-width: 1100px;
    margin: 0 auto 45px;
}

.dashboard-section h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 20px;
}


/* Actions */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.dashboard-action {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 22px;

    display: flex;

    gap: 15px;

    text-decoration: none;

    transition: 0.2s;
}

.dashboard-action:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.07);
}

.dashboard-action > span {
    font-size: 25px;
}

.dashboard-action h3 {
    color: #111827;
    margin-bottom: 5px;
}

.dashboard-action p {
    color: #6b7280;
    font-size: 13px;
}


/* Section title */

.section-title-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.section-title-row h2 {
    margin: 0;
}

.section-title-row a {
    color: #2563eb;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


/* Projects */

.dashboard-project {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 24px;

    margin-bottom: 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.dashboard-project h3 {
    margin: 8px 0 5px;

    color: #111827;
}

.dashboard-project p {
    color: #6b7280;

    font-size: 14px;
}

.project-status {
    text-align: right;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.project-status span {
    background: #dcfce7;

    color: #15803d;

    padding: 5px 10px;

    border-radius: 15px;

    font-size: 12px;
}

.project-status strong {
    color: #2563eb;

    font-size: 13px;
}


@media (max-width: 900px) {

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

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

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

    .dashboard-project {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .project-status {
        text-align: left;
    }

}
/* =========================================
   Post Project Page
   ========================================= */

.post-project-page {
    min-height: calc(100vh - 72px);
    padding: 60px 7%;
    background: #f8fafc;
}

.post-project-header {
    max-width: 1100px;
    margin: 0 auto 35px;
}

.post-project-header h1 {
    font-size: 38px;
    color: #111827;
    margin: 12px 0 8px;
}

.post-project-header p {
    color: #6b7280;
    font-size: 16px;
}

.post-project-layout {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    align-items: start;
}

.project-form-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.form-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.form-section h2 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 5px;
}

.form-section p {
    color: #6b7280;
    font-size: 14px;
}

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

.form-group small {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    margin-top: 25px;
}

.project-tips {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 25px;
}

.project-tips h2 {
    color: #1e3a8a;
    font-size: 20px;
    margin-bottom: 22px;
}

.tip {
    padding: 18px 0;
    border-bottom: 1px solid #bfdbfe;
}

.tip:last-child {
    border-bottom: none;
}

.tip strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 5px;
}

.tip p {
    color: #4b5563;
    font-size: 13px;
}

@media (max-width: 850px) {

    .post-project-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .post-project-page {
        padding: 40px 20px;
    }

    .project-form-card {
        padding: 25px;
    }

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

    .form-actions {
        flex-direction: column;
    }

}
/* =========================================
   My Projects
   ========================================= */

.projects-page {

    min-height: calc(100vh - 72px);

    padding: 60px 7%;

    background: #f8fafc;

}


.projects-header {

    max-width: 1100px;

    margin: 0 auto 35px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.projects-header h1 {

    font-size: 38px;

    color: #111827;

    margin: 12px 0 8px;

}


.projects-header p {

    color: #6b7280;

}


.project-list-card {

    max-width: 1100px;

    margin: 0 auto 20px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 28px;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.04);

}


.project-card-main {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

}


.project-card-main h2 {

    color: #111827;

    margin: 10px 0 8px;

}


.project-card-main p {

    color: #6b7280;

    line-height: 1.6;

}


.project-open {

    background: #dcfce7;

    color: #15803d;

    padding: 6px 14px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

}


.project-details {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 25px;

    padding: 20px 0;

    border-top:
        1px solid #e5e7eb;

    border-bottom:
        1px solid #e5e7eb;

}


.project-details div {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.project-details small {

    color: #9ca3af;

}


.project-details strong {

    color: #111827;

}


.project-skills {

    margin-top: 18px;

    color: #4b5563;

}


.project-card-actions {

    display: flex;

    gap: 12px;

    margin-top: 22px;

}


.delete-btn {

    background: #fee2e2;

    color: #b91c1c;

    border: none;

    padding: 10px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;

}


.delete-btn:hover {

    background: #fecaca;

}


.empty-projects {

    max-width: 700px;

    margin: 60px auto;

    padding: 60px;

    background: white;

    border-radius: 16px;

    text-align: center;

    border: 1px solid #e5e7eb;

}


.empty-icon {

    font-size: 50px;

    margin-bottom: 15px;

}


.empty-projects h2 {

    color: #111827;

}


.empty-projects p {

    color: #6b7280;

    margin-bottom: 25px;

}


@media (max-width: 800px) {

    .projects-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }


    .project-details {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 550px) {

    .project-card-main {

        flex-direction: column;

    }


    .project-details {

        grid-template-columns: 1fr;

    }

}