/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0f172a;
}

.logo-icon {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0f172a;
}

.btn-primary {
    background: #0f172a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    background: #0f172a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-description {
    font-size: 1.25rem;
    color: #475569;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 3rem auto 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #475569;
}

/* Form Container */
.form-container {
    max-width: 56rem;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.75rem;
}

.form-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

/* Quality Level Selection */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quality-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quality-btn:hover {
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quality-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: white;
}

.quality-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quality-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

.quality-btn.active .quality-name,
.quality-btn.active .quality-desc {
    color: white;
}

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

/* Budget Input */
.budget-input-wrapper {
    position: relative;
}

.budget-input {
    width: 100%;
    font-size: 2.5rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    outline: none;
    padding: 1rem 0;
    transition: border-color 0.3s;
}

.budget-input:focus {
    border-color: #0f172a;
}

.currency {
    position: absolute;
    right: 0;
    bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #cbd5e1;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-btn {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.category-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.875rem;
    color: #64748b;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: #0f172a;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover:not(:disabled) {
    background: #1e293b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Example Projects */
.example-projects {
    margin-top: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1rem;
}

.project-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

/* Features */
.features {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-top: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.feature-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #475569;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    margin-top: 6rem;
    padding: 3rem 0;
}

.footer-text {
    text-align: center;
    color: #475569;
}

/* Loading and Empty States */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1rem;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .form-container {
        padding: 1.5rem;
    }

    .budget-input,
    .currency {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }
}

