/* Tools & Calculators Section */
.tool-and-calculator {
    background: linear-gradient(135deg, #0a0e17 0%, #131a2d 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(230, 184, 0, 0.3);
}

.tool-and-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #FFD700, #CFB53B);
}

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

.tool-header {
    text-align: center;
    margin-bottom: 60px;
}

.tool-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tool-title span {
    color: #FFD700;
    position: relative;
}

.tool-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(230, 184, 0, 0.3);
    z-index: -1;
    transform: skew(-15deg);
}

.tool-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.tool-intro {
    background: rgba(19, 26, 45, 0.7);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(230, 184, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #FFD700, #CFB53B);
}

.tool-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.tool-card {
    background: rgba(19, 26, 45, 0.7);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(230, 184, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(230, 184, 0, 0.4);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tool-card-title {
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0;
}

.tool-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(230, 184, 0, 0.1);
    color: #FFD700;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.tool-card-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    flex-grow: 1;
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.tool-card-link i {
    transition: transform 0.3s ease;
}

.tool-card-link:hover {
    color: #fff;
}

.tool-card-link:hover i {
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .tool-title {
        font-size: 2.5rem;
    }
    
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .tool-and-calculator {
        padding: 80px 20px;
    }
    
    .tool-title {
        font-size: 2.2rem;
    }
    
    .tool-subtitle {
        font-size: 1.1rem;
    }
    
    .tool-intro {
        padding: 30px;
    }
    
    .tool-intro p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 2rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 25px;
    }
    
    .tool-card-title {
        font-size: 1.3rem;
    }
    
    .tool-card-desc {
        font-size: 1rem;
    }
}