

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    scroll-behavior: smooth;
}

.code-container {
    border-radius: 8px;
    position: relative;
}

.up-transformation {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.up-transformation:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #282c34;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.code-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.code-title {
    margin-left: 10px;
    font-size: 14px;
    color: #abb2bf;
}

pre {
    margin: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.section-transition {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.section-transition::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 1;
}

.section-transition::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

.feature-card {
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-card:hover::before {
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px -5px rgba(79, 70, 229, 0.8); }
    to { box-shadow: 0 0 20px 5px rgba(79, 70, 229, 0.8); }
}

.typing-effect {
    overflow: hidden;
    border-right: .15em solid #000;
    white-space: nowrap;
    margin: 0;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: fit-content;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100%; border-color: transparent !important; border: none !important; }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #111; }
}

.progress-bar {
    height: 5px;
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    width: 0%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s ease;
}

.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.code-typing {
    overflow: hidden;
    animation: typing-code 2s steps(40, end);
}

@keyframes typing-code {
    from { height: 0 }
    to { height: 100% }
}

.rotate-bg {
    background: linear-gradient(45deg, #4f46e5, #3b82f6, #2563eb, #4f46e5);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: blob-move 25s infinite alternate;
    opacity: 0.7;
}

@keyframes blob-move {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30%, -20%) scale(1.2); }
    66% { transform: translate(-20%, 20%) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

.neon-border {
    box-shadow: 0 0 5px #4f46e5, 0 0 10px #4f46e5, 0 0 15px #4f46e5;
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from { box-shadow: 0 0 5px #4f46e5, 0 0 10px #4f46e5, 0 0 15px #4f46e5; }
    to { box-shadow: 0 0 10px #4f46e5, 0 0 20px #4f46e5, 0 0 30px #4f46e5; }
}

.output-container {
    background-color: #282c34;
    color: #abb2bf;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: #4f46e5;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 640px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

.function-field {
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 2px 10px;
}