:root {
    --primary: #10B981;
    /* Green check color */
    --primary-dark: #059669;
    --secondary: #3B82F6;
    /* Blue for trust */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.logo span {
    color: var(--primary);
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

.nav-auth {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-ghost {
    background: transparent;
    color: #fff;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Elements */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    /* Adjust based on navbar height */
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%), url('../img/hero_2.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
}

.stat-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features */
.features {
    padding: 100px 0;
    background: #0f172a;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Services/Pricing Preview */
.services {
    padding: 100px 0;
    background: #111827;
}

.service-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    /* Ensure wrapping on smaller screens */
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
}

.service-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.service-card h3 {
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.price small {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.service-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--primary);
    margin-right: 10px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: #0B0F19;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-auth {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 60px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .how-it-works {
        padding: 60px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .works-with img {
        max-width: 90% !important;
        /* Ensure logo image doesn't overflow */
    }

    .service-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100% !important;
        /* Force full width on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        margin: 20px auto 0;
    }
}

/* Works With Section */
.works-with {
    padding: 60px 0;
    background: var(--bg-dark);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.works-header h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.works-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.logo-item {
    width: 120px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.works-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px dashed var(--primary);
}

.works-footer a:hover {
    border-bottom-style: solid;
}

@media (max-width: 768px) {
    .logos-grid {
        gap: 20px;
        justify-content: space-around;
        padding: 0 10px;
    }

    .logo-item {
        width: calc(33.33% - 20px);
        height: 50px;
    }

    .works-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-item {
        width: calc(50% - 20px);
    }
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Background decoration for testimonials (optional) */
.testimonials::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.stars {
    color: #FBBF24;
    /* Amber/Yellow for stars */
    margin-bottom: 20px;
    font-size: 14px;
}

.quote {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes user info to bottom */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.details h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: #fff;
    font-weight: 600;
}

.details span {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

/* Search Modal */
/* Search Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    /* Darker dimmer */
    backdrop-filter: blur(4px);
    z-index: 9999;
    /* Ensure highest z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center by default */
    opacity: 0;
    visibility: hidden;
    /* Use visibility to ensure it doesn't block clicks when hidden */
    transition: all 0.2s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    /* White background */
    width: 100%;
    max-width: 600px;
    /* Constrained width like screenshot */
    max-height: 85vh;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    /* Dark text */
    margin-bottom: 20px;
    text-align: left;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: #4b5563;
    background-color: #f3f4f6;
}

.modal-search-wrapper {
    margin-bottom: 10px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 6px;
    border: 1px solid #0ea5e9;
    /* Light blue border like screenshot */
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    box-shadow: 0 0 0 1px #0ea5e9;
    /* Ring effect */
}

/* Modal Content Area */
.modal-content {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    /* Light border */
    border-radius: 6px;
    background: #f9fafb;
    /* Light gray background for list area */
    margin-top: 10px;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
}

.sticky-header th {
    background: #f3f4f6;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Static Info Row */
.service-info-row td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.service-not-found-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.icon-large {
    font-size: 32px;
    color: #0369a1;
    /* Sky blue */
}

.service-not-found-header h4 {
    margin-bottom: 4px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
}

.service-not-found-header p {
    font-size: 13px;
    color: #374151;
    /* Dark gray */
    margin-bottom: 12px;
    line-height: 1.4;
}

.action-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #0369a1;
    /* Sky border */
    background: #ffffff;
    color: #0369a1;
    /* Sky text */
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: #f0f9ff;
}

/* Service Items */
.service-row {
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.1s;
}

.service-row:hover {
    background: #f3f4f6;
}

.service-row td {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.service-item span {
    font-weight: 500;
    font-size: 15px;
    color: #374151;
    /* Dark gray text */
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
        /* Bottom sheet on mobile */
    }

    .modal-container {
        max-height: 80vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-container {
        transform: translateY(0);
    }
}