/* =========================
   style.css (FULL)
   ========================= */

/* --- IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

/* --- CSS VARIABLES --- */
:root {
    --bg-color: #0a0505;
    --card-bg: #140a0a;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;

    /* Default Crimson Theme */
    --primary: #ff3355;
    --primary-dim: #5c0e1e;
    --border: #331010;

    /* Fonts */
    --font-mono: 'JetBrains Mono', monospace;
    --font-round: 'Nunito', sans-serif;

    /* Background grid */
    --grid-dot: rgba(255, 255, 255, 0.10);
    --grid-size: 40px;
}

/* --- THEME DEFINITIONS --- */

/* Mocha */
[data-theme="mocha"] {
    --bg-color: #1e1e2e;
    --card-bg: #181825;
    --text-main: #cdd6f4;
    --primary: #fab387;
    --primary-dim: #453020;
    --border: #313244;
    --grid-dot: rgba(255,255,255,0.10);
}

/* Ocean */
[data-theme="ocean"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --primary: #38bdf8;
    --primary-dim: #0c4a6e;
    --border: #334155;
    --grid-dot: rgba(255,255,255,0.10);
}

/* Forest */
[data-theme="forest"] {
    --bg-color: #051a05;
    --card-bg: #0a250a;
    --text-main: #e0ffe0;
    --primary: #4ade80;
    --primary-dim: #14532d;
    --border: #1a421a;
    --grid-dot: rgba(255,255,255,0.10);
}

/* Sunset */
[data-theme="sunset"] {
    --bg-color: #2a0a00;
    --card-bg: #401000;
    --text-main: #fff0e0;
    --primary: #fb923c;
    --primary-dim: #7c2d12;
    --border: #5c1c05;
    --grid-dot: rgba(255,255,255,0.10);
}

/* Cyberpunk */
[data-theme="cyberpunk"] {
    --bg-color: #070114;
    --card-bg: #110027;
    --text-main: #f8f7ff;
    --text-muted: #c1b7ff;
    --primary: #ff4dff;
    --primary-dim: #2b0030;
    --border: #2a0a3a;
    --grid-dot: rgba(255, 77, 255, 0.12);
}

/* Terminal */
[data-theme="terminal"] {
    --bg-color: #050505;
    --card-bg: #0b0b0b;
    --text-main: #00ff7b;
    --text-muted: rgba(0, 255, 123, 0.75);
    --primary: #00ff7b;
    --primary-dim: #00331a;
    --border: #004d26;
    --grid-dot: rgba(0, 255, 123, 0.10);
}

/* --- GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-round);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* Smooth page load */
    animation: pageFadeIn 180ms ease;

    /* Smooth theme transitions */
    transition: background-color 0.25s ease, color 0.25s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modern browsers: view transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease;
}

/* Background Grid */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: -1;
    pointer-events: none;
}

/* Terminal vibe */
[data-theme="terminal"] body,
body {
    /* keep default font-round unless terminal theme is active */
}
[data-theme="terminal"] body,
body[data-theme="terminal"] {
    font-family: var(--font-mono);
    letter-spacing: 0.2px;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 8%;
    font-family: var(--font-mono);
}

.path-display {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 8px;
}

.cursor-blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 700;
    transition: color 0.25s ease;
    font-size: 1.1rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 6px;
}

/* --- MAIN LAYOUT --- */
main {
    flex: 1;
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; font-weight: 700; }

.highlight { color: var(--primary); font-family: var(--font-mono); }

/* --- COMPONENTS --- */
.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    transition: transform 0.2s, filter 0.2s;
    font-size: 1.1rem;
    margin-top: -2.5rem;
}
.cta-button:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* --- PROJECT CARDS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0, 0.4);
}

.project-card.poof {
    transform: scale(0.1) rotate(10deg);
    opacity: 0;
    filter: blur(10px);
}

.window-bar {
    background: #181818;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
}

.dot { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; transition: transform 0.2s; }
.dot:hover { transform: scale(1.2); }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }

.card-title {
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.card-desc { color: var(--text-muted); font-size: 1rem; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 1.5rem; }

.tag {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

/* --- BOTTOM WIDGETS --- */
.bottom-widgets {
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--border);
    z-index: -1;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.widget {
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
}

.widget-header {
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Theme buttons */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    gap: 10px;
}
.theme-btn {
    width: 60px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}
.theme-btn:hover { transform: scale(1.1); }
.theme-btn.active { border-color: #fff; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    nav { padding: 1.5rem 5%; flex-direction: column; gap: 1rem; }
    .nav-links { margin-left: 0; }
    .widget-grid { grid-template-columns: 1fr; }
}

/* About Page Styles */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.profile-img { width: 100%; border-radius: 20px; border: 4px solid var(--card-bg); box-shadow: 10px 10px 0px var(--primary); transition: transform 0.3s; }
.sport-section { margin-top: 5rem; padding-top: 2rem; border-top: 2px dashed var(--border); }
.sport-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.sport-pic { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; border: 2px solid var(--border); }

/* Terminal theme tweaks */
[data-theme="terminal"] .window-bar,
body[data-theme="terminal"] .window-bar {
    background: #000;
}

/* -----------------------------
   Smoother transitions on key blocks
------------------------------ */
nav, .path-display, .nav-links a,
.project-card, .widget, .cta-button,
.window-bar, .tag, .profile-img,
.sport-pic {
    transition: background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

/* -----------------------------
   Particle Canvas Overlay
------------------------------ */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}

/* -----------------------------
   Terminal Toast
------------------------------ */
#terminal-toast {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    max-width: min(560px, calc(100vw - 32px));
}
#terminal-toast.show {
    opacity: 1;
    transform: translateY(0);
}
#terminal-toast .tt-line {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    background: rgba(0,0,0,0.65);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    color: var(--text-main);
    backdrop-filter: blur(8px);
}
#terminal-toast .tt-prompt {
    color: var(--primary);
    font-weight: 700;
}

/* -----------------------------
   Terminal Modal
------------------------------ */
body.modal-open { overflow: hidden; }

#terminal-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}
#terminal-modal.open { display: block; }

#terminal-modal .tm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

#terminal-modal .tm-window {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1000px, calc(100vw - 40px));
    height: min(75vh, 720px);
    transform: translate(-50%, -50%);
    background: #0b0b0b;
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

#terminal-modal .tm-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #000;
    border-bottom: 2px solid var(--border);
    font-family: var(--font-mono);
}
#terminal-modal .tm-dots { display: flex; gap: 8px; align-items: center; }
#terminal-modal .tm-dot { width: 14px; height: 14px; border-radius: 999px; }
#terminal-modal .tm-red { background: #ff5f56; cursor: pointer; }
#terminal-modal .tm-yellow { background: #ffbd2e; }
#terminal-modal .tm-green { background: #27c93f; }
#terminal-modal .tm-title { color: var(--text-muted); font-weight: 700; }
#terminal-modal .tm-spacer { flex: 1; }

#terminal-modal .tm-body {
    height: calc(100% - 48px);
    padding: 16px;
    overflow: auto;
    font-family: var(--font-mono);
    color: #eaeaea;
}
#terminal-modal .tm-command {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
#terminal-modal .tm-prompt { color: var(--primary); font-weight: 800; }
#terminal-modal .tm-cmdtext { color: #eaeaea; }
#terminal-modal .tm-output { line-height: 1.6; }
#terminal-modal .tm-muted { color: rgba(234,234,234,0.7); }

#terminal-modal .tm-meta {
    margin-bottom: 14px;
    color: rgba(234,234,234,0.75);
    font-size: 0.9rem;
}
#terminal-modal .tm-meta a { color: var(--primary); text-decoration: none; }
#terminal-modal .tm-meta a:hover { text-decoration: underline; }

#terminal-modal .tm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    margin-right: 8px;
    color: rgba(234,234,234,0.85);
}
#terminal-modal .tm-sep { margin: 0 8px; opacity: 0.6; }

/* Smaller README text */
#terminal-modal .tm-md {
    font-size: 0.9rem;
    line-height: 1.55;
}
#terminal-modal .tm-md h1,
#terminal-modal .tm-md h2,
#terminal-modal .tm-md h3 {
    margin: 12px 0 8px;
    color: var(--primary);
}
#terminal-modal .tm-md p { margin: 10px 0; color: rgba(234,234,234,0.92); }
#terminal-modal .tm-md ul { margin: 10px 0 10px 18px; }
#terminal-modal .tm-md li { margin: 6px 0; }
#terminal-modal .tm-md code {
    font-size: 0.85rem;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
}
#terminal-modal .tm-md pre {
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 12px;
    border-radius: 12px;
    overflow: auto;
    margin: 12px 0;
}


[data-theme="terminal"] .typing-wrap {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow: hidden;
    border-right: 2px solid var(--primary);
    animation: typingReveal 0.9s ease forwards, caret 0.9s step-end infinite;
}

@keyframes typingReveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@keyframes caret {
    50% { border-color: transparent }
}
/* Index hero: reveal line-by-line */
.hero-lines {
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-lines .reveal-line {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 0 0 0.35rem 0;

    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);

    animation: lineIn 420ms ease forwards;
    animation-delay: var(--d, 0ms);
}

@keyframes lineIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Optional: make it feel extra terminal-y only in terminal theme */
[data-theme="terminal"] .hero-lines .reveal-line {
    color: var(--text-muted);
}
/* =========================
   Real typing per line (mobile-friendly)
   ========================= */

.hero-typed{
    max-width: 700px;
    min-height: calc(8 * 1.55em + 2 * 0.45rem);
    /*margin-bottom: 2rem;*/
}

.hero-typed .type-line{
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 0 0 0.45rem 0;
    line-height: 1.55;
    min-height: 1.55em;

    word-break: normal;
    overflow-wrap: anywhere;
}

/* Optional: little fade-in so it feels smooth */
.hero-typed .type-line.is-typing,
.hero-typed .type-line.is-done{
    animation: heroLineFade 240ms ease both;
}

@keyframes heroLineFade{
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* caret */
.hero-typed .caret{
    display: inline-block;
    margin-left: 2px;
    width: 10px;
    color: var(--primary);
    font-family: var(--font-mono);
    animation: caretBlink 0.9s step-end infinite;
}

@keyframes caretBlink{
    50% { opacity: 0; }
}

/* mobile tune */
@media (max-width: 600px){
    .hero-typed .type-line{
        font-size: 1.15rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }
}
/* =========================
   About page (desktop-first, mobile-friendly)
   ========================= */

.about-page{
    margin-top: 2rem;
    padding-bottom: 4rem;
}

/* Desktop-first top layout */
.about-top{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.about-profile{
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 12px 34px rgba(0,0,0,0.30);
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.8rem;
    align-items: start;
}

.about-avatar{
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 10px 10px 0px var(--primary);
}

.about-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-kicker{
    font-family: var(--font-mono);
    color: var(--primary);
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.about-title{
    margin: 0;
    font-size: 3rem;
    line-height: 1.05;
}

.about-subtitle{
    margin: 0.45rem 0 1.1rem;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.about-blurb{
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 70ch;
}

.about-actions{
    margin-top: 1.25rem;
}

.about-side{
    display: grid;
    gap: 1.2rem;
}

/* Cards used on the right + fencing section */
.about-card{
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.24);
}

.about-card-title{
    font-family: var(--font-mono);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.9rem;
}

/* Stats */
.about-stats{
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: grid;
    gap: 0.65rem;
}

.about-stat span{
    opacity: 0.85;
}

.about-status strong{
    color: var(--primary);
}

/* Fencing section */
.about-section{
    margin-top: 1.5rem;
}

.about-section-header{
    margin-bottom: 1.2rem;
}

.about-h2{
    margin: 0 0 0.55rem;
    font-size: 2.2rem;
}

.about-muted{
    margin: 0;
    color: var(--text-muted);
    max-width: 85ch;
}

/* Desktop-first fencing grid */
.about-fencing-grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

/* List */
.about-list{
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
}

.about-list li{
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

/* Gallery: desktop 3 columns */
.about-gallery{
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.about-gallery img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid var(--border);
}

/* -----------------------------
   Mobile / tablet collapse
------------------------------ */
@media (max-width: 980px){
    .about-top{
        grid-template-columns: 1fr;
    }

    .about-profile{
        grid-template-columns: 130px 1fr;
    }

    .about-avatar{
        width: 130px;
        height: 130px;
        box-shadow: 8px 8px 0px var(--primary);
    }

    .about-title{
        font-size: 2.4rem;
    }

    .about-fencing-grid{
        grid-template-columns: 1fr;
    }

    .about-gallery{
        grid-template-columns: 1fr;
    }

    .about-gallery img{
        height: 300px;
    }
}

@media (max-width: 520px){
    .about-profile{
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-avatar{
        width: 120px;
        height: 120px;
    }

    .about-title{
        font-size: 2.1rem;
    }

    .about-subtitle{
        font-size: 1.05rem;
    }

    .about-blurb{
        font-size: 1rem;
    }
}
/* ======/* ========================================
   3D BUTTON (THEME AWARE – FINAL)
   ======================================== */

.btn-3d{
    position: relative;
    display: inline-block;
    height: 60px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    user-select: none;
}

/* TOP BUTTON SURFACE */
.btn-3d-top{
    width: 100%;
    height: 100%;

    background:
            radial-gradient(circle at 0% 0%, rgba(255,255,255,0.25), transparent 55%),
            linear-gradient(
                    135deg,
                    var(--primary),
                    color-mix(in oklab, var(--primary) 60%, black 40%)
            );

    font-family: var(--font-round);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;

    color: #000;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.6rem;

    border-radius: 999px;
    outline: 2px solid var(--border);

    position: relative;
    overflow: hidden;

    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            filter 0.18s ease;

    box-shadow:
            0 6px 14px rgba(0,0,0,0.45),
            0 0 0 1px rgba(148,163,184,0.12);

    z-index: 1;
}

/* BOTTOM SHADOW LAYER (3D DEPTH) */
.btn-3d-bottom{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    left: 0;

    background: whitesmoke;
    border-radius: 999px;
    outline: 2px solid var(--primary-dim);

    z-index: 0;
}

/* small legs */
.btn-3d-bottom::before,
.btn-3d-bottom::after{
    content: "";
    position: absolute;
    width: 2px;
    height: 9px;
    background: var(--border);
    bottom: 0;
}

.btn-3d-bottom::before{ left: 18%; }
.btn-3d-bottom::after{ left: 82%; }

/* EXTRA BASE LAYER */
.btn-3d::before{
    content: "";
    position: absolute;
    width: calc(100% + 2px);
    height: 100%;
    top: 14px;
    left: -1px;

    background: color-mix(in oklab, var(--bg-color) 35%, black 65%);
    border-radius: 999px;
    outline: 2px solid var(--border);

    z-index: -2;
}

/* SLIDING SHINE */
.btn-3d-top::before{
    content: "";
    position: absolute;
    width: 15px;
    height: 100%;
    background: rgba(255,255,255,0.18);
    transform: skewX(30deg);
    left: -22px;
    transition: left 0.25s ease;
}

/* HOVER */
.btn-3d:hover .btn-3d-top{
    filter: brightness(1.05);
}
.btn-3d:hover .btn-3d-top::before{
    left: calc(100% + 22px);
}

/* PRESS */
.btn-3d:active .btn-3d-top{
    transform: translateY(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.btn-3d:active .btn-3d-top::before{
    left: calc(100% + 22px);
}

/* TERMINAL THEME SPECIAL LOOK */
[data-theme="terminal"] .btn-3d-top{
    color: #001b10;
    text-shadow: 0 0 10px rgba(0,255,123,0.3);
}

/* MOBILE */
@media (max-width: 520px){
    .btn-3d{
        height: 54px;
    }
    .btn-3d-top{
        font-size: 1rem;
        padding: 0 1.7rem;
    }
}
