/* Content Loader Styles for NeuroLS */

#main-content {
    transition: opacity 0.3s ease-in-out;
}

.service-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.1), 0 10px 10px -5px rgba(96, 165, 250, 0.07);
}

/* Back button styling */
.back-button {
    animation: fadeInDown 0.5s ease forwards;
    position: fixed !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 1000 !important;
}

/* Ensuring theme toggle stays on top */
.theme-selector {
    position: fixed !important;
    z-index: 1000 !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale-up animation for content */
.content-enter {
    animation: scaleUp 0.4s ease forwards;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service card hover effects */
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Generic Text Handling Classes */
.break-words {
    word-break: break-word;
    hyphens: auto;
}

.text-responsive {
    font-size: clamp(0.9rem, 4vw, 1rem);
}

.heading-responsive {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    h3 {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    p, li {
        font-size: 0.95rem !important;
    }
    
    .mobile-responsive {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Text overflow handling for long words */
    .service-card h3, 
    .container h3,
    .container h2 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Adjust icon position on small screens */
    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure list items with icons wrap properly */
    li.flex.items-center {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    
    li.flex.items-center svg {
        flex-shrink: 0;
        margin-top: 0.25rem;
    }
}

/* Make sure sticky elements work properly */
.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
}

/* Custom scrollbar for content sections */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 46, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
} 