/* ========================================
   Platforms & Tools Section - Modern Design
   ======================================== */

.phi--platforms-section {
    background: #000000;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 749px) {
    .phi--platforms-section {
        padding: 40px 0 45px;
    }
}

/* Container */
.phi--platforms-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media screen and (min-width: 750px) {
    .phi--platforms-container {
        padding: 0 40px;
    }
}

/* Header Section */
.phi--platforms-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

@media screen and (max-width: 989px) {
    .phi--platforms-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        margin-bottom: 40px;
    }
}

/* Icon/Logo */
.phi--platforms-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.phi--platforms-icon svg {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(22, 224, 168, 0.3));
}

@media screen and (max-width: 989px) {
    .phi--platforms-icon svg {
        width: 80px;
    }
}

.phi--platforms-icon:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* Content Wrapper */
.phi--platforms-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Heading */
.phi--platforms-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Description */
.phi--platforms-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  
}

/* Grid Container */
.phi--platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    animation: fadeIn 1s ease-out 0.3s both;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
    .phi--platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (min-width: 990px) {
    .phi--platforms-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Platform Card */
.phi--platform-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    aspect-ratio: 1.4 / 1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

@media screen and (min-width: 750px) {
    .phi--platform-card {
        border-radius: 16px;
        padding: 30px 20px;
        min-height: 115px;
        aspect-ratio: 1.5 / 1;
    }
}

@media screen and (min-width: 990px) {
    .phi--platform-card {
        padding: 35px 20px;
        min-height: 120px;
        aspect-ratio: 1.6 / 1;
    }
}

/* Card Glow Effect */
.phi--platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(22, 224, 168, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Card Hover State */
.phi--platform-card:hover {
    border-color: #16e0a8;
    background: rgba(22, 224, 168, 0.08);
    transform: translateY(-4px);
    box-shadow: 
        0 6px 20px rgba(22, 224, 168, 0.2),
        0 0 30px rgba(22, 224, 168, 0.15);
}

@media screen and (min-width: 990px) {
    .phi--platform-card:hover {
        transform: translateY(-8px);
        box-shadow: 
            0 8px 24px rgba(22, 224, 168, 0.2),
            0 0 40px rgba(22, 224, 168, 0.15);
    }
}

.phi--platform-card:hover::before {
    opacity: 1;
}

/* Active/Focus State */
.phi--platform-card:active {
    transform: translateY(-4px);
}

/* Logo Container */
.phi--platform-logo {
    position: relative;
    z-index: 1;
    max-width: 90px;
    width: 100%;
    height: 100%;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (min-width: 750px) {
    .phi--platform-logo {
        max-width: 130px;
        max-height: 60px;
    }
}

@media screen and (min-width: 990px) {
    .phi--platform-logo {
        max-width: 180px;
        max-height: 70px;
    }
}

.phi--platform-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: brightness(1) contrast(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.phi--platform-card:hover .phi--platform-logo img {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.05);
}

/* Loading State */
.phi--platforms-grid[data-loading="true"] .phi--platform-card {
    opacity: 0;
    transform: translateY(20px);
}

/* Stagger Animation */
.phi--platform-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.phi--platform-card:nth-child(1) { animation-delay: 0.1s; }
.phi--platform-card:nth-child(2) { animation-delay: 0.15s; }
.phi--platform-card:nth-child(3) { animation-delay: 0.2s; }
.phi--platform-card:nth-child(4) { animation-delay: 0.25s; }
.phi--platform-card:nth-child(5) { animation-delay: 0.3s; }
.phi--platform-card:nth-child(6) { animation-delay: 0.35s; }
.phi--platform-card:nth-child(7) { animation-delay: 0.4s; }
.phi--platform-card:nth-child(8) { animation-delay: 0.45s; }
.phi--platform-card:nth-child(9) { animation-delay: 0.5s; }
.phi--platform-card:nth-child(10) { animation-delay: 0.55s; }
.phi--platform-card:nth-child(11) { animation-delay: 0.6s; }
.phi--platform-card:nth-child(12) { animation-delay: 0.65s; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Accessibility */
.phi--platform-card:focus {
    outline: 2px solid #16e0a8;
    outline-offset: 4px;
}

.phi--platform-card:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .phi--platform-card,
    .phi--platforms-header,
    .phi--platforms-grid,
    .phi--platforms-icon {
        animation: none;
        transition: none;
    }
    
    .phi--platform-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .phi--platform-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .phi--platform-card:hover {
        border-color: #16e0a8;
        border-width: 3px;
    }
}

