/* Beautiful Modern Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(115, 128, 90, 0.03) 0%, rgba(168, 108, 44, 0.03) 100%);
    border-radius: 10px;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #73805a, #a86c2c, transparent);
}

.section-header h4 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 1rem;
    text-transform: capitalize;
    font-family: 'Ubuntu', sans-serif;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.section-header h4::before {
    content: '●';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #73805a;
    font-size: 0.5em;
}

.section-header h4::after {
    content: '●';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #a86c2c;
    font-size: 0.5em;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 300;
    position: relative;
}

/* Beautiful decorative line under text */
.section-header::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #73805a, #a86c2c, #73805a);
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(115, 128, 90, 0.2);
}

/* Left-aligned variant */
.section-header.text-left {
    text-align: left;
    background: linear-gradient(135deg, rgba(115, 128, 90, 0.05) 0%, transparent 70%);
}

.section-header.text-left::after {
    left: 0;
    transform: none;
    width: 100px;
}

.section-header.text-left p {
    margin-left: 0;
    text-align: left;
    max-width: 600px;
}

/* Dark background sections */
.dark-bg .section-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.dark-bg .section-header::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(168, 108, 44, 0.7), transparent);
}

.dark-bg .section-header h4 {
    color: #fff;
}

.dark-bg .section-header h4::before,
.dark-bg .section-header h4::after {
    color: #a86c2c;
}

.dark-bg .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.dark-bg .section-header::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), #a86c2c, rgba(255, 255, 255, 0.3));
}

/* Hover effects */
.section-header:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(115, 128, 90, 0.15);
}

.section-header:hover::after {
    width: 140px;
    transition: width 0.3s ease;
}

.section-header:hover h4 {
    color: #ec9e9e;
    transition: color 0.3s ease;
}

/* Special styling for different sections */
.services-section .section-header {
    background: linear-gradient(135deg, rgba(45, 101, 79, 0.05) 0%, rgba(115, 128, 90, 0.05) 100%);
}

.products-section .section-header {
    background: linear-gradient(135deg, rgba(168, 108, 44, 0.05) 0%, rgba(218, 139, 56, 0.05) 100%);
}

.gallery-section .section-header {
    background: linear-gradient(135deg, rgba(115, 128, 90, 0.08) 0%, transparent 100%);
}

.team-section .section-header {
    background: linear-gradient(135deg, rgba(95, 4, 4, 0.05) 0%, rgba(115, 128, 90, 0.05) 100%);
}

.team-section .section-header h4 {
    color: #73805a;
}

/* Animation for entrance */
.section-header.fadein {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .section-header {
        padding: 1.5rem 1rem;
        margin-bottom: 3rem;
    }

    .section-header h4 {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }

    .section-header h4::before,
    .section-header h4::after {
        display: none;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .section-header::after {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .section-header h4 {
        font-size: 1.9rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 1rem 0.5rem;
    }
}

/* Additional beautiful effects */
.section-header h4 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-header p {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
