:root {
    --primary-green: #14a800;
    --hero-green: #13544e;
    /* Actually sticking to the gradient used before */
    --text-color: #001e00;
    --hover-green: #108a00;
    --dark-section-bg: #001e00;
    --icon-green: #14a800;
    --font-family: 'Spline Sans', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 18px 0;
    position: relative;
    background: #fff;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -1px;
    color: #000;
    cursor: pointer;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    /* Adjust based on valid logo size relative to nav */
    width: auto;
}

.logo-sub {
    font-size: 13px;
    vertical-align: super;
    margin-left: 2px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5e6d55;
    position: relative;
    padding: 10px 0;
}

.desktop-nav li:hover {
    color: var(--primary-green);
}

.desktop-nav .arrow {
    font-size: 10px;
    margin-top: 2px;
}

/* Dropdowns */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    min-width: 220px;
    z-index: 1001;
    border: 1px solid #eee;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 8px 0;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.dropdown-menu h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    margin-top: 12px;
}

.dropdown-menu h4:first-child {
    margin-top: 0;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-buttons a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login {
    color: #000;
}

.login:hover {
    text-decoration: underline;
}

.signup {
    background-color: var(--primary-green);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    transition: background-color 0.2s;
    font-weight: 600;
}

.signup:hover {
    background-color: var(--hover-green);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 40px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Green Background behind hero content */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Clean gradient to match Upwork brand style green */
    background: radial-gradient(circle at 80% 30%, #44d62c 0%, #14a800 100%);
    /* Design shows a very flat but vibrant green, possibly linear */
    background: #6fda44;
    z-index: -2;
    height: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: center;
    min-height: 550px;
    color: #001e00;
}

.hero-text h1 {
    font-size: 72px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -3px;
    margin-bottom: 30px;
    font-family: 'Spline Sans', sans-serif;
    color: #001e00;
}

.hero-text p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Search Box */
.search-box-container {
    margin-bottom: 40px;
}

.search-tabs {
    display: inline-flex;
    gap: 0;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px;
    border-radius: 24px;
}

.search-tabs button {
    background: transparent;
    border: none;
    color: #001e00;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    transition: 0.2s;
    opacity: 0.7;
}

.search-tabs button.active {
    background: transparent;
    color: #001e00;
    box-shadow: none;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.search-input-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    height: 56px;
    border-radius: 12px;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    margin-right: 10px;
}

.search-btn {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 30px;
    height: 44px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    border-radius: 20px;
}

.search-btn:hover {
    background-color: var(--hover-green);
}

.trusted-by {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #001e00;
    align-items: center;
    opacity: 0.6;
    margin-top: 40px;
}

.trusted-by span {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.5px;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* Peach Blob removed as per user provided image which includes the shape */
.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
}

.floating-badge {
    position: absolute;
    left: 0px;
    top: 80px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 250px;
}

.floating-badge .icon {
    font-size: 20px;
    color: var(--primary-green);
    background: #ccf0c4;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.floating-badge .text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.floating-badge .text span {
    font-size: 12px;
    color: #666;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
}

.categories-section h2 {
    font-size: 40px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: -1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cat-card {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-card:hover {
    background: #f0f0f0;
    color: var(--primary-green);
}

.cat-card .icon {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.cat-card h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--dark-section-bg);
    padding: 80px 0;
    color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.how-it-works h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #9bc795;
    /* Light green tint for text */
    color: #43b929;
    color: #fff;
    margin-right: 20px;
}

.toggle-switch {
    display: flex;
    background: #fff;
    border-radius: 20px;
    padding: 4px;
}

.toggle-switch button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.toggle-switch button.active {
    background: var(--primary-green);
    color: #fff;
}

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

.step-card {
    display: flex;
    flex-direction: column;
}

.step-img-wrapper {
    position: relative;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    height: 240px;
}

.step-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    opacity: 0.8;
}

.step-card:hover .step-img-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.step-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: #c5ffb8;
    color: #001e00;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 18px;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.5;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    display: none;
}

/* Hidden for now */

/* Responsive Mobile */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-text h1 {
        font-size: 56px;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 10px;
    }

    .desktop-nav {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
        color: #000;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
        padding-top: 20px;
    }

    .hero-image-container::before {
        width: 300px;
        height: 300px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

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

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .toggle-switch {
        width: 100%;
    }
}

/* Error styling */
.invalid-feedback {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #dc3545;
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
    background-image: none;
    padding-right: calc(1.5em + .75rem);
}

.form-control-custom.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.email-exists-error {
    margin-top: 4px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}
