/* Custom CSS for PoL Data Management Hub */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4a4a4a;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6a47a8;
}

/* Hero Section Animations */

/* Ensure text content is above the overlay */
.hero-background .container {
    position: relative;
    z-index: 2;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Base Styles (will be overridden by Tailwind and dark mode) */
body {
    font-family: 'Inter', sans-serif;
}

/* Resource Card Styles */
.resource-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover {
    box-shadow: 0 10px 20px rgba(106, 71, 168, 0.2);
}

/* Tool Item Styles within cards */
.tool-item {
    transition: all 0.2s ease-in-out;
}

/* Slider container for the nested slider */
.slider-wrapper-outer {
    overflow: hidden;
    position: relative;
    padding: 0 30px;
}

.slider-wrapper {
    will-change: transform;
}

.slider-card-item {
    flex-shrink: 0;
    width: 200px;
    background-color: #f0f4f7;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 16px; /* Added margin for gap */
}

.dark .slider-card-item {
    background-color: #3a3a3a;
}

.dark .slider-card-item:hover {
    background-color: #4a4a4a;
}

/* Nested slider navigation buttons */
.nested-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6a47a8;
    color: white;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.nested-slider-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.nested-slider-nav.left {
    left: 0;
}

.nested-slider-nav.right {
    right: 0;
}

.nested-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Modal base styles */
.modal-wrapper {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content-container {
    /* Remove width and height to let inner content define size */
    /* width: 100%;
    height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: Add padding to prevent content from touching edges */
    padding: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-link {
    @apply text-gray-800 dark:text-gray-200 hover:text-secondary-violet transition-colors duration-200;
  }
  .btn-glass {
    @apply py-3 px-6 rounded-full font-bold shadow-md bg-opacity-90 backdrop-blur-lg transition-transform transform hover:scale-105;
  }
  .btn-outline-glass {
    @apply py-3 px-6 rounded-full font-bold border-2 shadow-md transition-transform transform hover:scale-105;
  }  