
/* Critical CSS for above-the-fold content */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Navbar Styles */
nav {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #e94560;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #e94560;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e94560;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: white;
    padding: 0px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Categories */
.categories {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.categories h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a2a6c;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.categories a {
    padding: 15px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.categories a i {
    font-size: 16px;
}

.categories a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #218838, #1ea080);
}

.categories a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.categories a:hover::before {
    left: 100%;
}

/* Category specific colors */
.category-link[data-category="Productivity"] { background: linear-gradient(135deg, #007bff, #0056b3); }
.category-link[data-category="Marketing"] { background: linear-gradient(135deg, #fd7e14, #e55a00); }
.category-link[data-category="Design"] { background: linear-gradient(135deg, #6f42c1, #5a32a3); }
.category-link[data-category="AI Art"] { background: linear-gradient(135deg, #e94560, #c13651); }
.category-link[data-category="Web Development"] { background: linear-gradient(135deg, #20c997, #1ea080); }
.category-link[data-category="Writing"] { background: linear-gradient(135deg, #17a2b8, #138496); }
.category-link[data-category="Education"] { background: linear-gradient(135deg, #28a745, #20c997); }
.category-link[data-category="Data Analysis"] { background: linear-gradient(135deg, #6c757d, #495057); }
.category-link[data-category="Automation"] { background: linear-gradient(135deg, #6610f2, #520dc2); }
.category-link[data-category="Cybersecurity"] { background: linear-gradient(135deg, #dc3545, #c82333); }

/* View All Categories special styling */
.category-link.view-all {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50) !important;
    border: 2px solid #e94560;
    font-weight: 600;
}

.category-link.view-all:hover {
    background: linear-gradient(135deg, #e94560, #c13651) !important;
    border-color: #1a2a6c;
}

/* Search & Filters */
.search-section {
    padding: 40px 0;
    background-color: white;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

form input, form select, form button {
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

form input {
    flex: 1;
    min-width: 250px;
}

form button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

form button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* Tools Grid */
.tools-section {
    padding: 40px 0 60px;
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a2a6c;
    font-size: 2.2rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.tool-box {
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background-color: white;
}

.tool-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.tool-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tool-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #1a2a6c;
}

.tool-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
    flex-grow: 1;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.tool-tags {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.tool-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-actions button, .tool-actions a {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-actions a {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.tool-actions a:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.tool-actions button {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.tool-actions button:hover {
    background: linear-gradient(135deg, #218838, #1ea080);
}

.pricing-label {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
}

.Free { background-color: #28a745; }
.Premium { background-color: #dc3545; }
.Freemium { background-color: #ffc107; color: black; }

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #1a2a6c;
    border: 1px solid #dee2e6;
}

.pagination a:hover {
    background-color: #e94560;
    color: white;
    border-color: #e94560;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a2a6c;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .tool-box {
        width: 100%;
        max-width: 350px;
    }
    
    /* Responsive grid adjustments */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    /* How It Works section responsive */
    #how-it-works div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* About section responsive */
    #about div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Featured tools responsive */
    #featured-tools div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* FAQ responsive */
    .faq-item h4 {
        font-size: 1rem !important;
        padding: 15px !important;
    }
    
    .faq-answer {
        padding: 15px !important;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}
