/* Supplemental styles — primary styling handled by Tailwind CSS CDN */

/* ---- Custom Cursor ---- */
#cursor,
#cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

#cursor {
    width: 8px;
    height: 8px;
    background: #F5F3FF;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

#cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(245, 243, 255, 0.35);
    z-index: 9998;
    transition: width 0.28s ease, height 0.28s ease, border-color 0.28s ease;
}

body.cursor-hover #cursor {
    width: 16px;
    height: 16px;
    background: #8B5CF6;
}

body.cursor-hover #cursor-follower {
    width: 54px;
    height: 54px;
    border-color: rgba(139, 92, 246, 0.5);
}

/* Hide cursor elements on touch devices */
@media (hover: none) {
    #cursor,
    #cursor-follower {
        display: none;
    }
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: #8B5CF6;
    z-index: 10000;
    width: 0%;
    transition: width 0.06s linear;
}

/* ---- Scroll Reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.39, 0.575, 0.565, 1),
                transform 0.85s cubic-bezier(0.39, 0.575, 0.565, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
    /* Remove transform transition after reveal so magnetic/tilt can take over */
    transition: opacity 0.85s cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* ---- Magnetic Element ---- */
[data-magnetic] {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* ---- Project Row Tilt ---- */
.project-row {
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), background 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---- Active Nav Link ---- */
nav a.nav-active {
    color: #8B5CF6;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #0D0A14;
}
::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}

/* ---- Text Selection ---- */
::selection {
    background: #8B5CF6;
    color: #F5F3FF;
}

/* ================================================================
   CTA BUTTONS
   ================================================================ */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00D4FF, #00FFB2);
    color: #050B14;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.cta-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.cta-secondary:hover {
    border-color: rgba(0, 212, 255, 0.9);
    background: rgba(0, 212, 255, 0.12);
    transform: translateY(-2px);
}
.cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5B7FA6;
    border: 1px solid rgba(91, 127, 166, 0.2);
    background: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
.cta-ghost:hover { color: #E8F4FD; border-color: rgba(91, 127, 166, 0.5); }

/* ================================================================
   INLINE CHIP (About links)
   ================================================================ */
.inline-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #5B7FA6;
    border: 1px solid rgba(91, 127, 166, 0.2);
    background: rgba(91, 127, 166, 0.05);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.inline-chip:hover {
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.06);
}

/* ================================================================
   SKILL GROUPS
   ================================================================ */
.skill-group {
    padding: 1.5rem;
    border: 1px solid rgba(91, 127, 166, 0.12);
    background: rgba(10, 22, 40, 0.5);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-group:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.04);
}
.skill-group-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5B7FA6;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(91, 127, 166, 0.12);
}
.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-pill {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #5B7FA6;
    background: rgba(91, 127, 166, 0.08);
    border: 1px solid rgba(91, 127, 166, 0.15);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.skill-pill:hover { color: #E8F4FD; background: rgba(91, 127, 166, 0.15); }
.skill-pill.primary {
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.07);
    border-color: rgba(0, 212, 255, 0.25);
}
.skill-pill.primary:hover {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.5);
}

/* ================================================================
   PROJECT CARDS
   ================================================================ */
.project-card {
    border: 1px solid rgba(91, 127, 166, 0.12);
    background: rgba(10, 22, 40, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.07), inset 0 0 30px rgba(0, 212, 255, 0.02);
    transform: translateY(-4px);
}
.project-card-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.project-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(0, 212, 255, 0.35);
    letter-spacing: 0.08em;
}
.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E8F4FD;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.project-desc {
    font-size: 0.875rem;
    color: #5B7FA6;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}
.tech-tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5B7FA6;
    background: rgba(91, 127, 166, 0.08);
    border: 1px solid rgba(91, 127, 166, 0.14);
}
.tech-tag.featured {
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.07);
    border-color: rgba(0, 212, 255, 0.22);
}
.project-link-btn {
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #00D4FF;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.project-link-btn:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-1px);
}
.project-link-btn.ghost {
    background: transparent;
    border-color: rgba(91, 127, 166, 0.25);
    color: #5B7FA6;
}
.project-link-btn.ghost:hover {
    border-color: rgba(91, 127, 166, 0.6);
    color: #E8F4FD;
    background: rgba(91, 127, 166, 0.08);
}

/* ================================================================
   TEACHING SECTION
   ================================================================ */
.teaching-section {
    background: linear-gradient(180deg, #050B14 0%, #030a0f 40%, #050B14 100%);
    border-top: 1px solid rgba(0, 255, 178, 0.1);
    border-bottom: 1px solid rgba(0, 255, 178, 0.1);
    position: relative;
}
.teaching-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 255, 178, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.teaching-header { position: relative; }
.teaching-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00FFB2;
    background: rgba(0, 255, 178, 0.08);
    border: 1px solid rgba(0, 255, 178, 0.3);
}

/* ================================================================
   EDU STAT CARDS
   ================================================================ */
.edu-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(0, 255, 178, 0.12);
    background: rgba(0, 255, 178, 0.03);
    border-radius: 10px;
    gap: 6px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.edu-stat-card:hover {
    border-color: rgba(0, 255, 178, 0.3);
    background: rgba(0, 255, 178, 0.06);
}
.edu-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(90deg, #00FFB2, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.edu-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #5B7FA6;
    font-weight: 600;
}

/* ================================================================
   EDU CTA BUTTON
   ================================================================ */
.edu-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00FFB2, #00D4FF);
    color: #050B14;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.edu-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 255, 178, 0.3);
}
