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

:root {
    --neon-green: #00FF66;
    --black: #000000;
    --dark-gray: #0A0A0A;
    --glow-intensity: 0 0 10px var(--neon-green),
                      0 0 20px var(--neon-green),
                      0 0 30px var(--neon-green);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor with Neon Glow */
#cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
    box-shadow: var(--glow-intensity);
}

#cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0.6;
    transition: transform 0.15s ease;
}

/* Matrix Rain Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* Scrolling Code Background */
.code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.05;
    overflow: hidden;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--neon-green);
    white-space: nowrap;
    animation: scrollCode 20s linear infinite;
}

@keyframes scrollCode {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Main Content */
.content {
    position: relative;
    z-index: 2;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: var(--glow-intensity);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    font-size: 32px;
    color: var(--neon-green);
    text-shadow: var(--glow-intensity);
}

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

nav {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--neon-green);
}

nav a:hover::after {
    width: 100%;
}

/* Login Button */
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    color: var(--neon-green);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-button:hover {
    background: rgba(0, 255, 102, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    transform: scale(1.1);
}

.login-button i {
    transition: all 0.3s ease;
}

.login-button:hover i {
    transform: scale(1.1);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-button {
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-button:hover {
    background: rgba(0, 255, 102, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}

.lang-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    padding: 10px;
    display: none;
    min-width: 150px;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.3);
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    padding: 10px 15px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background: rgba(0, 255, 102, 0.2);
    color: var(--neon-green);
}

.lang-option.active {
    background: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--neon-green);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-green);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    border-left: 2px solid var(--neon-green);
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0, 255, 102, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    padding-left: 10px;
}

.mobile-lang-switcher {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 102, 0.3);
}

.mobile-lang-switcher h4 {
    color: var(--neon-green);
    margin-bottom: 20px;
    font-size: 16px;
}

.mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: var(--glow-intensity);
    margin-bottom: 20px;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: var(--glow-intensity); }
    50% { text-shadow: 0 0 20px var(--neon-green),
                       0 0 40px var(--neon-green),
                       0 0 60px var(--neon-green); }
}

.hero p {
    font-size: 24px;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 800px;
}

.dna-helix {
    width: 200px;
    height: 200px;
    margin: 40px auto;
    position: relative;
    animation: rotate 10s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes rotate {
    from { transform: rotate(0deg) translateZ(0); }
    to { transform: rotate(360deg) translateZ(0); }
}

.helix-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--neon-green);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: var(--glow-intensity);
    will-change: transform;
    transform: translateZ(0);
}

.helix-strand:nth-child(2) {
    transform: rotate(60deg) translateZ(0);
}

.helix-strand:nth-child(3) {
    transform: rotate(120deg) translateZ(0);
}

.helix-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    font-size: 60px;
    color: var(--neon-green);
    text-shadow: var(--glow-intensity);
    animation: helixPulse 2s ease-in-out infinite;
    z-index: 10;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@keyframes helixPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) translateZ(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) translateZ(0);
        opacity: 0.8;
    }
}

.cta-button {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    background: var(--neon-green);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--neon-green);
    animation: buttonPulse 2s ease-in-out infinite;
    font-family: 'Orbitron', sans-serif;
    will-change: box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 20px var(--neon-green); }
    50% { box-shadow: 0 0 40px var(--neon-green),
                       0 0 60px var(--neon-green); }
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--neon-green),
                0 0 60px var(--neon-green);
}

/* Section Styles */
section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 20px var(--neon-green);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
    color: #cccccc;
}

.about-text h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 32px;
    color: var(--neon-green);
    margin-bottom: 20px;
}

.about-visual {
    flex: 1;
    height: 400px;
    background: rgba(0, 255, 102, 0.05);
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0, 255, 102, 0.2);
}

/* Services Section */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    width: 100%;
}

.service-card {
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 15px;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

.service-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.5);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    margin: 0;
    padding: 30px 30px 15px 30px;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    background: rgba(10, 10, 10, 0.8);
}

.service-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    color: var(--neon-green);
    margin: 0;
    padding: 0 30px 30px 30px;
    background: rgba(10, 10, 10, 0.8);
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    padding: 30px 30px 30px 30px;
    background: #000000;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Technologies Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.tech-item {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.5);
    transform: scale(1.05);
}

.tech-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.tech-item span {
    display: block;
    color: var(--neon-green);
    font-weight: 600;
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-study {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 40px rgba(0, 255, 102, 0.6);
    transform: translateY(-10px);
}

.case-study-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.2), rgba(0, 255, 102, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--neon-green);
}

.case-study-content {
    padding: 30px;
}

.case-study h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    color: var(--neon-green);
    margin-bottom: 15px;
}

.case-study p {
    color: #cccccc;
    line-height: 1.6;
}

/* AI Core Section */
.ai-core {
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.1), rgba(0, 0, 0, 0.9));
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 102, 0.3);
}

.ai-core h2 {
    margin-bottom: 30px;
}

.ai-core p {
    font-size: 20px;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.ai-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ai-feature {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-green);
    border-radius: 10px;
    padding: 20px 30px;
    color: var(--neon-green);
    font-weight: 600;
}

/* Contact Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.6);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 20px;
    padding: 50px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 255, 102, 0.2);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    color: var(--neon-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid rgba(0, 255, 102, 0.3);
    padding: 40px 50px;
    text-align: center;
}

footer p {
    color: var(--neon-green);
    font-size: 16px;
    text-shadow: 0 0 10px var(--neon-green);
}

/* Responsive */
@media (min-width: 1025px) {
    .language-switcher {
        display: block;
    }
    
    .mobile-lang-switcher {
        display: none;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    nav {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Ukryj niestandardowy kursor na mobilnych */
    #cursor,
    #cursor-trail {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    .hero h1 {
        font-size: 48px;
        animation: glowPulseMobile 2s ease-in-out infinite;
    }

    @keyframes glowPulseMobile {
        0%, 100% { 
            text-shadow: 0 0 10px var(--neon-green),
                         0 0 20px var(--neon-green);
        }
        50% { 
            text-shadow: 0 0 15px var(--neon-green),
                         0 0 30px var(--neon-green);
        }
    }

    h2 {
        font-size: 36px;
        text-shadow: 0 0 15px var(--neon-green);
    }

    .about-content {
        flex-direction: column;
    }

    section {
        padding: 60px 20px;
    }

    .contact-form {
        padding: 30px;
    }

    header {
        padding: 20px;
    }

    .logo {
        font-size: 24px;
        text-shadow: 0 0 10px var(--neon-green);
    }

    .logo-icon {
        font-size: 28px;
        text-shadow: 0 0 10px var(--neon-green);
    }

    .dna-helix {
        display: none;
    }

    .helix-strand {
        box-shadow: 0 0 10px var(--neon-green);
    }

    .helix-center {
        text-shadow: 0 0 10px var(--neon-green);
    }

    @keyframes buttonPulseMobile {
        0%, 100% { box-shadow: 0 0 15px var(--neon-green); }
        50% { box-shadow: 0 0 25px var(--neon-green); }
    }

    .cta-button {
        animation: buttonPulseMobile 2s ease-in-out infinite;
    }

    /* Wyłącz ciężkie efekty na mobilnych */
    .service-card:hover {
        transform: none;
    }

    .tech-item:hover {
        transform: none;
    }

    .case-study:hover {
        transform: none;
    }
}

@media (max-width: 370px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tech-item {
        padding: 20px 10px;
    }

    .tech-item div {
        font-size: 36px !important;
    }

    .tech-item span {
        font-size: 12px;
    }
}
