/* Page Header - Modern & Creative Design */
.page-header {
    text-align: center;
    padding: 120px 40px 100px;
    max-width: 100%;
    margin: 0 auto 80px;
    background: none;
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes - larger circles */
.page-header::before {
    content: '';
    position: absolute;
    display: none;
    top: -200px;
    right: -100px;
    width: 400px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 97, 84, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 97, 84, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Accent line above title */
.page-header h1::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6154 0%, #ff8577 100%);
    margin: 0 auto 32px;
    border-radius: 2px;
}

.page-header h1 {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
    color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 20px;
    color: #666;
    font-weight: 400;
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tool count badge */
.tools-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6154;
    margin-bottom: 40px;
    border: 2px solid #ffe8e6;
    box-shadow: 0 4px 16px rgba(255, 97, 84, 0.1);
    position: relative;
    z-index: 1;
}

.tools-count::before {
    content: '✦';
    font-size: 12px;
}

/* Enhanced section titles with category style */
.section-title-m {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.section-subtitle-m {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Add spacing between sections */
.tools-section {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 60px;
    position: relative;
}

.tools-section:first-of-type {
    margin-top: 0;
}

/* All sections white background */

/* Enhanced tool cards */
.tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, #ff6154, #ff8577);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    box-shadow: 0 12px 32px rgba(255, 97, 84, 0.15);
    transform: translateY(-6px);
    border-color: transparent;
}

.tool-card:hover .tool-arrow {
    color: #ff6154;
    transform: translateX(6px);
}

.tool-icon img {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon img {
    transform: scale(1.1);
}

.tool-arrow {
    color: #d1d5db;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 20px 60px;
        margin-bottom: 60px;
    }
    
    .page-header h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .page-header h1::before {
        width: 60px;
        height: 3px;
        margin-bottom: 24px;
    }

    .page-header p {
        font-size: 17px;
        padding: 0 10px;
    }
    
    .tools-count {
        font-size: 13px;
        padding: 8px 20px;
        margin-bottom: 32px;
    }
    
    .section-title-m {
        font-size: 28px;
    }
    
    .section-subtitle-m {
        font-size: 15px;
        margin-bottom: 40px;
    }
    
    .tools-section {
        margin: 60px auto;
        padding: 0 20px;
    }
}