

.hero-header {
    position: relative;
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-header::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}



.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

.recent-tools {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-tools .category-title {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.recent-tools .tool-card {
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.recent-tools .tool-card::before {
    content: '🔥';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.recent-tools .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .recent-tools .tools-grid {
        grid-template-columns: 1fr;
    }
}
.popular-tools {
    background: rgba(255, 165, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.popular-tools .category-title {
    color: #ff6b35;
}

.popular-tools .tool-card::before {
    content: '🔥';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff6b35;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

.category-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}
.category-back-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.title-gradient {
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.title-accent {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-icon:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 4.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.category {
    margin-bottom: 3rem;
}

.category-title {
    color: white;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

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

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}


.tool-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-header {
        padding: 3rem 1rem 2rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .header-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .header-features {
        gap: 0.5rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tools-container {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
}

/* Enhanced Category Details Section */
#categoryDetails {
    animation: slideInUp 0.5s ease-out;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 2.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.category-back-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.category-back-btn::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;
}

.category-back-btn:hover::before {
    left: 100%;
}

.category-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-back-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

#categoryDetails .category-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: left;
    text-shadow: none;
    font-weight: 700;
}

#categoryDetails .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

#categoryDetails .tool-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

#categoryDetails .tool-card:nth-child(1) { animation-delay: 0.1s; }
#categoryDetails .tool-card:nth-child(2) { animation-delay: 0.2s; }
#categoryDetails .tool-card:nth-child(3) { animation-delay: 0.3s; }
#categoryDetails .tool-card:nth-child(4) { animation-delay: 0.4s; }
#categoryDetails .tool-card:nth-child(5) { animation-delay: 0.5s; }
#categoryDetails .tool-card:nth-child(6) { animation-delay: 0.6s; }
#categoryDetails .tool-card:nth-child(7) { animation-delay: 0.7s; }

#categoryDetails .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

#categoryDetails .tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

#categoryDetails .tool-card:hover::before {
    animation-duration: 1s;
}

#categoryDetails .tool-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

#categoryDetails .tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

#categoryDetails .tool-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.3;
}

#categoryDetails .tool-card p {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

#categoryDetails .tool-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#categoryDetails .tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#categoryDetails .tool-link:hover::before {
    left: 100%;
}

#categoryDetails .tool-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design for Category Details */
@media (max-width: 1024px) {
    #categoryDetails .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    #categoryDetails .category-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #categoryDetails {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .category-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .category-back-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        align-self: flex-start;
    }
    
    #categoryDetails .category-title {
        font-size: 1.8rem;
        text-align: center;
        width: 100%;
    }
    
    .category-info {
        justify-content: center;
        width: 100%;
    }
    
    #categoryDetails .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #categoryDetails .tool-card {
        padding: 2rem;
    }
    
    #categoryDetails .tool-icon {
        font-size: 3.5rem;
    }
    
    #categoryDetails .tool-card h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    #categoryDetails {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    #categoryDetails .category-title {
        font-size: 1.5rem;
    }
    
    #categoryDetails .tool-card {
        padding: 1.5rem;
    }
    
    #categoryDetails .tool-icon {
        font-size: 3rem;
    }
    
    .category-back-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .category-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

