/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A6FA5;
    --primary-dark: #166088;
    --secondary-color: #FF6B6B;
    --accent-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --gray-light: #E9ECEF;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.18);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cta-button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FF8E8E 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #FF5252 0%, var(--secondary-color) 100%);
}

/* Category Section */
.category-section {
    padding: 80px 0;
    background-color: white;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--gray-light);
    border: 2px solid transparent;
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.subcategory-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

.subcategory-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 24px;
}

.subcategory-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.subcategory-btn {
    background: white;
    border: 2px solid var(--gray-light);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subcategory-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.subcategory-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.tool-card {
    position: relative; /* Needed for badge positioning */
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray-light);
}
.tool-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.tool-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--gray-color);
    margin-bottom: 24px;
    line-height: 1.6;
}

.tool-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.why-choose h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Add these styles to your existing style.css */

/* Popular Tools Section (4 items grid) */
.popular-tools {
    padding: 80px 0;
    background: white;
}

.popular-tools h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 50px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tool-highlight {
    background: var(--light-color);
    padding: 30px 25px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tool-highlight:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-highlight i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
}

.tool-highlight h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tool-highlight p {
    color: var(--gray-color);
    line-height: 1.6;
    flex-grow: 1;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faq-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.faq-item p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Section Intro */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Header Responsive Fixes */
.main-header {
    position: relative;
    z-index: 1000;
}

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

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.mobile-menu-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

.mobile-nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Simple Text Links Navigation */
.simple-text-links {
    padding: 1px 1px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin: 15px 0;
}
.quick-links {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
}

.text-link:hover {
    color: #4A6FA5;
}

.text-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4A6FA5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .links-row {
        gap: 40px;
    }
    
    .text-link {
        font-size: 16px;
    }
    .quick-links {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .links-row {
        gap: 30px;
    }
    
    .text-link {
        font-size: 16px;
        padding: 10px 0;
    }
    .quick-links {
        font-size: 18px;
    }
}