/* ═══════════════════════════════════════
   THELOCALADMIN — style.css
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    --bg:       #0d0d14;
    --surface:  #111120;
    --surface2: #18182a;
    --border:   rgba(255,255,255,0.07);

    --cyan:     #00e5ff;
    --pink:     #ff4db8;
    --yellow:   #ffe040;
    --green:    #3dff96;
    --purple:   #b06bff;
    --orange:   #ff7b3d;
    --blue:     #4da6ff;

    --text:     #eeeef8;
    --muted:    #7f7f9a;
    --radius:   16px;
    --radius-sm:10px;
    --nav-h:    52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    text-align: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ─── WAVE CANVAS ─── */
#wave-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* ─── AMBIENT ORBS ─── */
.orb {
    position: fixed; border-radius: 50%;
    filter: blur(100px); pointer-events: none; z-index: 1;
    animation: driftOrb 24s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; background: rgba(0,229,255,0.055);   top: -140px; left: -80px;  animation-delay: 0s; }
.orb-2 { width: 360px; height: 360px; background: rgba(255,77,184,0.05);   top: 42%;    right: -130px; animation-delay: -8s; }
.orb-3 { width: 320px; height: 320px; background: rgba(176,107,255,0.045); bottom: -60px; left: 30%;  animation-delay: -16s; }

@keyframes driftOrb {
    0%,100% { transform: translate(0,0); }
    33%      { transform: translate(24px,-16px); }
    66%      { transform: translate(-16px,22px); }
}

/* ─── TOP NAV (resources page) ─── */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(13,13,20,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    transition: all 0.2s ease;
}
.nav-home:hover {
    background: rgba(0,229,255,0.08);
    border-color: rgba(0,229,255,0.3);
    color: var(--cyan);
}

.nav-home-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}
.nav-home:hover .nav-home-arrow { transform: translateX(-3px); }

.nav-title {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.nav-spacer { width: 90px; } /* mirrors home button width to center the title */

/* Push content below nav on resources page */
.header-resources { padding-top: calc(var(--nav-h) + 40px); }

/* ─── HEADER ─── */
header {
    position: relative; z-index: 2;
    padding: 56px 24px 48px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}

header::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 180px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.45), transparent);
}

/* Avatar spinning ring */
.avatar-ring {
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
}

.avatar-ring::before {
    content: '';
    position: absolute; inset: -3px; border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--pink), var(--yellow), var(--green), var(--purple), var(--cyan));
    animation: spinRing 5s linear infinite;
    z-index: -1;
}

.avatar-ring::after {
    content: '';
    position: absolute; inset: -1px; border-radius: 50%;
    background: var(--bg); z-index: -1;
}

@keyframes spinRing { to { transform: rotate(360deg); } }

#profile-pic {
    display: block;
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    position: relative; z-index: 1;
}

header h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.85rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(130deg, var(--cyan) 0%, var(--pink) 55%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200%;
    animation: gradShift 6s ease infinite alternate;
    margin-bottom: 6px;
}

@keyframes gradShift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

header h2 {
    font-size: 1.0rem; font-weight: 500;
    color: var(--muted); letter-spacing: 0.04em; margin-bottom: 18px;
}

.header-tags {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

.tag {
    padding: 5px 13px; border-radius: 100px;
    font-size: 12px; font-weight: 700; border: 1px solid transparent;
}
.tag-green  { background: rgba(61,255,150,0.1);  border-color: rgba(61,255,150,0.25);  color: var(--green);  }
.tag-pink   { background: rgba(255,77,184,0.1);  border-color: rgba(255,77,184,0.25);  color: var(--pink);   }
.tag-yellow { background: rgba(255,224,64,0.1);  border-color: rgba(255,224,64,0.25);  color: var(--yellow); }
.tag-blue   { background: rgba(77,166,255,0.1);  border-color: rgba(77,166,255,0.25);  color: var(--blue);   }

/* ─── LAYOUT ─── */
.container {
    position: relative; z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 20px 20px;
}
.res-container { max-width: 860px; }

/* ─── CARDS ─── */
.bio-card, .links-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    margin-bottom: 18px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,0.36);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.bio-card:hover, .links-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 62px rgba(0,0,0,0.46);
}

.card-reveal {
    animation: cardUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes cardUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.accent-purple { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.accent-cyan   { background: linear-gradient(90deg, var(--cyan),   var(--green)); }
.accent-pink   { background: linear-gradient(90deg, var(--pink),   var(--orange)); }
.accent-yellow { background: linear-gradient(90deg, var(--yellow),  var(--orange)); }

.bio-card h3, .links-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
}

.bio-card p {
    font-size: 0.98rem;
    color: rgba(238,238,248,0.8);
    margin-bottom: 14px; line-height: 1.72;
}
.bio-card p:last-of-type { margin-bottom: 0; }

.origin-story {
    padding: 15px 18px 15px 20px;
    background: var(--surface2);
    border-left: 3px solid var(--purple);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.93rem;
    font-style: italic;
    color: rgba(238,238,248,0.65);
    line-height: 1.76;
    margin-bottom: 0;
}

.divider {
    height: 1px; background: var(--border); margin: 22px 0; border-radius: 1px;
}

.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-pill {
    padding: 5px 13px; border-radius: 100px;
    font-size: 13px; font-weight: 700; border: 1px solid transparent;
    transition: transform 0.18s; cursor: default;
}
.skill-pill:hover { transform: translateY(-2px) scale(1.05); }

.skill-green  { background: rgba(61,255,150,0.1);  border-color: rgba(61,255,150,0.3);  color: var(--green);  }
.skill-pink   { background: rgba(255,77,184,0.1);  border-color: rgba(255,77,184,0.3);  color: var(--pink);   }
.skill-yellow { background: rgba(255,224,64,0.1);  border-color: rgba(255,224,64,0.3);  color: var(--yellow); }
.skill-blue   { background: rgba(77,166,255,0.1);  border-color: rgba(77,166,255,0.3);  color: var(--blue);   }
.skill-orange { background: rgba(255,123,61,0.1);  border-color: rgba(255,123,61,0.3);  color: var(--orange); }
.skill-purple { background: rgba(176,107,255,0.1); border-color: rgba(176,107,255,0.3); color: var(--purple); }

/* ─── LINKS CARD ─── */
.links-card { display: flex; flex-direction: column; gap: 11px; }

/* ─── BUTTONS ─── */
.btn {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    text-decoration: none; font-family: 'Nunito', sans-serif;
    font-weight: 700; border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
}
.btn:hover { transform: translateY(-2px) scale(1.005); }

/* ── All btn-icon containers: identical rounded squares ── */
.btn-icon {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
    font-size: 1.25em;
}

/* Discord — fills the 42px box edge to edge, white circle shows cleanly */
.discord-logo-img {
    display: block;
    width: 42px; height: 42px;
    object-fit: cover;
}

/* YouTube — transparent bg PNG, give it breathing room inside the box */
.yt-logo {
    display: block;
    width: 28px; height: 28px;
    object-fit: contain;
}

/* Generic fallback */
.social-logo {
    display: block;
    width: 26px; height: 26px;
    object-fit: contain;
}

/* Emoji icons — slightly larger so they match image logo visual weight */
.btn-icon.emoji-icon { font-size: 1.45em; }

/* SVG icon — just centres the inline SVG, box handles bg */
.btn-icon.svg-icon { background: rgba(255,255,255,0.07); }

.btn-text {
    display: flex; flex-direction: column; gap: 1px;
    text-align: left; flex: 1;
}
.btn-text strong { font-size: 14px; font-weight: 800; color: var(--text); }
.btn-text small  { font-size: 12px; font-weight: 500; opacity: 0.6; }

.btn-arrow {
    margin-left: auto; font-size: 13px; font-weight: 800;
    opacity: 0.45; flex-shrink: 0; transition: all 0.18s;
}
.btn:hover .btn-arrow { opacity: 1; transform: translateX(3px); }

/* Button colour variants */
.resources-btn { background: rgba(255,224,64,0.08); border-color: rgba(255,224,64,0.22); }
.resources-btn:hover { background: rgba(255,224,64,0.14); border-color: rgba(255,224,64,0.38); box-shadow: 0 6px 24px rgba(255,224,64,0.1); }
.resources-btn .btn-text small { color: var(--yellow); }

.email-btn { background: rgba(77,166,255,0.08); border-color: rgba(77,166,255,0.22); }
.email-btn:hover { background: rgba(77,166,255,0.14); border-color: rgba(77,166,255,0.38); box-shadow: 0 6px 24px rgba(77,166,255,0.1); }
.email-btn .btn-text small { color: var(--blue); }

.discord-btn { background: rgba(88,101,242,0.09); border-color: rgba(88,101,242,0.24); }
.discord-btn:hover { background: rgba(88,101,242,0.16); border-color: rgba(88,101,242,0.38); box-shadow: 0 6px 24px rgba(88,101,242,0.12); }
.discord-btn .btn-text small { color: #7c8ef7; }

.youtube-btn { background: rgba(255,0,0,0.07); border-color: rgba(255,0,0,0.18); }
.youtube-btn:hover { background: rgba(255,0,0,0.13); border-color: rgba(255,0,0,0.32); box-shadow: 0 6px 24px rgba(255,0,0,0.1); }
.youtube-btn .btn-text small { color: #ff5555; }

.research-btn { background: rgba(176,107,255,0.08); border-color: rgba(176,107,255,0.22); }
.research-btn:hover { background: rgba(176,107,255,0.14); border-color: rgba(176,107,255,0.38); box-shadow: 0 6px 24px rgba(176,107,255,0.1); }
.research-btn .btn-text small { color: var(--purple); }

/* ─── RESOURCE PAGE PDF BUTTONS ─── */
.resource-list { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }

.resource-osint  { background: rgba(255,77,184,0.08);  border-color: rgba(255,77,184,0.22); }
.resource-osint:hover  { background: rgba(255,77,184,0.14);  border-color: rgba(255,77,184,0.36);  box-shadow: 0 6px 22px rgba(255,77,184,0.1); }
.resource-osint .btn-text small  { color: var(--pink); }
.resource-osint .btn-arrow       { color: var(--pink); opacity: 0.7; }

.resource-cheat  { background: rgba(0,229,255,0.07);   border-color: rgba(0,229,255,0.2); }
.resource-cheat:hover  { background: rgba(0,229,255,0.13);   border-color: rgba(0,229,255,0.34);   box-shadow: 0 6px 22px rgba(0,229,255,0.08); }
.resource-cheat .btn-text small  { color: var(--cyan); }
.resource-cheat .btn-arrow       { color: var(--cyan); opacity: 0.7; }

.resource-invest { background: rgba(176,107,255,0.08); border-color: rgba(176,107,255,0.22); }
.resource-invest:hover { background: rgba(176,107,255,0.14); border-color: rgba(176,107,255,0.36); box-shadow: 0 6px 22px rgba(176,107,255,0.1); }
.resource-invest .btn-text small { color: var(--purple); }
.resource-invest .btn-arrow      { color: var(--purple); opacity: 0.7; }

.resource-dork   { background: rgba(255,224,64,0.07);  border-color: rgba(255,224,64,0.2); }
.resource-dork:hover   { background: rgba(255,224,64,0.13);  border-color: rgba(255,224,64,0.34);  box-shadow: 0 6px 22px rgba(255,224,64,0.08); }
.resource-dork .btn-text small   { color: var(--yellow); }
.resource-dork .btn-arrow        { color: var(--yellow); opacity: 0.7; }

/* ─── RESOURCES LAYOUT ─── */
.res-sub-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--muted);
    margin: 20px 0 10px;
}
.res-sub-label:first-of-type { margin-top: 18px; }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 10px;
}

.tool-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-decoration: none; color: var(--text);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.tool-card:hover { transform: translateY(-4px) scale(1.02); }

.tool-icon { font-size: 1.55em; }
.tool-name { font-family: 'Syne', sans-serif; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.tool-desc { font-size: 11px; color: var(--muted); line-height: 1.35; }

.tool-cyan:hover   { border-color: rgba(0,229,255,0.38);   box-shadow: 0 6px 20px rgba(0,229,255,0.09); }
.tool-pink:hover   { border-color: rgba(255,77,184,0.38);  box-shadow: 0 6px 20px rgba(255,77,184,0.09); }
.tool-yellow:hover { border-color: rgba(255,224,64,0.38);  box-shadow: 0 6px 20px rgba(255,224,64,0.07); }
.tool-green:hover  { border-color: rgba(61,255,150,0.38);  box-shadow: 0 6px 20px rgba(61,255,150,0.09); }
.tool-orange:hover { border-color: rgba(255,123,61,0.38);  box-shadow: 0 6px 20px rgba(255,123,61,0.09); }
.tool-purple:hover { border-color: rgba(176,107,255,0.38); box-shadow: 0 6px 20px rgba(176,107,255,0.09); }
.tool-blue:hover   { border-color: rgba(77,166,255,0.38);  box-shadow: 0 6px 20px rgba(77,166,255,0.09); }

.tool-cyan   .tool-name { color: var(--cyan);   }
.tool-pink   .tool-name { color: var(--pink);   }
.tool-yellow .tool-name { color: var(--yellow); }
.tool-green  .tool-name { color: var(--green);  }
.tool-orange .tool-name { color: var(--orange); }
.tool-purple .tool-name { color: var(--purple); }
.tool-blue   .tool-name { color: var(--blue);   }

/* ─── DORK TABLE ─── */
.dork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px; margin-top: 18px;
}

.dork-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    display: flex; flex-direction: column; gap: 4px;
    text-align: left; transition: all 0.18s;
}
.dork-item:hover {
    border-color: rgba(255,224,64,0.3);
    box-shadow: 0 5px 18px rgba(255,224,64,0.06);
    transform: translateY(-2px);
}
.dork-op   { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 800; color: var(--yellow); }
.dork-desc { font-size: 12px; color: var(--muted); }
.dork-ex   {
    font-size: 11px; font-family: 'Courier New', monospace;
    color: var(--cyan); background: rgba(0,229,255,0.06);
    padding: 2px 7px; border-radius: 4px; width: fit-content; margin-top: 2px;
}

/* ─── FOOTER ─── */
footer {
    position: relative; z-index: 2;
    padding: 26px 20px; margin-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem; color: var(--muted);
}
.footer-name {
    font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 4px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    header { padding: 40px 20px 34px; }
    .header-resources { padding-top: calc(var(--nav-h) + 20px); }
    #profile-pic { width: 110px; height: 110px; }
    header h1 { font-size: 1.75rem; }
    .bio-card, .links-card { padding: 22px 16px; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .dork-grid { grid-template-columns: 1fr; }
    .nav-title { display: none; }
    .nav-spacer { display: none; }
}