/* =========================================
   pitchdetectors Main Styles
   ========================================= */

:root {
    /* Core Brand Colors */
    --dark-blue: #1b1c1e;        /* Almost black charcoal for headings, hero background */
    --mid-blue: #2c2f33;         /* Graphite / dark gray for cards, nav, containers */
    --teal: #00d4aa;             /* Bright tech-green / accent highlights, icons */
    --accent: #f59e0b;           /* Warm, energetic CTA / buttons / stats */

    /* Backgrounds */
    --light-bg: #f0f2f5;         /* Soft light gray for section backgrounds */
    --white: #ffffff;            /* Clean background for cards / containers */

    /* Borders & Text */
    --border-color: #d1d5db;     /* Subtle divider / card borders */
    --text-dark: #111111;        /* Very dark text for readability */
    --text-muted: #6e6e73;       /* Muted gray for secondary text, captions */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1b1c1e, #2c2f33);  /* Dark hero / section gradient */
    --gradient-accent: linear-gradient(135deg, #f59e0b, #1b1c1e);  /* Techy highlight gradient */

    /* Shadows */
    --shadow-sm: 0 2px 6px #0000007a;
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 0px 3px rgba(0, 0, 0, 0.24);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}


* {
    box-sizing: border-box;
}

body {
    font-family:sans-serif !important;
    background: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.main-nav {
    background: var(--accent) !important;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.main-nav .navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white) !important;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 10px !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
    color: var(--dark-blue) !important;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav .dropdown-menu {
    background: var(--mid-blue);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.main-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.main-nav .dropdown-item:hover {
    background: var(--teal);
    color: var(--white);
}

.main-nav .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.search-nav {
    border: none;
    border-radius: 25px 0 0 25px !important;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
}

.search-nav:focus {
    box-shadow: none;
    background: var(--white);
}

.btn-search {
    background: var(--accent);
    border: none;
    border-radius: 0 25px 25px 0 !important;
    padding: 8px 16px;
    color: var(--dark-blue);
    font-weight: 600;
}

.btn-search:hover {
    background: #f5e085;
    color: var(--dark-blue);
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-primary);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.10rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Search Bar ===== */
.hero-search {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    font-size: 1.25rem;
    color: var(--mid-blue);
    margin-left: 16px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--mid-blue);
    transform: scale(1.02);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--light-bg);
}

.search-result-item i {
    font-size: 1.5rem;
    color: var(--teal);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 106, 103, 0.1);
    border-radius: var(--radius-sm);
}

.search-result-item strong {
    display: block;
    color: var(--dark-blue);
}

.search-result-item small {
    color: var(--text-muted);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.category-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
    color: var(--text-dark);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon i {
    font-size: 2rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tool-count {
    display: inline-block;
    background: var(--accent);
    color: var(--dark-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== Popular Tools Section ===== */
.popular-tools-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.popular-tool-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.popular-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.popular-tool-card i {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 16px;
    display: block;
}

.popular-tool-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.popular-tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== Features Section ===== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 106, 103, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item .feature-icon i {
    font-size: 1.5rem;
    color: var(--teal);
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.features-image img {
    border-radius: var(--radius-xl);
}

/* ===== Footer ===== */
.main-footer {
    background: var(--gradient-primary);
    color: var(--white);
    margin-top: 0;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--teal);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright, .made-with {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

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

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        text-align: center;
    }

    .search-btn {
        width: 100%;
        margin-top: 8px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .categories-section,
    .popular-tools-section,
    .features-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
