/* What We Do Page Specific Styles */
.services-hero {
    background: url('../assets/MAFINA/Images/services-hero.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s;
}

/* Intro Section */
.intro-section {
    padding: 6rem 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.world-map {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.world-map img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.dot::after {
    content: attr(data-location);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dot:hover::after {
    opacity: 1;
}

.dot.pulse {
    animation: pulse 2s infinite;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card.scale-hover:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-features {
    margin-top: 1.5rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.service-features i {
    margin-right: 8px;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Products Section */
.products-section {
    padding: 6rem 0;
}

.products-tabs {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 3rem 0;
}

.tab-content.active {
    display: block;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-image {
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-list {
    columns: 2;
    margin: 1.5rem 0;
}

.product-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.product-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.feature-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Case Studies Section */
.case-studies-section {
    padding: 6rem 0;
}

.case-studies-slider {
    position: relative;
    margin-top: 3rem;
}

.case-study {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.case-study.active {
    display: grid;
}

.case-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.case-image:hover img {
    transform: scale(1.05);
}

.case-industry {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-results {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    text-align: center;
}

.result-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-label {
    font-size: 0.9rem;
    color: #666;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-prev, .slider-next {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 51, 102, 0.9)), 
                  url('../assets/MAFINA/mafina-images-pack/img5.jpg') no-repeat center center;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .product-content {
        grid-template-columns: 1fr;
    }
    
    .case-study {
        grid-template-columns: 1fr;
    }
    
    .case-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    .product-list {
        columns: 1;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}