/* CopyRight Tuhin Bhuiyan https://tuhin.dev */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

::selection {
    background-color: #000;
    color: #fff;
}

a {
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
}

input,
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#project-modal.hidden {
    display: none;
}

#project-modal:not(.hidden) {
    animation: fadeIn 0.3s ease-in-out;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

img {
    max-width: 100%;
    height: auto;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
}

@media print {

    nav,
    footer {
        display: none;
    }
}

#page-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body::after {
    content: '';
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 12px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}