:root {
    /* Dark mode (default) */
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-glass: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 5, 0.8);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --input-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --surface-glass: rgba(0, 0, 0, 0.05);
    --primary: #4f46e5;
    --secondary: #db2777;
    --accent: #7c3aed;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-glass: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(248, 249, 250, 0.9);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-dot.hovered {
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-color: var(--secondary);
}

/* Theme toggle - cursor styling */
.theme-toggle:hover .cursor-dot.hovered {
    background-color: var(--secondary);
}

.theme-toggle:hover .cursor-outline.hovered {
    border-color: var(--secondary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle {
    color: var(--text-main);
}

[data-theme="light"] .step-number {
    background: var(--surface-color);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--primary);
}

.lang-switch span {
    color: var(--border-glass);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-btn):hover {
    color: var(--secondary);
}

.nav-links a:not(.cta-btn):hover::after {
    width: 100%;
}

.nav-links a.cta-btn {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.cta-btn:hover {
    color: #ffffff;
}

.cta-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width 0.3s ease;
    border-radius: inherit;
}

.cta-btn:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.cta-btn:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

header {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    z-index: 2;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    position: relative;
    display: inline-block;
}

h1 span.glow {
    -webkit-text-stroke: 0;
    color: var(--secondary);
    text-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

section {
    padding: 3rem 5%;
    scroll-margin-top: 80px;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-tag {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.stats-section {
    background: var(--surface-color);
    padding: 4rem 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stat-item h2 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--secondary);
    width: 40px;
    height: 40px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary);
}

.contact-item a:hover::after {
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
}

footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    margin-bottom: 1.5rem;
}

.socials a {
    color: var(--text-main);
    font-size: 1.2rem;
    margin: 0 0.8rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--secondary);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    will-change: transform, opacity;
}

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

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface-color);
    border-left: 4px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(200%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    color: #10b981;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: var(--text-main);
        cursor: pointer;
        z-index: 2000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: auto;
        min-height: auto;
        background: var(--surface-color);
        border-bottom-left-radius: 20px;
        box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--border-glass);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
        padding: 5rem 0 2rem 0;
        transition: right 0.3s ease;
        z-index: 1500;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.8rem 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .stats-section {
        flex-direction: column;
        gap: 3rem;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto;
    }
}

@media (max-width: 400px) {
    .nav-left {
        gap: 35px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

.service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.service-card .cta-btn {
    margin-top: auto !important;
    width: 100%;
    display: block;
    text-align: center;
}

.service-card h3 span {
    color: var(--primary);
}

.service-card .cta-btn {
    font-size: 0.8rem;
    width: 100%;
    display: block;
    text-align: center;
    margin-top: auto !important;
}




.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.service-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.service-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.service-price {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}


.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 4rem 0;
    padding: 0 2rem;
    list-style: none;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 15%;
    right: 15%;
    height: 14px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='40' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7H40M30 2l5 5-5 5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: repeat-x;
    mask-image: url("data:image/svg+xml,%3Csvg width='40' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7H40M30 2l5 5-5 5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: repeat-x;
    
    transform: translateY(-50%) translateZ(0); 
    will-change: mask-position;
    backface-visibility: hidden;
    
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
    z-index: 0;
    
    animation: flowArrows 3s linear infinite;
    animation-play-state: paused; 
}

.process-timeline:has(.process-step.active)::before {
    clip-path: inset(0 0 0 0);
    animation-play-state: running;
}


@keyframes flowArrows {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }

    to {
        -webkit-mask-position: 40px 0;
        mask-position: 40px 0;
    }
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 15px;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--surface-color);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.process-step:hover .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.step-content {
    background: var(--surface-color);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.process-step:hover .step-content {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.step-time {
    font-size: 0.8rem;
    color: var(--secondary);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 20px;
}

.process-cta {
    text-align: center;
    margin-top: 2rem;
}

.process-cta .cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}




.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--primary);
}


.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-glass);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge-icon {
    font-size: 1.2rem;
}


@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 2rem;
    }

    .process-timeline::before {
        display: none !important;
    }

.process-step:not(:last-child)::before {
        content: '';
        display: block;
        position: absolute;
        width: 14px;
        height: calc(100% + 2rem);
        left: 23px;
        top: 30px;
        background: linear-gradient(180deg, var(--primary), var(--secondary));
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='14' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0V40M2 30l5 5 5-5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        -webkit-mask-repeat: repeat-y;
        mask-image: url("data:image/svg+xml,%3Csvg width='14' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0V40M2 30l5 5 5-5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        mask-repeat: repeat-y;
        
        transform: translateZ(0);
        will-change: mask-position;
        backface-visibility: hidden;
        
        clip-path: inset(0 0 100% 0);
        transition: clip-path 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
        
        animation: flowArrowsVertical 3s linear infinite;
        animation-play-state: paused;
        z-index: 0;
    }

    .process-step.active:not(:last-child)::before {
        clip-path: inset(0 0 0 0);
        animation-play-state: running;
    }

    .process-step {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
        padding: 0;
    }



    .step-number {
        margin: 0;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .step-content {
        flex: 1;
        padding: 1rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .badge-item {
        width: 100%;
        justify-content: center;
    }
}

@keyframes flowArrowsVertical {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }

    to {
        -webkit-mask-position: 0 40px;
        mask-position: 0 40px;
    }
}

/* AI Chat Widget - ukryj custom cursor z CSS :has() */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: 'Outfit', sans-serif;
}

body:has(.chat-widget-container:hover) .cursor-dot,
body:has(.chat-widget-container:hover) .cursor-outline {
    opacity: 0 !important;
}

.chat-widget-container,
.chat-widget-container * {
    cursor: auto !important;
}

.chat-widget-button {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-widget-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

.chat-widget-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--surface-color);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-widget-window.active {
    display: flex;
}

.chat-header {
    padding: 1.2rem;
    background: var(--surface-glass);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.chat-close:hover {
    color: var(--secondary);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: .9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.message.ai {
    align-self: flex-start;
    background: var(--surface-glass);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-send-btn:hover {
    background: var(--secondary);
}

.typing-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: none;
}