/* Font Family */
:root {
    --primary: #93E9BE;
}

html {
    scroll-behavior: smooth;
    background-color: #0B0C10;
}

body {
    background-color: #0B0C10;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0C10;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism */
.glass {
    background: rgba(11, 12, 16, 0.85);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Selection */
::selection {
    background: var(--primary);
    color: #000;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Canvas positioning */
#hero-particles {
    pointer-events: none;
}

/* Active Nav Link */
.nav-link.active {
    background-color: rgba(147, 233, 190, 0.15);
    /* Primary with low opacity */
    color: var(--primary);
    font-weight: 600;
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.toast {
    animation: slideIn 0.3s ease-out forwards;
}

.toast.hiding {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Gallery Modal Styles */
#gallery-modal {
    animation: fadeIn 0.3s ease-out;
}

#gallery-modal.show {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#gallery-main-image {
    animation: slideUp 0.4s ease-out;
}

#gallery-thumbnails img {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

#gallery-thumbnails img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

#gallery-thumbnails img.active {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(147, 233, 190, 0.5);
}

/* Project Card Click Cursor */
.project-card {
    cursor: pointer;
}

.project-card:hover .group-hover\:scale-110 {
    transform: scale(110%) rotate(1deg);
}

/* Custom Scrollbar for Thumbnails */
#gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

#gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

#gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    opacity: 0.8;
}