/* ==================== Expertise Page Styles ==================== */
.expertise-hero {
    padding: 50px 0 30px;
    background-color: #E5E5E8;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, #E5E5E8 100%);
}

#expertise-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 50px;
    line-height: 1.2;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

#expertise-heading .highlight {
    position: relative;
    z-index: 1;
}

#expertise-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    z-index: -1;
    border-radius: 2px;
}

#expertise-heading,
#expertise-heading .highlight {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ==================== Competency Grid Section ==================== */
.competency-grid-section {
    padding: 80px 0;
    background-color: #E5E5E8;
    position: relative;
}

.competency-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.3)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.competency-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.competency-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.competency-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(210,175,58,0.1) 0%, rgba(210,175,58,0) 70%);
    z-index: 0;
    transition: all 0.4s ease;
}

.competency-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.competency-card:hover::before {
    width: 6px;
    background: var(--primary-color);
}

.competency-card:hover::after {
    transform: scale(1.2);
}

.competency-icon {
    width: 70px;
    height: 70px;
    background: rgba(210, 175, 58, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.competency-card:hover .competency-icon {
    background: rgba(210, 175, 58, 0.2);
    transform: rotate(5deg);
}

.competency-icon svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.competency-card:hover .competency-icon svg {
    transform: scale(1.1);
}

.competency-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.competency-content {
    position: relative;
    z-index: 1;
}

.competency-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: left;
    margin: 0;
}

/* ==================== Tools Section ==================== */
.tools-section {
    padding: 40px 0;
    background-color: lightgrey;
    position: relative;
    overflow: hidden;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.3)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.tools-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.section-divider {
    height: 3px;
    width: 80px;
    background: var(--secondary-color);
    margin: 0 auto;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.section-divider::before {
    left: -20px;
}

.section-divider::after {
    right: -20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-category {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.tool-category.animated {
    transform: translateY(0);
    opacity: 1;
}

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

.tool-category-header {
    display: flex;
    align-items: center;
    width: auto;
    height: 75px;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(210, 175, 58, 0.3);
}

.tool-category-header svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
}

.tool-category-header h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 0;
}

.tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.tool-list li:hover {
    transform: translateX(5px);
}

.tool-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: rgba(210, 175, 58, 0.2);
    border-radius: 4px;
}

.tool-list li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .competency-grid {
        gap: 25px;
    }
    
    .competency-card {
        padding: 35px;
    }
    
    .tools-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .expertise-hero {
        padding: 120px 0 60px;
    }
    
    #expertise-heading {
        font-size: 2.5rem;
    }
    
    .competency-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
        gap: 25px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .expertise-hero {
        padding: 60px 0 40px;
    }

    #expertise-heading {
        font-size: 2rem;
    }
    
    .competency-card {
        padding: 30px;
    }
    
    .competency-card h3 {
        font-size: 1.3rem;
    }
    
    .competency-content p {
        font-size: 1rem;
    }
    
    .tool-category {
        padding: 25px;
    }
    
    .tool-list li {
        padding-left: 25px;
        margin-bottom: 12px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .competency-card,
    .tool-category {
        transition: none;
        transform: none !important;
    }
    
    .tool-list li:hover {
        transform: none !important;
    }
}