<?php $pageTitle = "Our Partners - Sigma Healthcare"; ?>
<?php include 'includes/header.php'; ?>

<style>
/* Partners Page Specific Styles */
body {
    padding-top: 0;
}

/* Partners Hero Section */
.partners-hero-section {
    background: url('images/partners/partners-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.partners-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);*/
    z-index: 1;
}

.partners-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
}

.partners-hero-title {
    color: #07427D;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-hero-subtitle {
    color: #1B4763;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.partners-hero-description {
    color: #1B4763;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Our Partners Section */
.partners-section {
    padding: 100px 0;
    background: #ffffff;
    margin-top: -100px;
    position: relative;
    z-index: 3;
}

.partners-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.partners-title {
    color: #07427D;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.partners-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.partners-grid {
    max-width: 800px;
    margin: 0 auto;
}

.partners-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.partner-card {
    background: #121C2F;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
    width: 350px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #FE4600;
    cursor: pointer;
    position: relative;
}

.partner-card:hover {
    background: rgba(7, 66, 125, 0.05);
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-color: rgba(254, 70, 0, 0.3);
}

.partner-card:hover .partner-name {
    color: #07427D;
}

.partner-card:hover .partner-description {
    color: #333;
}

.partner-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
}

.partner-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.partner-website {
    color: #FE4600;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(254, 70, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
    display: inline-block;
    z-index: 10;
    position: relative;
}

.partner-website:hover {
    background: #FE4600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 70, 0, 0.3);
    text-decoration: none;
}

.partner-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
    font-style: italic;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-description {
    color: #666;
}

/* Animation Classes */
.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

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

.fade-in-stagger {
    animation: fadeInStagger 0.6s ease-out;
}

@keyframes fadeInStagger {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Add staggered delays for cards */
.partner-card:nth-child(1) { animation-delay: 0.2s; }
.partner-card:nth-child(2) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .partners-hero-title {
        font-size: 3.5rem;
    }
    
    .partners-grid {
        max-width: 700px;
    }
    
    .partner-card {
        width: 320px;
        min-height: 200px;
        padding: 40px 35px;
    }
}

@media (max-width: 992px) {
    .partners-hero-title {
        font-size: 3rem;
    }
    
    .partners-hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .partners-row {
        gap: 30px;
    }
    
    .partner-card {
        width: 300px;
        min-height: 180px;
        padding: 35px 30px;
    }
    
    .partner-logo {
        max-height: 70px;
        max-width: 180px;
    }

    .partner-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .partners-hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .partners-hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .partners-hero-description {
        text-align: center;
    }
    
    .partners-hero-content {
        text-align: center;
    }
    
    .partners-hero-section {
        min-height: 70vh;
        padding: 100px 0 60px; /* Increased top padding */
        margin-top: 15px; /* Added margin for spacing */
    }
    
    .partners-section {
        padding: 80px 0;
        margin-top: -80px;
    }
    
    .partners-title {
        font-size: 2rem;
    }
    
    .partners-row {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .partner-card {
        width: 280px;
        min-height: 160px;
        padding: 30px 25px;
    }
    
    .partner-logo {
        max-height: 60px;
        max-width: 160px;
    }

    .partner-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .partners-hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .partners-hero-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .partners-hero-section {
        padding: 90px 0 50px; /* Adjusted padding for mobile */
        margin-top: 15px; /* Added margin for mobile spacing */
    }

    .partner-card {
        width: 90%;
        max-width: 320px;
        min-height: 140px;
        padding: 25px 20px;
    }

    .partner-name {
        font-size: 1rem;
    }

    .partner-website {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 375px) {
    .partners-hero-section {
        min-height: 60vh;
        padding: 100px 0 40px; /* Increased top padding */
        margin-top: 15px; /* Margin for smaller devices */
    }
    
    .partners-hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .partners-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .partners-hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
        br {
            display: none;
        }
    }
    
    .partners-section {
        padding: 60px 0;
        margin-top: -60px;
    }
    
    .partners-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .partner-card {
        width: 95%;
        min-height: 120px;
        padding: 20px 15px;
    }
    
    .partner-logo {
        max-height: 50px;
        max-width: 140px;
    }

    .partner-name {
        font-size: 0.9rem;
    }

    .partner-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .partners-hero-title {
        font-size: 1.6rem;
    }
    
    .partners-hero-description {
        font-size: 0.8rem;
    }
    
    .partners-title {
        font-size: 1.3rem;
    }
    
    .partner-card {
        min-height: 110px;
        width: 98%;
    }
    
    .partner-logo {
        max-height: 45px;
        max-width: 120px;
    }

    .partner-name {
        font-size: 0.85rem;
    }
}
</style>

<!-- Partners Hero Section -->
<section class="partners-hero-section">
    <div class="container">
        <div class="row">
            <div class="col-lg-6">
                <div class="partners-hero-content slide-in-left">
                    <h1 class="partners-hero-title">OUR PARTNERS</h1>
                    <p class="partners-hero-subtitle">TRUSTED HEALTHCARE COLLABORATIONS</p>
                    <p class="partners-hero-description">
                        Building Strong Partnerships With Leading Healthcare Organizations<br>
                        And Medical Institutions To Deliver Excellence In Patient Care
                    </p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Our Partners Section -->
<section class="partners-section">
    <div class="container">
        <div class="partners-section-header slide-in-up">
            <h2 class="partners-title">OUR TRUSTED PARTNERS</h2>
            <p class="partners-subtitle">
                We collaborate with leading healthcare institutions and medical technology companies 
                to provide comprehensive healthcare solutions and advance medical science.
            </p>
        </div>
        
        <div class="partners-grid">
            <!-- Partners Row -->
            <div class="partners-row">
                <!-- CiTest Diagnostic Partner Card -->
                <div class="partner-card fade-in-stagger" data-website="https://www.citestdiagnostics.com/">
                    <img src="images/partners/citest.webp" alt="CiTest Diagnostic" class="partner-logo">
                    <div class="partner-name">CiTest Diagnostic</div>
                    <a href="https://www.citestdiagnostics.com/" target="_blank" class="partner-website" rel="noopener noreferrer">www.citestdiagnostics.com</a>
                    <div class="partner-description">Leading diagnostic solutions provider</div>
                </div>
                
                <!-- Jiangsu Mole Bioscience Partner Card -->
                <div class="partner-card fade-in-stagger" data-website="https://www.molechina.com">
                    <img src="images/partners/mole.png" alt="Jiangsu Mole Bioscience Co. Ltd" class="partner-logo">
                    <div class="partner-name">Jiangsu Mole Bioscience Co. Ltd</div>
                    <a href="https://www.molechina.com" target="_blank" class="partner-website" rel="noopener noreferrer">www.molechina.com</a>
                    <div class="partner-description">Advanced bioscience and laboratory solutions</div>
                </div>
                 <!-- Citotest Scientific Co.,Ltd -->
                <div class="partner-card fade-in-stagger" data-website="https://www.citotest.com/">
                    <img src="images/partners/citotest.PNG" alt="Citotest Scientific Co.Ltd" class="partner-logo">
                    <div class="partner-name">Citotest Scientific Co.Ltd</div>
                    <a href="https://www.citotest.com" target="_blank" class="partner-website" rel="noopener noreferrer">www.citotest.com</a>
                    <div class="partner-description">Manufacturer and Provider for high quality Microscope Slides and Microscope Cover Glass.</div>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
// Add intersection observer for animations
document.addEventListener('DOMContentLoaded', function() {
    const observerOptions = {
        threshold: 0.1,
        rootMargin: '0px 0px -50px 0px'
    };
    
    const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.classList.add('animate');
            }
        });
    }, observerOptions);
    
    // Observe all partner cards
    document.querySelectorAll('.partner-card').forEach(card => {
        observer.observe(card);
    });
});

// FIXED: Proper click handling for partner cards
document.querySelectorAll('.partner-card').forEach(card => {
    // Add smooth hover effects
    card.addEventListener('mouseenter', function() {
        this.style.transform = 'translateY(-15px) scale(1.02)';
    });
    
    card.addEventListener('mouseleave', function() {
        this.style.transform = 'translateY(0) scale(1)';
    });
    
    // FIXED: Handle card clicks to open website
    card.addEventListener('click', function(e) {
        // Don't trigger if clicking on the website link directly
        if (e.target.classList.contains('partner-website')) {
            return;
        }
        
        const websiteUrl = this.getAttribute('data-website');
        if (websiteUrl) {
            window.open(websiteUrl, '_blank', 'noopener,noreferrer');
        }
    });
});

// FIXED: Prevent event bubbling for website links
document.querySelectorAll('.partner-website').forEach(link => {
    link.addEventListener('click', function(e) {
        e.stopPropagation();
        // Let the browser handle the link normally
    });
});

// FIXED: Add fallback click handler for website links
document.querySelectorAll('.partner-website').forEach(link => {
    link.addEventListener('click', function(e) {
        e.preventDefault();
        e.stopPropagation();
        
        const url = this.getAttribute('href');
        if (url) {
            window.open(url, '_blank', 'noopener,noreferrer');
        }
    });
});
</script>

<?php include 'includes/footer.php'; ?>