/* entalpia.xyz — Custom styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.4);
    color: white;
}

/* Navigation hide/show */
nav {
    transform: translateY(0);
    transition: transform 0.3s ease;
}
nav.nav-hidden {
    transform: translateY(-100%);
}

/* Active nav link */
.nav-link.active {
    color: white;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Smooth transitions */
a, button, input, textarea {
    transition: all 0.2s ease;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Fade-in animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* Modal content styles */
#modal-body h4 {
    font-size: 0.9375rem;
}
#modal-body ul {
    list-style: disc;
    padding-left: 1.25rem;
}
#modal-body ul li {
    padding-left: 0.25rem;
}
#modal-body a {
    color: #3b82f6;
    text-decoration: none;
}
#modal-body a:hover {
    text-decoration: underline;
}

/* Work card cursor */
.work-card {
    cursor: pointer;
}

/* Print styles */
@media print {
    nav, footer, .fixed {
        display: none !important;
    }
    main {
        padding-top: 0;
    }
}
