:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #3b82f6;
    --background: #ffffff;
    --card-bg: #f9fafb;
    --border: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

[data-theme="dark"] {
    --background: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--card-bg);
}

.mobile-only {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

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

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 1rem 20px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav.show-mobile-menu {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }
}

/* Grid Layout */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tool Page Styles */
.tool-container {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.ad-banner-space {
    width: 100%;
    height: 100px;
    background: #f3f4f6;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border: 1px dashed #d1d5db;
}

.seo-content {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.seo-content h2 {
    margin: 2rem 0 1rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.footer-description {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3b82f6;
    transform: translateX(4px);
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom-left p {
    margin: 0;
    line-height: 1.6;
}

.developer-link {
    color: inherit;
    text-decoration: underline;
    transition: all 0.3s ease;
    cursor: pointer;
}

.developer-link:hover {
    color: #3b82f6;
}

/* Social Icons */
.footer-social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #94a3b8;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Dark Mode Support */
[data-theme="dark"] footer {
    background: #0f172a;
}

[data-theme="light"] footer {
    background: #ffffff;
    color: #1f2937;
    border-top: 1px solid #e5e7eb;
}

[data-theme="light"] .footer-column h4 {
    color: #1f2937;
}

[data-theme="light"] .footer-logo h3 {
    color: #1f2937;
}

[data-theme="light"] .footer-description {
    color: #6b7280;
}

[data-theme="light"] .footer-links a {
    color: #6b7280;
}

[data-theme="light"] .footer-links a:hover {
    color: #2563eb;
}

[data-theme="light"] .footer-bottom {
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

[data-theme="light"] .developer-link:hover {
    color: #2563eb;
}

[data-theme="light"] .social-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #6b7280;
    border-color: transparent;
}

[data-theme="light"] .social-icon:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #2563eb;
    border-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0 0;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
}

/* Accordion Styles */
.faq-section {
    margin-top: 3rem;
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion-icon::before {
    width: 12px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 12px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust based on content */
    padding-bottom: 1.25rem;
}


/* ===== TESTIMONIALS & REVIEWS SECTION ===== */

.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    margin: 3rem 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.testimonials-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-badge .stars {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.rating-badge .rating-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===== MARQUEE CONTAINER & TRACKS ===== */

.marquee-container {
    position: relative;
    width: 100%;
    margin: 3rem 0;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem 0;
    border: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.marquee-track:last-child {
    margin-bottom: 0;
}

/* Fade effect on edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--card-bg), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--card-bg), transparent);
}

/* Track animations */
.track-1 {
    animation-name: scroll-left;
}

.track-2 {
    animation-name: scroll-right;
}

.track-3 {
    animation-name: scroll-left;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== REVIEW CARD STYLES ===== */

.review-card {
    flex: 0 0 auto;
    width: 320px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.review-card.new-review {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid var(--primary);
}

.review-stars {
    font-size: 1rem;
    letter-spacing: 0.15rem;
    color: #fbbf24;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
    flex-grow: 1;
}

.review-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: auto;
}

/* ===== REVIEW FORM STYLES ===== */

.review-form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.review-form-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row input[type="text"] {
    flex: 1;
    min-width: 200px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
    flex-wrap: wrap;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.4;
    filter: grayscale(100%);
}

.star:hover,
.star.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.2);
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.form-success {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #047857;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 2rem;
    }

    .testimonials-header p {
        font-size: 1rem;
    }

    .review-card {
        width: 280px;
    }

    .marquee-container {
        padding: 1.5rem 0;
    }

    .marquee-track {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row input[type="text"] {
        min-width: auto;
    }

    .star-rating {
        justify-content: center;
    }

    .btn-submit {
        width: 100%;
        align-self: stretch;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-header h2 {
        font-size: 1.5rem;
    }

    .review-card {
        width: 260px;
    }

    .review-form-container {
        padding: 1.5rem;
    }

    .rating-badge {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Quick Links Hub Styles */
.quick-links-hub {
    padding: 5rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quick-links-hub h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
}

.quick-links-category h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.quick-links-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.quick-links-list a::before {
    content: '→';
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-links-list a:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* New Navigation Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--background);
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 1001;
    padding: 1rem;
    margin-top: 10px;
}

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

.dropdown-category {
    margin-bottom: 1rem;
}

.dropdown-category:last-child {
    margin-bottom: 0;
}

.dropdown-category h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Categorized Grid Styles */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.category-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

.category-icon {
    font-size: 2rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1.5rem;
        margin-top: 0;
        width: 100%;
        background: transparent;
    }

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

    .dropdown-trigger::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s;
        margin-left: 4px;
    }

    .dropdown.active .dropdown-trigger::after {
        transform: rotate(180deg);
    }
    
    .dropdown-category {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
    }
    
    .dropdown-category:last-child {
        border-bottom: none;
    }
    
    .dropdown-category h4 {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
}

/* Tool Card Hover Enhancement */
.tool-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    border-color: var(--primary);
    background: var(--background);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
        padding: 2rem 0;
    }
    
    .tool-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-icon {
        font-size: 2rem;
    }
    
    .tool-card h3 {
        font-size: 1rem;
    }
    
    .tool-card p {
        font-size: 0.85rem;
    }
    
    .category-section {
        margin-bottom: 3rem;
    }
    
    .category-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .category-header h2 {
        font-size: 1.3rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0 !important;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .tool-card:hover {
        transform: translateY(-3px);
    }
    
    .category-section {
        margin-bottom: 2.5rem;
    }
    
    .category-header {
        margin-bottom: 1.25rem;
        gap: 0.75rem;
    }
    
    .category-header h2 {
        font-size: 1.1rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
    }
}


/* ===== LIVE SEARCH STYLES ===== */
#live-search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

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

.search-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.2rem;
    pointer-events: none;
    color: var(--text-muted);
}

#search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

#search-clear:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

#search-input {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.search-results-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-results-count {
    display: inline-block;
}

.search-results-list {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

.search-result-item:hover {
    background: var(--card-bg);
    color: var(--primary);
}

.search-result-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.search-no-results p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.search-request-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.search-request-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile responsiveness for search */
@media (max-width: 768px) {
    #live-search-container {
        max-width: 100%;
        margin: 1.5rem auto;
    }

    #search-input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    #search-results {
        max-height: 300px;
    }

    .search-result-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .search-result-icon {
        font-size: 1.25rem;
    }

    .search-result-title {
        font-size: 0.9rem;
    }

    .search-result-category {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    #search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 0.875rem;
    }

    #search-results {
        max-height: 250px;
    }

    .search-result-item {
        padding: 0.75rem;
    }
}

/* Scrollbar styling */
#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: transparent;
}

#search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
