/* Index Page Specific Styles */

/* Company logos styling */
.company-logos {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(115, 251, 211, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(115, 251, 211, 0.1), rgba(138, 126, 252, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

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

.logo-container:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(115, 251, 211, 0.5);
    box-shadow: 0 10px 30px rgba(115, 251, 211, 0.2);
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
}

.logo-container:hover .company-logo {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(160deg);
    opacity: 1;
    transform: scale(1.1);
}

.amazon-logo {
    filter: none !important;
    opacity: 0.9 !important;
    background: transparent !important;
}

.logo-container:hover .amazon-logo {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.1);
    background: transparent !important;
}

.logo-text {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    font-weight: 600;
    color: #ffffff;
    position: relative;
    z-index: 2;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.logo-container:hover .logo-text {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(115, 251, 211, 0.5);
}

/* Fun card styling */
.fun-card {
    background: linear-gradient(135deg, rgba(115, 251, 211, 0.15), rgba(138, 126, 252, 0.15));
    border: 2px solid rgba(115, 251, 211, 0.5);
    position: relative;
    overflow: hidden;
}

.fun-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(115, 251, 211, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.fun-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 20px rgba(115, 251, 211, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.fun-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(115, 251, 211, 0.3);
    border-color: rgba(115, 251, 211, 0.8);
}

.fun-card:hover .fun-text {
    text-shadow: 0 0 30px rgba(115, 251, 211, 0.9);
    transform: scale(1.1);
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Services Grid Styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(115, 251, 211, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(115, 251, 211, 0.1), rgba(138, 126, 252, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

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

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(115, 251, 211, 0.5);
    box-shadow: 0 15px 40px rgba(115, 251, 211, 0.2);
}

.service-icon {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(115, 251, 211, 0.1);
    border: 1px solid rgba(115, 251, 211, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
}

.service-card p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    margin: 0;
}

.service-card:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(115, 251, 211, 0.5);
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

/* CTA styling */
.cta {
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Responsive adjustments for company logos */
@media (max-width: 768px) {
    .company-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .logo-container {
        padding: 1.5rem;
        height: 100px;
    }
    
    .company-logo {
        width: 70px;
        height: 70px;
        padding: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .service-card {
        height: 250px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .company-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 0.25rem;
    }
    
    .logo-container {
        padding: 1rem;
        height: 80px;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
}
