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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #3cff00;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    color: #3cff00;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #00b345;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #3cff00;
    border: 2px solid #3cff00;
}

.btn-secondary:hover {
    background: #3cff00;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #66ea6d 0%, #4ba26f 100%);
    color: white;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #3cff00;
}

.feature-icon i {
    font-size: 48px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Chat Section */
.chat-section {
    padding: 100px 0;
    background: #f8f9fa;
}

#chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

#chat-output {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

#chat-input-area {
    padding: 20px;
    display: flex;
    gap: 15px;
    background: white;
}

#chat-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: #3cff00;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Authentication Pages */
#auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #3cff00;
}

.auth-form button {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: #3cff00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-form button:hover {
    background: #3cff00;
}

.auth-form p {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-form a {
    color: #3cff00;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
#dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#dashboard-container > div {
    background: white;
    margin: 30px 0;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#dashboard-container h2, #dashboard-container h3 {
    color: #333;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

#dashboard-container input, #dashboard-container textarea, #dashboard-container select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#dashboard-container input:focus, #dashboard-container textarea:focus, #dashboard-container select:focus {
    outline: none;
    border-color: #3cff00;
}

.service-item {
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    border-left: 4px solid #3cff00;
}

.service-item h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.service-item p {
    margin: 5px 0;
    color: #666;
}

/* Services Page */
.search-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-container input, .search-container select {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-container input:focus, .search-container select:focus {
    outline: none;
    border-color: #3cff00;
}

.search-container input[type="text"] {
    flex: 2;
}

.search-container select {
    flex: 1;
}

#services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

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

.service-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.service-price {
    background: linear-gradient(135deg, #3cff00, #4ba26f);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.service-category {
    background: #e3f2fd;
    color: #3cff00;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-location {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.service-provider {
    color: #3cff00;
    font-size: 14px;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.service-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #3cff00;
    margin: 15px 0;
}

.service-detail-category {
    background: #e3f2fd;
    color: #3cff00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.service-detail-location {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.service-detail-provider {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.service-detail-provider h4 {
    color: #333;
    margin-bottom: 15px;
}

.service-detail-description {
    margin: 25px 0;
}

.service-detail-description h4 {
    color: #333;
    margin-bottom: 15px;
}

.service-actions {
    text-align: center;
    margin-top: 30px;
}

.service-actions button {
    background: linear-gradient(135deg, #3cff00, #00b327);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.service-actions button:hover {
    transform: translateY(-2px);
}

#loading, #no-results {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 18px;
}

/* AI Search Section */
.ai-search-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.ai-search-section h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.ai-search-section p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

#ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

#ai-chat-output {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

#ai-chat-input-area {
    padding: 20px;
    display: flex;
    gap: 15px;
    background: white;
}

#ai-chat-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#ai-chat-input:focus {
    outline: none;
    border-color: #3cff00;
}

.user-message {
    background: #3cff00;
    color: white;
    padding: 10px 15px;
    border-radius: 18px;
    margin: 10px 0;
    margin-left: 20%;
    text-align: right;
}

.ai-message {
    background: #e9ecef;
    color: #333;
    padding: 10px 15px;
    border-radius: 18px;
    margin: 10px 0;
    margin-right: 20%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}