/* Products & Services Page Styles */

/* Hero Section */
.ps-hero {
    position: relative;
    height: 60vh;
    background: url('../images/Our_vision.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Section Styles */
.products-section,
.services-section,
.therapeutic-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #ff6b35);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.global-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.detailed-services-section {
    padding: 80px 0;
    background: white;
}

.all-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-item:nth-child(odd) {
    border-top-color: #2c5aa0;
}

.service-item:nth-child(even) {
    border-top-color: #ff6b35;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-item .service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.service-item:nth-child(odd) .service-icon {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
}

.service-item:nth-child(even) .service-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.service-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 90, 160, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

/* Services Section */
.services-section {
    background: #f8fdf8;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.service-tab {
    background: white;
    border: 2px solid #4a7c59;
    color: #4a7c59;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-tab.active,
.service-tab:hover {
    background: #4a7c59;
    color: white;
}

.service-content {
    display: none;
}

.service-content.active {
    display: block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.service-icon i {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    color: white;
    z-index: 2;
}

/* Fallback for missing FontAwesome */
.service-icon i:before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", sans-serif;
    font-weight: 900;
    display: inline-block;
}

/* Specific icon fixes */
.fa-shield-check:before {
    content: "\f2f7";
}

.service-card:nth-child(odd) .service-icon {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
}

.service-card:nth-child(even) .service-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-card li {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* Global Presence */
.global-presence {
    padding: 100px 0;
    background: white;
}

.global-presence h2 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2c5aa0, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.world-map {
    position: relative;
}

.world-map img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) brightness(0.8);
}

.marker {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #e74c3c !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.marker:hover {
    transform: scale(1.3);
    background: #dc2626 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.presence-stats {
    display: grid;
    gap: 30px;
}

.presence-item:nth-child(odd) {
    padding: 30px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.presence-item:nth-child(even) {
    padding: 30px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.presence-item:hover {
    transform: scale(1.05);
}

.presence-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Countries Modal */
.countries-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.countries-modal .modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.countries-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.countries-modal .close-modal:hover {
    color: #ff6b35;
}

.countries-modal h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c5aa0;
    font-size: 1.5rem;
}

.countries-list {
    display: grid;
    gap: 15px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.country-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.country-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.country-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* Features Section - Why Choose Indus Pharma */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.challenges-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.challenges-left .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-subtitle {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.highlight {
    background: linear-gradient(135deg, #2c5aa0, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.challenge-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.challenge-item:nth-child(odd) .challenge-icon {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
}

.challenge-item:nth-child(even) .challenge-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.challenge-content h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.challenge-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.challenges-right {
    position: relative;
}

.challenges-visual {
    position: relative;
    z-index: 1;
}

.main-image {
    position: relative;
    border-radius: 15px;
    overflow: visible;
    z-index: 2;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.floating-stats {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.stat-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.stat-1 {
    top: 15%;
    right: -5%;
    animation-delay: 0s;
}

.stat-2 {
    bottom: 25%;
    left: -5%;
    animation-delay: 1s;
}

.stat-3 {
    top: 55%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.innovation-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.innovation-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex: 1;
    transition: all 0.3s ease;
}

.innovation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.innovation-card i {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.innovation-card h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.innovation-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Products Range Section */
.products-range-section {
    padding: 80px 0;
    background: white;
}

.products-range-section .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.products-range-section .btn-primary,
.products-range-section .btn-secondary {
    font-size: 1.1rem;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .service-tab {
        width: 200px;
        text-align: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .all-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .innovation-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-1, .stat-2, .stat-3 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin: 10px;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .ps-hero {
        height: 50vh;
    }
    
    .products-section,
    .services-section,
    .therapeutic-section {
        padding: 3rem 0;
    }
    
    .service-card,
    .product-card,
    .therapeutic-card {
        padding: 1.5rem;
    }
    
    .therapeutic-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .global-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .global-services-grid {
        grid-template-columns: 1fr;
    }
    
    .all-services-grid {
        grid-template-columns: 1fr;
    }
}