/* PARAMA Subsidiaries CSS */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    min-height: 100vh;
}

/* Main section styles */
.subsidiaries-section {
    padding: 80px 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.3rem;
    color: #5a6c7d;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 15px 30px;
    border: 2px solid #e1e8ed;
    border-radius: 50px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #FFD700;
}

.filter-btn.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border-color: #FFD700;
}

/* Logo grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

/* Company cards - Logo focused design */
.logo-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e1e8ed;
    width: 100%;
    max-width: 280px;
    overflow: hidden;
    position: relative;
}

.logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.logo-card:hover::before {
    opacity: 1;
}

.logo-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.logo-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Logo container - The star of the show */
.logo-containersub {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-containersub::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6B6B, #4ECDC4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.logo-card:hover .logo-containersub::after {
    transform: scaleX(1);
}

.logo-containersub img {
    width: 80%;
    height: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

/* Company information section */
.company-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.company-category {
    font-size: 0.85rem;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.company-description {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Visit button */
.visit-btn {
    padding: 12px 28px;
    background: linear-gradient(45deg, #101113, #414141);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.visit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transition: left 0.3s ease;
    z-index: -1;
}

.visit-btn:hover::before {
    left: 0;
}

.visit-btn:hover {
    transform: translateY(2px);
    color: #000;
    box-shadow: 0 8px 25px rgb(255, 241, 164);
    border-color: #FFA500;
}

.visit-btn:active {
    transform: translateY(0);
}

/* Add icon to visit button */
.visit-btn::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.visit-btn:hover::after {
    transform: translateX(4px);
}

/* Responsive design */
@media (max-width: 1400px) {
    .logos-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
    
    .logo-card {
        max-width: 250px;
    }
}

@media (max-width: 1200px) {
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 900px;
    }
    
    .logo-card {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .subsidiaries-section {
        padding: 60px 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .logo-card {
        max-width: 100%;
    }

    .filter-buttons {
        gap: 15px;
        padding: 0 10px;
    }

    .filter-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .company-info {
        padding: 20px;
    }
    
    .company-description {
        font-size: 0.9rem;
    }
    
    .visit-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .logo-containersub {
        height: 160px;
    }
    
    .logos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #FFD700;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced focus styles for accessibility */
.filter-btn:focus,
.visit-btn:focus {
    outline: 3px solid rgba(255, 215, 0, 0.6);
    outline-offset: 2px;
}

.logo-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}