/* CSS Variables */
:root {
    --dojo-dark: #020817;
    --dojo-card: #0F172A;
    --dojo-accent: #38BDF8;
    --dojo-accent-hover: #0EA5E9;
}

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

::-webkit-scrollbar-track {
    background: var(--dojo-card);
}

::-webkit-scrollbar-thumb {
    background: var(--dojo-accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dojo-accent-hover);
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Title animations */
.animate-title {
    animation: slideInLeft 0.8s ease-out forwards;
}
/* .mb-16.animate-title{
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 0 0 200px;
} */

/* Paper cards */
.paper-card {
    opacity: 0.2;
    width: 80%;
    max-width: 500px;
    height: 180px;
    animation: fadeInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    border-radius: 20px;
    margin: 10px 10px 0px 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* box-shadow: 0 8px 24px rgba(0,255,255,0.3); */
}

.paper-card:hover {
    transform: translateY(-4px);
}

.paper-card > div {
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.paper-card:hover > div {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.flex.items-center.gap-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 10px;
}
/* Link styles */
.text-link {
    color: var(--dojo-accent);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.text-link:hover {
    color: var(--dojo-accent-hover);
}

.text-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--dojo-accent);
    transition: width 0.3s ease;
}

.text-link:hover::after {
    width: 100%;
}

/* Grid animations */
.grid > div:nth-child(1) { animation-delay: 0.1s; }
.grid > div:nth-child(2) { animation-delay: 0.2s; }
.grid > div:nth-child(3) { animation-delay: 0.3s; }
.grid > div:nth-child(4) { animation-delay: 0.4s; }
.grid > div:nth-child(5) { animation-delay: 0.5s; }

/* Media Query for Tablets and Small Screens (Max Width: 768px) */
@media (max-width: 768px) {
    /* Adjusts the grid layout to a single-column format for smaller screens */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 15px;
    }

    /* Makes the paper-card take full width but limits max width to 60% */
    .paper-card {
        width: 100%;
        max-width: 60%;
        height: 180px; /* Ensures consistent height */
    }

    /* Reduces spacing for better compactness */
    .flex.items-center.gap-4 {
        gap: 8px;
        margin: 20px 5px;
    }
}

/* Media Query for Mobile Screens (Max Width: 480px) */
@media (max-width: 480px) {
    /* Decreases title font size for better readability on small screens */
    .animate-title {
        font-size: 1.4rem;
    }

    /* Maintains the same height but reduces border radius for smaller screens */
    .paper-card {
        border-radius: 15px;
    }

    /* Adjusts text-link size for better readability on mobile devices */
    .text-link {
        font-size: 0.9rem;
    }
}

/* Media Query for Short Screens (Max Height: 780px) */
@media (max-height: 780px) {
    /* Ensures a single-column layout for better content fit on shorter screens */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 15px;
    }

    /* Limits card height to prevent overflow on shorter displays */
    .paper-card {
        width: 100%;
        height: 180px;
        max-height: 250px;
    }

    /* Reduces spacing between elements for compact layouts */
    .flex.items-center.gap-4 {
        gap: 8px;
        margin: 20px 5px;
    }
}

/* Media Query for Devices with Both Small Width and Short Height */
@media (max-width: 768px) and (max-height: 780px) {
    /* Applies the same single-column grid for compact screens */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 15px;
    }

    /* Ensures the card maintains width responsiveness with height constraints */
    .paper-card {
        width: 100%;
        max-height: 250px;
    }

    /* Keeps element spacing consistent on smaller screens */
    .flex.items-center.gap-4 {
        gap: 8px;
        margin: 20px 5px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
