:root {
    --primary-color: #10b981;
    /* Green */
    --primary-dark: #059669;
    --secondary-color: #64748b;
    --background: #ffffff;
    /* White bg generally, but Hero is dark */
    --navy-bg: #0f172a;
    /* Dark Blue for Hero */
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    --error: #ef4444;
    --success: #10b981;
    --font-main: 'Inter', sans-serif;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Redesign */
.navbar-container {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-center-links {
    display: flex;
    gap: 2rem;
}

.nav-center-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-center-links a:hover {
    color: var(--primary-color);
}

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

.btn-text {
    font-weight: 500;
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Categories Sub-header */
.navbar-categories {
    border-top: 1px solid #f1f5f9;
    background: #fff;
    padding: 0.8rem 0;
}

.categories-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-item {
    transition: color 0.3s;
}

.category-item:hover {
    color: var(--text-primary);
}

.category-item.fire {
    color: #f97316;
    /* Orange for fire icon items if needed, or just the text */
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
}

/* Hero Section - Dark Navy with Grid */
.hero-section {
    background-color: var(--navy-bg);
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 6rem 1rem;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container {
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    gap: 0.5rem;
}

.search-select {
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary);
    min-width: 150px;
    outline: none;
}

.search-input-hero {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
}

.search-btn-hero {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.tag-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: background 0.3s;
}

.tag-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Services Section */
.services-section {
    padding: 4rem 1rem;
    background: #f8fafc;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    height: 180px;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s;
    cursor: pointer;
}

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

.service-title-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

.detectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Detectives Section */
.detectives-section {
    padding: 4rem 1rem;
    background: #fff;
    text-align: center;
}

.detective-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: shadow 0.3s;
}

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

.detective-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.detective-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.detective-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.detective-rating {
    color: #ef4444;
    /* Red star like in image */
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.detective-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.link-profile {
    color: #a855f7;
    /* Purple link */
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Gradient Section */
.cta-gradient-section {
    background: linear-gradient(135deg, #c084fc, #f472b6, #ef4444);
    /* Purple/Pink/Red gradient */
    padding: 5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-text {
    flex: 1;
    min-width: 300px;
    color: white;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta-white {
    background: white;
    color: #ef4444;
    /* Or dark grey */
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.cta-video-placeholder {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f472b6;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.footer-dark {
    background: #334155;
    color: #94a3b8;
    padding: 4rem 1rem 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #475569;
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-form {
    display: inline;
}

/* Auth Pages adjustments */
.auth-container {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* File Input Customization */
input[type="file"].form-control {
    padding: 0.6rem;
    background: white;
}

input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: #e2e8f0;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: #cbd5e1;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.auth-link {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Navbar Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
    transition: color 0.3s;
}

.dropdown-btn:hover {
    color: var(--primary-color);
}

.dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
}