﻿body {
    background-color: #0D0E0E;
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Blokada przewijania poziomego */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.glitter-text {
    background: linear-gradient(90deg, #068fff, #00e1ff, #068fff);
    background-size: 200% auto;
    animation: glitter 3s infinite linear, glowPulse 5s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 20px rgba(6, 143, 255, 0.6), 0 0 35px rgba(0, 225, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 30px rgba(6, 143, 255, 0.8), 0 0 50px rgba(0, 225, 255, 0.5), 0 0 70px rgba(6, 143, 255, 0.2);
    }

    100% {
        text-shadow: 0 0 20px rgba(6, 143, 255, 0.6), 0 0 35px rgba(0, 225, 255, 0.3);
    }
}

#home a.bg-accent {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    background-color: #068fff;
    border: 2px solid #068fff;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(6, 143, 255, 0.3);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

    #home a.bg-accent:hover {
        background-color: transparent;
        color: #068fff;
        box-shadow: 0 4px 12px rgba(6, 143, 255, 0.4);
    }

a.bg-accent i {
    transition: transform 0.3s ease;
}

a.bg-accent:hover i {
    transform: translateX(4px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

.gradient-text {
    background: linear-gradient(90deg, #068fff, #00e1ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tilt-container {
    perspective: 1000px;
    display: inline-block;
}

.tilt-text {
    display: inline-block;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

/* Ulepszone menu mobilne */
.mobile-menu {
    transition: all 0.3s ease-out;
    transform: translateY(-100%);
    opacity: 0;
    display: block;
    height: 0;
    overflow: hidden;
}

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        height: auto;
    }

/* Włączanie wszystkich animacji na mobile */
@media (max-width: 768px) {
    .tilt-text {
        transform: none !important;
    }

    #home a.bg-accent,
    a.bg-accent {
        padding: 1rem 2rem !important;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    /* Zmniejszenie marginesów i paddingów w sekcji process */
    #process {
        padding: 2rem 1rem !important;
        margin: 1rem 0 !important;
    }

    .process-step {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* Włączanie particleCanvas na mobile */
    canvas#particleCanvas {
        display: block !important;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 40;
    }
}

/* Dodatkowe style dla sekcji process na mobile */
@media (max-width: 640px) {
    #process .grid {
        gap: 1rem !important;
    }

    .process-step {
        padding: 1rem !important;
    }

        .process-step h3 {
            font-size: 1.1rem !important;
        }

        .process-step p {
            font-size: 0.9rem !important;
        }

    #process .text-center {
        margin-bottom: 2rem !important;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    #home a.bg-accent {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        padding: 0.8rem !important;
    }

    #process {
        padding: 1.5rem 0.5rem !important;
    }
}

/* FAQ Styles */
.faq-question {
    transition: all 0.3s ease;
}

.faq-answer {
    transition: max-height 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(6, 143, 255, 0.1) !important;
}

/* Równe odstępy w odpowiedziach */
.faq-answer div {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem !important;
    }

        .faq-question h3 {
            font-size: 1rem !important;
            padding-right: 1rem;
        }

    .faq-answer div {
        padding: 1rem !important;
        padding-top: 0.5rem !important;
    }
}

/* Additional animations for better mobile experience */
@media (max-width: 768px) {
    .service-card,
    .portfolio-item,
    .process-step {
        transition: all 0.3s ease !important;
    }

        .service-card:hover,
        .portfolio-item:hover {
            transform: translateY(-5px) !important;
        }
}
