:root {
    --bg: #020307;
    --bg-soft: #05070f;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --text: #f8f9ff;
    --muted: #9fa8c6;
    --line: rgba(255, 255, 255, 0.08);

    --accent: #d65cff;
    --accent-2: #6ea8ff;
    --accent-3: #ff4d8d;

    --shadow: 0 25px 80px rgba(0, 0, 0, 0.6);

    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #020307;
    color: var(--text);
    font-family: "Inter", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-label,
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
}

h1, h2, h3 {
    margin: 0;
}

h1, h2 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.03em;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-ember {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 38px;
    border-radius: 4px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition:
            transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            color 0.3s ease,
            background 0.3s ease;
}

.btn-ember::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
            100deg,
            transparent,
            rgba(255, 210, 140, 0.28),
            transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-ember:hover::before {
    left: 130%;
}

.btn-ember-primary {
    color: rgba(255, 190, 110, 0.95);
    border-color: rgba(255, 150, 50, 0.7);
    background: rgba(255, 140, 40, 0.04);
    box-shadow:
            0 0 18px rgba(255, 130, 30, 0.25),
            inset 0 0 18px rgba(255, 130, 30, 0.08);
}

.btn-ember-primary:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: rgba(255, 175, 70, 0.95);
    background: rgba(255, 140, 40, 0.1);
    box-shadow:
            0 0 28px rgba(255, 140, 35, 0.5),
            0 14px 40px rgba(255, 100, 20, 0.25),
            inset 0 0 22px rgba(255, 140, 30, 0.14);
}

.btn-ember-ghost {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ember-ghost:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: rgba(255, 165, 70, 0.55);
    background: rgba(255, 150, 50, 0.06);
    box-shadow:
            0 0 22px rgba(255, 130, 30, 0.18),
            0 14px 36px rgba(0, 0, 0, 0.35);
}

.back-to-top {
    position: fixed;
    bottom: 36px;
    left: 36px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 8, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    translate: 0 12px;
    pointer-events: none;
    transition:
            opacity 0.35s ease,
            translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
            border-color 0.25s ease,
            background 0.25s ease,
            color 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    translate: 0 0;
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: rgba(214, 92, 255, 0.5);
    background: rgba(214, 92, 255, 0.15);
    color: #ffffff;
}

@media (max-width: 700px) {
    .back-to-top {
        bottom: 24px;
        left: 20px;
        width: 38px;
        height: 38px;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 140, 30, 0.9), rgba(255, 210, 80, 0.9), rgba(255, 160, 50, 0.9));
    z-index: 200;
    transition: width 0.08s linear;
    box-shadow: 0 0 8px rgba(255, 160, 30, 0.6), 0 0 20px rgba(255, 100, 10, 0.3);
}

.project-stat-hours {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bonfire-zone {
    position: relative;
    overflow: hidden;
    background: #0c1626;
}

.bonfire-zone::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: url('../../img/background/bg4.png') center top / 100% 100% no-repeat;
    filter: blur(5px);
    z-index: 0;
}

.bonfire-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to bottom, #000000 0%, transparent 14%, transparent 86%, #000000 100%),
            rgba(4, 7, 18, 0.34);
    pointer-events: none;
    z-index: 0;
}

.bonfire-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bonfire-zone > .section {
    position: relative;
    z-index: 1;
}

.seam-divider {
    height: 12px;
    background: #000000;
    position: relative;
    z-index: 5;
}


.skill-item:hover {
    border-color: rgba(255, 150, 50, 0.45) !important;
    box-shadow: 0 8px 30px rgba(255, 120, 20, 0.18) !important;
}