/* ================================================================
   styles.css — Custom utility classes (plain CSS equivalents)
   Referenced by all HTML pages; supplements Tailwind CDN utilities.
   ================================================================ */

/* --- Layout helpers --- */
html {
    scroll-behavior: smooth;
}

/* --- Custom utility classes --- */

.bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.glass-card {
    background-color: rgba(27, 27, 32, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.glow-primary {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* --- Skill / tech pill tag --- */
.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: #3f465c;
    color: #adb4ce;
    white-space: nowrap;
}

/* --- Active nav link (set by IntersectionObserver in main.js) --- */
.nav-link.active {
    color: #67e8f9; /* cyan-300 */
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.7));
}

/* --- Project card hover glow --- */
.project-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

/* --- Timeline line override for mobile --- */
@media (max-width: 767px) {
    .timeline-line {
        left: 1rem !important;
    }
    .timeline-dot {
        left: 1rem !important;
    }
}

/* --- Achievement highlight card --- */
.achievement-highlight {
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* --- Focus ring — WCAG accessible, never hidden --- */
:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Mobile menu transition --- */
#mobile-menu {
    transition: opacity 0.15s ease;
}
