/* FabrinoTech Portfolio Shared Stylesheet */

:root {
    --bg-canvas: #0b0c10;
    --bg-elevated: #0e1017;
    --accent-teal: #15625e;
    --accent-teal-light: #269690;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(21, 98, 94, 0.7);
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-canvas);
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display, .font-tech {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Subtle dot-grid engineering backdrop */
.grid-backdrop {
    background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Glass surfaces */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-card-hover {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.28s ease,
                box-shadow 0.28s ease,
                background-color 0.28s ease;
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 18px 40px -15px rgba(21, 98, 94, 0.38);
}

.glass-nav {
    background: rgba(11, 12, 16, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Tech badge tile inside grouped categories */
.tech-item {
    background: rgba(14, 16, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 98, 94, 0.75);
    background: rgba(21, 98, 94, 0.16);
}

/* Filter tab active state */
.filter-tab[aria-pressed="true"] {
    background: rgba(21, 98, 94, 0.85);
    border-color: #269690;
    color: #ffffff;
    box-shadow: 0 6px 20px -6px rgba(21, 98, 94, 0.55);
}

/* Nav link active indicator */
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 9999px;
    background: #15625e;
    transition: width 0.25s ease;
}

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

/* Subtle orbital ring animation for hero emblem */
@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orbit-ring {
    animation: slow-spin 24s linear infinite;
}

/* Toast notification */
#toast {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#toast.toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

#toast.toast-hidden {
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .orbit-ring {
        animation: none;
    }
    .glass-card-hover:hover,
    .tech-item:hover {
        transform: none;
    }
}
