/* ============================================================
   VICTOR CRISOSTOMO — Elegant Minimal Portfolio
   Focused. Professional. Clean. Monochrome.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* ——— TOKENS ——— */
:root {
    --bg:       #050505;
    --surface:  #121212;
    --border:   rgba(255,255,255,0.1);
    --accent:   #ffffff;
    --accent-d: #d4d4d8;
    --text:     #f4f4f5;
    --muted:    #a1a1aa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 99px; }

/* ——— CANVAS (particles only, very subtle) ——— */
#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* ——— CURSOR SPOTLIGHT ——— */
.cursor-spotlight {
    position: fixed;
    top: 0; left: 0;
    width: 600px; height: 600px;
    margin-top: -300px; margin-left: -300px;
    background: radial-gradient(circle, rgba(255,255,255,0.035) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

/* ——— NOISE GRAIN ——— */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

/* ——— HIGH CONTRAST TEXT ——— */
.grad {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(255,255,255,0.15);
}

/* ——— GLASS ——— */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 20px;
}

/* ——— SECTION LABEL ——— */
.label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

/* ——— SKILL TAGS ——— */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--accent-d);
    transition: all 0.2s ease;
    cursor: default;
}

.tag:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: var(--accent);
}

/* ——— EXPERIENCE CARD ——— */
.exp-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.exp-card:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
}

.exp-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bg);
    letter-spacing: 0.04em;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ——— DIVIDER ——— */
.sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 56px 0;
}

/* ——— BUTTONS ——— */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.84rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 4px 15px -5px rgba(255,255,255,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(255,255,255,0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* ——— CONTACT ROW ——— */
.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.contact-pill:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ——— MODAL ——— */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.98) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 32px 40px;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }

/* ——— TOAST ——— */
#toast {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 30px -8px rgba(0,0,0,0.5);
    transform: translateY(70px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
    pointer-events: none;
}

#toast.show { transform: translateY(0); opacity: 1; }

/* ——— ANIMATE IN ——— */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}
