*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

button,
a,
input,
textarea,
select,
option,
label,
summary {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
}

button:focus,
button:focus-visible,
button:active,
a:focus,
a:focus-visible,
a:active,
input:focus,
input:focus-visible,
input:active,
textarea:focus,
textarea:focus-visible,
textarea:active,
select:focus,
select:focus-visible,
select:active {
    outline: none !important;
    box-shadow: none !important;
}

button:active,
a:active {
    background: inherit;
    color: inherit;
}
* {
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 rgba(255, 255, 255, 0.04);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.025);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #60a5fa,
        #3b82f6,
        #6366f1
    );
    border-radius: 999px;
    border: 2px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #93c5fd,
        #60a5fa,
        #818cf8
    );
}

::-webkit-scrollbar-corner {
    background: transparent;
}

#main {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#lewa {
    flex: 2 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#prawa {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-3d,
.hero2-3d,
.hero3-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero-3d,
.hero2-3d {
    opacity: 0.65;
}

.hero3-3d {
    opacity: 0.3;
}

.hero-3d::after,
.hero2-3d::after,
.hero3-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 84, 99, 0.35) 0%,
        rgba(233, 255, 137, 0.12) 35%,
        rgba(65, 0, 45, 0) 70%
    );
    opacity: 0.4;
    pointer-events: none;
}

.wit {
    position: relative;
    width: fit-content;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(20, 28, 48, 0.92),
            rgba(10, 15, 28, 0.96)
        );
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    font-family: "Inter", sans-serif;
    animation: witAppear 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wit::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -220px;
    right: -160px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.25),
        transparent 70%
    );
    z-index: -1;
    animation: glowMove 8s ease-in-out infinite alternate;
}

.wit::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.18),
        transparent 70%
    );
    z-index: -1;
    animation: glowMoveReverse 10s ease-in-out infinite alternate;
}

.wit h1 {
    position: relative;
    margin-top: 0;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -2.5px;
    background: linear-gradient(
        100deg,
        #ffffff 0%,
        #93c5fd 45%,
        #60a5fa 75%,
        #a78bfa 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleAppear 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wit h1::after {
    content: "";
    display: block;
    width: 75%;
    max-width: 100%;
    height: 4px;
    margin-top: 18px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #3b82f6,
        #8b5cf6
    );
    box-shadow:
        0 0 15px rgba(59, 130, 246, 0.6),
        0 0 35px rgba(139, 92, 246, 0.25);
    animation: lineAppear 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wit p {
    position: relative;
    margin-top: 18px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 16px;
    line-height: 1.9;
    font-weight: 400;
    letter-spacing: 0.1px;
    opacity: 0;
    transform: translateY(25px);
    animation: paragraphAppear 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wit p:nth-of-type(1) {
    animation-delay: 0.35s;
}

.wit p:nth-of-type(2) {
    margin-bottom: 0;
    animation-delay: 0.55s;
}

.wit {
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease,
        scale 0.3s ease-in-out,
        box-shadow 0.5s ease;
}

.wit:hover{
        scale: 1.05;

}

.wit p:hover {
    color: rgba(241, 245, 249, 0.95);
}

@media (max-width: 1100px) {
    #main {
        padding: 24px;
        gap: 24px;
    }

    #lewa,
    #prawa {
        gap: 24px;
    }

    .wit {
        padding: 32px;
    }

    .wit h1 {
        font-size: clamp(26px, 3vw, 34px);
    }
}

@media (max-width: 850px) {
    #main {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 20px;
    }

    #lewa,
    #prawa {
        width: 100%;
        flex: none;
        gap: 20px;
    }

    .wit {
        width: 100%;
        max-width: none;
        padding: 30px;
        margin: 0;
        border-radius: 24px;
    }

    .wit h1 {
        font-size: 30px;
    }

    .wit p {
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 600px) {
    #main {
        width: 100%;
        padding: 12px;
        gap: 14px;
    }

    #lewa,
    #prawa {
        width: 100%;
        gap: 14px;
    }

    .wit {
        width: 100%;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .wit h1 {
        font-size: 25px;
        line-height: 1.1;
        letter-spacing: -1.5px;
    }

    .wit h1::after {
        width: 65%;
        height: 3px;
        margin-top: 14px;
    }

    .wit p {
        font-size: 14px;
        line-height: 1.75;
        margin-top: 16px;
    }

    .wit::before,
    .wit::after {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 400px) {
    #main {
        padding: 8px;
        gap: 10px;
    }

    #lewa,
    #prawa {
        gap: 10px;
    }

    .wit {
        padding: 22px 17px;
        border-radius: 18px;
    }

    .wit h1 {
        font-size: 22px;
        letter-spacing: -1px;
    }

    .wit p {
        font-size: 13px;
        line-height: 1.7;
    }

    .wit h1::after {
        margin-top: 12px;
    }
}

@keyframes witAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.97);
        filter: blur(8px);
    }

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

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(6px);
    }

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

@keyframes lineAppear {
    from {
        opacity: 0;
        width: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        width: 75%;
        transform: translateX(0);
    }
}

@keyframes paragraphAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

@keyframes glowMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-100px, 80px) scale(1.35);
    }
}

@keyframes glowMoveReverse {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, -70px) scale(1.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wit,
    .wit h1,
    .wit h1::after,
    .wit p,
    .wit::before,
    .wit::after {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .wit:hover {
        transform: none;
    }
}