:root {
    --tb-1: #973DF2;
    --tb-2: #BC85F2;
    --tb-3: #430F8C;
    --tb-4: #5A13F2;
    --tb-5: #5011D9;
}

body {
    background-color: #0a0a0c;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, var(--tb-2), var(--tb-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-custom {
    background: linear-gradient(135deg, var(--tb-4), var(--tb-3));
}

.card-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(151, 61, 242, 0.2);
    backdrop-filter: blur(5px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--tb-3);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(-10%, -10%);
    }

    to {
        transform: translate(20%, 20%);
    }
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--tb-1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.project-media-vertical {
    max-height: 85vh;
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #111;
}

.filter-btn.active {
    background: var(--tb-1);
    color: white;
    border-color: var(--tb-1);
}

/* ---- SCROLL INDICATOR ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tb-4), var(--tb-2));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

.stat-card {
    opacity: 0;
    animation: statReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes statReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- TYPEWRITER ---- */
.typewriter-word {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--tb-2);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 1. KINOWE, ZASZARZONE TLO (Całkowita blokada klikania na stronie) */
#cc-main .cc__overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* 2. TŁO MODALU (Wymuszenie ciemnego koloru okna, by pasowało do OG Visuals) */
#cc-main .cc__modal {
    background: #0a0a0c !important;
    /* ciemne tło z Twojej strony */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 3. PRZYCISK "AKCEPTUJĘ WSZYSTKIE" - TOTALNE WYMUSZENIE FIOLETU */
#cc-main button.cc__btn--primary,
#cc-main .cc__btn--primary,
#cc-main [data-role="all"] {
    background: linear-gradient(135deg, #7e22ce, #a855f7) !important;
    background-color: #a855f7 !important;
    /* fallback */
    color: #ffffff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4) !important;
}

/* Stan hover (po najechaniu myszką) */
#cc-main button.cc__btn--primary:hover,
#cc-main .cc__btn--primary:hover,
#cc-main [data-role="all"]:hover {
    background: linear-gradient(135deg, #6b1da1, #9333ea) !important;
    background-color: #7e22ce !important;
    opacity: 0.95 !important;
}

/* ==========================================================================
   PRZYWRÓCENIE ORYGINALNYCH ANIMACJI WYJAZDU I HOVERA W PORTFOLIO
   ========================================================================== */

/* Wymuszenie płynności (transition) dla absolutnie każdego elementu w portfolio */
#portfolio-grid,
#portfolio-grid div,
#portfolio-grid .card-glass,
.hover-glow {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important,
        box-shadow 0.4s ease !important,
        opacity 0.5s ease-in-out !important;
}

/* Wymuszenie efektu unoszenia i blasku po najechaniu */
#portfolio-grid div.card-glass:hover,
#portfolio-grid>div:hover,
.hover-glow:hover {
    transform: translateY(-8px) !important;
    /* Tutaj dostosuj jak wysoko mają wyjeżdżać */
    box-shadow: 0 15px 30px rgba(151, 61, 242, 0.3) !important;
    /* Fioletowy blask */
}

/* Jeśli kafelki miały animację wejścia (np. pojawianie się po kolei), 
   upewniamy się, że opóźnienia i klucze animacji z JS nie są blokowane */
#portfolio-grid>div {
    animation-fill-mode: both !important;
}
