/* =========================================
   Pitch Detectors Main Styles
   Brand Identity: Neon Wave Emerald, Amber Gold, Studio Obsidian
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    /* Brand Theme Colors (Derived from Logo) */
    --dark-blue: #0b111e;
    --mid-blue: #162032;
    --navy-surface: #101726;
    --teal: #00e599;            /* Signature Neon Emerald Wave */
    --teal-hover: #00fca8;
    --teal-dark: #00b377;
    --teal-glow: rgba(0, 229, 153, 0.28);
    --accent: #f59e0b;          /* Signature Amber / Gold Focal Ring */
    --accent-hover: #d97706;
    --accent-light: #fef3c7;
    --accent-glow: rgba(245, 158, 11, 0.35);
    --cyan: #00e5c9;            /* Logo Concentric Ring & Dot Accents */
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #070b12 0%, #101726 50%, #0d1527 100%);
    --gradient-accent: linear-gradient(135deg, #00e599 0%, #00b875 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-logo: linear-gradient(135deg, #00f5a0 0%, #00d4b8 50%, #f59e0b 100%);
    --gradient-hero: radial-gradient(ellipse at 50% -20%, rgba(0, 229, 153, 0.18) 0%, rgba(11, 17, 30, 0) 70%), linear-gradient(145deg, #05080e 0%, #0b111e 100%);

    /* Shadows & Radii */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 24px rgba(0, 229, 153, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

/* ===== Navigation ===== */
.main-nav {
    background: rgba(11, 17, 30, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 229, 153, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.main-nav .navbar-brand {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.main-nav .navbar-brand:hover {
    transform: translateY(-1px);
}

.brand-logo,
.navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 153, 0.5);
    box-shadow: 0 0 12px rgba(0, 229, 153, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.main-nav .navbar-brand:hover .navbar-logo,
.main-nav .navbar-brand:hover .brand-logo {
    border-color: var(--teal);
    box-shadow: 0 0 16px rgba(0, 229, 153, 0.6);
    transform: rotate(5deg) scale(1.05);
}

.brand-accent,
.text-gradient {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navbar Search Button (Short & Compact Icon) */
.nav-search-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 229, 153, 0.3);
    color: #e2e8f0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.nav-search-btn i {
    color: var(--teal);
    font-size: 1rem;
    line-height: 1;
}

.nav-search-btn:hover {
    background: rgba(0, 229, 153, 0.16);
    border-color: var(--teal);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 229, 153, 0.35);
    transform: translateY(-1px);
}

/* Navbar Language Dropdown Switcher */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 229, 153, 0.3);
    color: #e2e8f0;
    border-radius: 50px;
    padding: 6px 12px;
    height: 38px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.lang-switch-btn i {
    color: var(--teal);
    font-size: 0.95rem;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus,
.lang-dropdown.show .lang-switch-btn {
    background: rgba(0, 229, 153, 0.16);
    border-color: var(--teal);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 229, 153, 0.35);
}

.lang-dropdown .dropdown-menu {
    min-width: 145px;
    background: #0f172a;
    border: 1px solid rgba(0, 229, 153, 0.25);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}

.lang-dropdown .dropdown-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    border-radius: 6px;
    padding: 7px 12px;
    transition: all 0.2s ease;
}

.lang-dropdown .dropdown-item:hover {
    background: rgba(0, 229, 153, 0.15);
    color: #ffffff;
}

.lang-dropdown .dropdown-item.active {
    background: rgba(0, 229, 153, 0.2);
    color: var(--teal);
    font-weight: 700;
}

.main-nav .nav-link {
    color: #e2e8f0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.main-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(0, 229, 153, 0.12);
    box-shadow: 0 0 0 1px rgba(0, 229, 153, 0.25);
    transform: translateY(-2px);
}

.main-nav .nav-link:hover i {
    color: var(--teal);
}

.main-nav .dropdown-menu {
    background: #0f172a;
    border: 1px solid rgba(0, 229, 153, 0.2);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.main-nav .dropdown-item {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    transition: all 0.2s ease;
}

.main-nav .dropdown-item:hover {
    background: rgba(0, 229, 153, 0.12);
    color: var(--teal);
    transform: translateX(4px);
}

.main-nav .dropdown-item i {
    color: var(--teal);
}

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

/* ===== Global Search Modal ===== */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-card {
    background: #0d1424;
    border: 1px solid rgba(0, 229, 153, 0.35);
    border-radius: 18px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 229, 153, 0.18);
    overflow: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 82vh;
}

.search-modal-backdrop.active .search-modal-card {
    transform: translateY(0) scale(1);
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #080c16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-modal-icon {
    color: var(--teal);
    font-size: 1.3rem;
}

.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0 14px;
}

.search-modal-input::placeholder {
    color: #64748b;
}

.search-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.search-modal-tags {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(13, 20, 36, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.search-modal-tags::-webkit-scrollbar {
    display: none;
}

.search-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.search-tag:hover,
.search-tag.active {
    background: rgba(0, 229, 153, 0.15);
    color: var(--teal);
    border-color: rgba(0, 229, 153, 0.4);
}

.search-modal-results {
    padding: 10px 14px;
    overflow-y: auto;
    flex: 1;
    max-height: 390px;
}

.modal-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.18s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.modal-result-item:hover,
.modal-result-item.selected {
    background: rgba(0, 229, 153, 0.12);
    border-color: rgba(0, 229, 153, 0.3);
    color: #ffffff;
    transform: translateX(4px);
}

.modal-result-item i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 229, 153, 0.12);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.modal-result-item:hover i,
.modal-result-item.selected i {
    background: var(--gradient-accent);
    color: #070b12;
}

.modal-result-item .tool-info {
    flex: 1;
    min-width: 0;
}

.modal-result-item .tool-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: #ffffff;
    display: block;
}

.modal-result-item .tool-cat {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.modal-result-arrow {
    color: #64748b;
    font-size: 0.85rem;
    transition: transform 0.2s, color 0.2s;
}

.modal-result-item:hover .modal-result-arrow,
.modal-result-item.selected .modal-result-arrow {
    color: var(--teal);
    transform: translateX(3px);
}

.search-modal-footer {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #080c16;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: #64748b;
}

.search-modal-footer kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    color: #cbd5e1;
}

/* ===== Redesigned Studio Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    padding: 95px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 229, 153, 0.15);
}

.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='%2300e599' 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.7;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 229, 153, 0.08);
    border: 1px solid rgba(0, 229, 153, 0.35);
    border-radius: 30px;
    padding: 7px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(0, 229, 153, 0.15);
}

.badge-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.22rem;
    color: #94a3b8;
    margin-bottom: 34px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-hero-primary {
    background: var(--gradient-accent);
    color: #070b12 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 229, 153, 0.35);
    transition: all 0.25s ease;
    border: none;
}

.btn-hero-primary:hover {
    background: var(--gradient-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
    color: #070b12 !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: rgba(0, 229, 153, 0.15);
    border-color: var(--teal);
    color: var(--teal) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 153, 0.25);
}

.hero-btn-kbd {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-left: 6px;
}

/* Quick Tool Jump Pills */
.hero-quick-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.quick-pill-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 4px;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-pill:hover {
    background: rgba(0, 229, 153, 0.15);
    border-color: var(--teal);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

.hero-stat-card {
    background: rgba(14, 20, 32, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stat-card:hover {
    border-color: rgba(0, 229, 153, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 153, 0.12);
}

.hero-stat-card .stat-icon {
    color: var(--teal);
    font-size: 1.4rem;
    margin-bottom: 6px;
    display: inline-block;
}

.hero-stat-card .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}

.hero-stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 85px 0 95px;
    background: var(--light-bg);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 229, 153, 0.12);
    border: 1px solid rgba(0, 229, 153, 0.3);
    color: #047857;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Bento Category Card */
.category-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 36px rgba(0, 229, 153, 0.14), 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 229, 153, 0.45);
    color: var(--text-dark);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 229, 153, 0.3);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.08) rotate(3deg);
}

.category-icon i {
    font-size: 1.85rem;
    color: #070b12;
}

.tool-count {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.category-card:hover .tool-count {
    background: rgba(0, 229, 153, 0.15);
    color: #047857;
    border-color: rgba(0, 229, 153, 0.4);
}

.category-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

/* Category Quick Links */
.category-quick-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.category-quick-links li {
    margin-bottom: 8px;
}

.category-quick-links a {
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.category-quick-links a:hover {
    color: var(--teal-dark);
    transform: translateX(4px);
}

.category-quick-links a i {
    color: var(--teal-dark);
    font-size: 0.85rem;
}

.category-explore-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--teal-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.category-card:hover .category-explore-link {
    gap: 10px;
}

/* =========================================
   Universal Bento Card Support (.cat-card)
   Ensures complete styling for localized category hubs
   ========================================= */
.cat-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 229, 153, 0.14), 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 229, 153, 0.45);
    color: var(--text-dark);
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-card:hover::before {
    opacity: 1;
}

.cat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cat-icon-box {
    width: 52px;
    height: 52px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 229, 153, 0.3);
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.cat-icon-box i {
    font-size: 1.65rem;
    color: #070b12;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cat-card:hover .cat-badge {
    background: rgba(0, 229, 153, 0.15);
    color: #047857;
    border-color: rgba(0, 229, 153, 0.4);
}

.cat-card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cat-card-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
    flex: 1;
}

.cat-card-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-bottom: 18px;
}

.cat-tool-item {
    display: flex;
    align-items: center;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cat-tool-item i {
    color: var(--teal-dark);
    margin-right: 8px;
    font-size: 0.95rem;
}

.cat-tool-item:hover {
    color: var(--teal-dark);
    transform: translateX(4px);
    text-decoration: none;
}

.cat-card-footer {
    margin-top: auto;
    padding-top: 10px;
}

.cat-explore-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--teal-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-explore-btn i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.cat-explore-btn:hover {
    color: #047857;
    text-decoration: none;
}

.cat-explore-btn:hover i {
    transform: translateX(4px);
}

/* Featured Wide Card */
.cat-card-featured {
    background: var(--white);
    border: 1.5px solid var(--border-color);
}

.featured-tool-pill {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.featured-tool-pill:hover {
    background: #f1f5f9;
    border-color: rgba(0, 229, 153, 0.4);
    color: var(--teal-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== Popular Tools Section ===== */
.popular-tools-section {
    padding: 85px 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.popular-tool-card {
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 26px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.popular-tool-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.popular-tool-card:hover {
    transform: translateY(-6px);
    background: var(--white);
    box-shadow: 0 14px 28px rgba(0, 229, 153, 0.14);
    border-color: rgba(0, 229, 153, 0.45);
    color: var(--text-dark);
}

.popular-tool-card i {
    font-size: 2.4rem;
    color: var(--teal-dark);
    margin: 8px 0 14px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.popular-tool-card:hover i {
    transform: scale(1.15);
    color: var(--accent);
}

.popular-tool-card h4 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

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

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

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

.feature-item .feature-icon {
    width: 58px;
    height: 58px;
    background: rgba(0, 229, 153, 0.12);
    border: 1px solid rgba(0, 229, 153, 0.3);
    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-dark);
}

.feature-text h4 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-dark);
    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);
    box-shadow: var(--shadow-lg);
}

/* ===== Highlight Box (About & Content Pages) ===== */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 229, 153, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(0, 229, 153, 0.3);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 25px 0;
}

.highlight-box h3 {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== Footer ===== */
.main-footer {
    background: #060910;
    border-top: 1px solid rgba(0, 229, 153, 0.15);
    color: #cbd5e1;
    margin-top: 0;
    position: relative;
}

.footer-brand {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 153, 0.4);
    object-fit: cover;
}

.footer-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    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.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-accent);
    color: #070b12;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 229, 153, 0.35);
}

.footer-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--accent);
    letter-spacing: -0.01em;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

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

.copyright, .made-with {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .hero-stat-card .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 70px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1.02rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .categories-section,
    .popular-tools-section,
    .features-section {
        padding: 55px 0;
    }
    .section-title {
        font-size: 1.85rem;
    }
}

/* =========================================
   Universal High-Contrast Typography System
   Ensures WCAG AAA contrast across dark & light containers
   ========================================= */

/* Hero Section Typography */
.hero-section h1,
.hero-section .hero-title {
    color: #ffffff !important;
}

.hero-date {
    color: #94a3b8 !important;
    font-size: 0.88rem;
    margin-bottom: 22px;
    font-weight: 500;
    display: inline-block;
}

.hero-section .text-muted,
.hero-section p.text-muted,
.hero-section small.text-muted {
    color: #94a3b8 !important;
}

/* Bulletproof text-muted: Crisp on light, never dark on dark */
.text-muted {
    color: #475569 !important; /* Crisp slate-600 with 7.3:1 contrast on white */
}

/* Dark containers must NEVER have dark or muted unreadable text */
.bg-dark,
[class*="bg-dark"],
.hero-section,
.result-box,
.dark-box {
    color: #f8fafc;
}

.bg-dark .text-muted,
[class*="bg-dark"] .text-muted,
.hero-section .text-muted,
.result-box .text-muted,
.dark-box .text-muted {
    color: #cbd5e1 !important; /* High-contrast slate-300 with 11:1 contrast on dark */
}

.bg-dark .text-dark,
[class*="bg-dark"] .text-dark,
.hero-section .text-dark,
.result-box .text-dark,
.dark-box .text-dark {
    color: #f8fafc !important; /* Pure light text, never black on dark */
}

.bg-dark .form-label,
[class*="bg-dark"] .form-label,
.bg-dark .form-check-label,
[class*="bg-dark"] .form-check-label {
    color: #f8fafc !important;
}

/* Result Box Typography */
.result-box {
    color: #ffffff !important;
}

.result-box h1,
.result-box h2,
.result-box h3,
.result-box h4,
.result-box .h1,
.result-box .h2,
.result-box .h3,
.result-box .h4 {
    color: #ffffff !important;
}

.result-box p,
.result-box span:not(.text-teal):not(.text-success):not(.text-danger):not(.badge) {
    color: #e2e8f0 !important;
}

/* Result Highlight (Mint green card) Typography */
.result-highlight {
    background: #f0fdf4 !important;
    border: 2px solid #00e599 !important;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    color: #0f172a !important;
}

.result-highlight .result-label,
.result-highlight .text-muted,
.result-highlight .small.text-muted {
    color: #065f46 !important; /* Deep emerald - crisp 8.5:1 contrast on mint */
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.result-highlight .text-dark {
    color: #0f172a !important;
    font-size: 1.05rem;
    font-weight: 700;
}

.result-highlight .result-verification,
.result-highlight .small.text-muted.mt-1 {
    color: #1e293b !important;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Educational Article Lead Typography */
.tool-container .lead,
.tool-container .lead strong,
article .lead,
article .lead strong {
    color: #0f172a !important; /* Crisp slate-900, highly readable */
    font-weight: 500;
    line-height: 1.7;
}

/* Sidebar Typography */
.tools-sidebar .h5,
.tools-sidebar h5,
.sidebar-category p.h5,
.sidebar-category h5 {
    color: #0f172a !important;
    font-weight: 700;
}

.sidebar-links a {
    color: #334155 !important;
    font-weight: 500;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    color: #00b377 !important;
    font-weight: 700;
}
