@font-face {
            font-family: 'GillSans';
            src: url('gillsansc.ttf') format('truetype');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        :root {
            --primary: #6e48aa;
            --secondary: #9d50bb;
            --dark: #0a0a0a;
            --light: #f9f9f9;
            --accent: #ff4d4d;
            --neon: #00f0ff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'GillSans', sans-serif;
            line-height: 1.6;
            color: var(--light);
            background-color: var(--dark);
            overflow-x: hidden;
            user-select: none;
        }

        body::-webkit-scrollbar {
            width: 8px;
        }

        body::-webkit-scrollbar-track {
            background: var(--dark);
        }

        body::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.8s, visibility 0.8s;
        }
        
        .loader-logo {
            width: 120px;
            height: 120px;
            position: relative;
            margin-bottom: 30px;
        }
        
        
        .logo-img {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            height: 20px;
            width: 100px;
        }
        
        .loader-progress {
            width: 200px;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary), var(--neon));
            transition: width 0.3s;
        }
        
        .loader-text {
            margin-top: 20px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .progress-bar-main {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--neon));
            z-index: 1000;
            transition: width 0.1s linear;
        }

        /* Шапка */
        header {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(110, 72, 170, 0.2) 0%, rgba(157, 80, 187, 0.2) 100%);
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://xlabs.by/wp-content/themes/xlabs/assets/img/bg.jpg') center/cover no-repeat;
            z-index: -1;
            opacity: 0.3;
        }

        .header-content {
            text-align: center;
            animation: fadeInUp 1s ease-out;
        }

    .language-switcher {
        display: flex;
        gap: 10px;
        margin: 20px auto 30px;
        justify-content: center;
    }

    .lang-btn {
        background: rgba(255, 255, 255, 0.1);
        color: var(--light);
        border: 1px solid var(--neon);
        padding: 8px 15px;
        border-radius: 20px;
        cursor: pointer;
        font-family: 'GillSans', sans-serif;
        font-size: 1rem;
        transition: all 0.3s;
    }

    button.lang-btn-footer {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    
    box-shadow: none;
    }

    .lang-btn:hover {
        background: rgba(0, 240, 255, 0.2);
    }

    .lang-btn.active {
        background: var(--neon);
        color: var(--dark);
        font-weight: bold;
        box-shadow: 0 0 10px var(--neon);
}

    .eu-dropdown {
    position: relative;
    display: inline-block;
}

    .dropdown-toggle::after {
        content: " ▼";
        font-size: 0.7em;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 110%;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        border: 1px solid var(--neon);
        border-radius: 10px;
        padding: 10px;
        z-index: 1000;
        flex-direction: column;
        gap: 8px;
        backdrop-filter: blur(10px);
    }

    .eu-dropdown:hover .dropdown-content {
        display: flex;
    }



        header h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            background: linear-gradient(90deg, var(--primary), var(--neon));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-transform: uppercase;
            letter-spacing: 3px;
        }

        header p {
            font-size: 1.5rem;
            opacity: 0.9;
            margin-bottom: 30px;
            color: var(--light);
        }

        .scroll-down {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--light);
            font-size: 2rem;
            animation: bounce 2s infinite;
            cursor: pointer;
        }

        /* Навигация */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(10, 10, 10, 0.9);
            backdrop-filter: blur(10px);
            z-index: 100;
            transition: all 0.3s ease;
        }

        nav.scrolled {
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        nav ul {
            display: flex;
            justify-content: center;
            list-style: none;
            padding: 20px 0;
            margin: 0;
        }

        nav li {
            margin: 0 25px;
            position: relative;
        }

        nav a {
            text-decoration: none;
            color: var(--light);
            font-weight: bold;
            font-size: 1.1rem;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 5px 10px;
        }

        nav a:hover {
            color: var(--neon);
        }

        nav li::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--neon);
            transition: width 0.3s;
        }

        nav li:hover::after {
            width: 100%;
        }

        /* Секции */
        section {
            padding: 100px 0;
            position: relative;
        }

        section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://xlabs.by/wp-content/themes/xlabs/assets/img/bg-pattern.png') repeat;
            opacity: 0.05;
            z-index: -1;
        }

        section h2 {
            text-align: center;
            margin-bottom: 60px;
            font-size: 2.5rem;
            color: var(--neon);
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        section h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--neon), transparent);
        }

        /* Обо мне */
        #about {
            background: linear-gradient(135deg, rgba(110, 72, 170, 0.1) 0%, rgba(157, 80, 187, 0.1) 100%);
        }

        .about-content {
            display: flex;
            align-items: center;
            gap: 60px;
        }

        .about-text {
            flex: 1;
            font-size: 1.2rem;
            color: var(--light);
            opacity: 0.9;
            line-height: 1.8;
        }

        .about-text p {
            margin-bottom: 20px;
            position: relative;
            padding-left: 20px;
        }

        .about-text p::before {
            content: '>';
            position: absolute;
            left: 0;
            color: var(--neon);
        }

        .about-image {
            flex: 1;
            text-align: center;
            position: relative;
        }

        .about-image img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: transform 0.5s;
            position: relative;
            z-index: 1;
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 100%;
            height: 100%;
            border: 3px solid var(--neon);
            border-radius: 10px;
            z-index: 0;
            transition: all 0.5s;
        }

        .about-image:hover::before {
            top: -10px;
            right: -10px;
        }

        .about-image:hover img {
            transform: scale(1.03);
        }

        /* Навыки */
        #skills {
            background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(110, 72, 170, 0.1) 100%);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .skill-card {
            background: rgba(255, 255, 255, 0.05);
            padding: 40px 30px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
            text-align: center;
            transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
            cursor: default;
            border: 1px solid rgba(110, 72, 170, 0.2);
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(110, 72, 170, 0.2), transparent);
            transition: 0.5s;
        }

        .skill-card:hover::before {
            left: 100%;
        }

        .skill-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            border-color: var(--neon);
        }

        .skill-card i {
            font-size: 3em;
            color: var(--neon);
            margin-bottom: 20px;
            transition: transform 0.3s;
        }

        .skill-card:hover i {
            transform: scale(1.2) rotate(10deg);
        }

        .skill-card h3 {
            margin: 0 0 15px 0;
            color: var(--light);
            font-size: 1.5em;
            transition: color 0.3s;
        }

        .skill-card:hover h3 {
            color: var(--neon);
        }

        .skill-card p {
            margin: 0;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.6;
        }

        /* Портфолио */
        #portfolio {
            background: linear-gradient(135deg, rgba(110, 72, 170, 0.1) 0%, rgba(157, 80, 187, 0.1) 100%);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 30px;
        }

        .portfolio-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            height: 300px;
            perspective: 1000px;
        }

        .portfolio-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s;
        }

        .portfolio-item:hover img {
            transform: scale(1.1) rotate(1deg);
        }

        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.5s;
            backdrop-filter: blur(5px);
        }

        .portfolio-item:hover .portfolio-overlay {
            opacity: 1;
        }

        .portfolio-overlay h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--neon);
            transform: translateY(20px);
            transition: transform 0.5s;
        }

        .portfolio-overlay p {
            margin-bottom: 20px;
            transform: translateY(20px);
            transition: transform 0.5s 0.1s;
            opacity: 0.9;
        }

        .portfolio-overlay a {
            color: var(--light);
            text-decoration: none;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
            padding: 10px 20px;
            border: 2px solid var(--neon);
            border-radius: 5px;
            transition: all 0.3s;
            transform: translateY(20px);
            transition: transform 0.5s 0.2s, background 0.3s;
            align-self: flex-start;
        }

        .portfolio-item:hover .portfolio-overlay h3,
        .portfolio-item:hover .portfolio-overlay p,
        .portfolio-item:hover .portfolio-overlay a {
            transform: translateY(0);
        }

        .portfolio-overlay a:hover {
            background: var(--neon);
            color: var(--dark);
        }

        /* Контакты */
        #contact {
            background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(110, 72, 170, 0.1) 100%);
        }

        .contact-form {
            max-width: 600px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.05);
            padding: 40px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(110, 72, 170, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--neon);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 5px;
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s;
            background: rgba(255, 255, 255, 0.1);
            color: var(--light);
            border-left: 3px solid transparent;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-left: 3px solid var(--neon);
            background: rgba(255, 255, 255, 0.15);
        }

        textarea {
            height: 150px;
            resize: vertical;
        }

        #submit-btn {
            background: transparent;
            color: var(--neon);
            border: 2px solid var(--neon);
            padding: 15px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            width: 100%;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        #submit-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
            transition: 0.5s;
        }

        #submit-btn:hover {
            background: var(--neon);
            color: var(--dark);
            box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon);
        }

        #submit-btn:hover::before {
            left: 100%;
        }

        .form-status {
            margin-top: 20px;
            padding: 15px;
            border-radius: 5px;
            text-align: center;
            display: none;
            animation: fadeIn 0.5s;
        }

        .form-status.success {
            background: rgba(40, 167, 69, 0.2);
            color: #28a745;
            display: block;
            border: 1px solid #28a745;
        }

        .form-status.error {
            background: rgba(220, 53, 69, 0.2);
            color: #dc3545;
            display: block;
            border: 1px solid #dc3545;
        }

        /* Подвал */
        footer {
            background: rgba(10, 10, 10, 0.9);
            padding: 50px 0 30px;
            text-align: center;
            position: relative;
            backdrop-filter: blur(10px);
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--neon), transparent);
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .logo img {
            width: 150px;
            height: auto;
            margin-bottom: 30px;
            filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
        }

        .social-links {
            margin: 20px 0;
        }

        .social-links a {
            color: var(--light);
            margin: 0 20px;
            font-size: 1.8rem;
            transition: all 0.3s;
            display: inline-block;
        }

        .social-links a:hover {
            color: var(--neon);
            transform: translateY(-5px) scale(1.2);
            text-shadow: 0 0 10px var(--neon);
        }

        footer p {
            margin-top: 20px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        /* Анимации */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0) translateX(-50%);
            }
            40% {
                transform: translateY(-20px) translateX(-50%);
            }
            60% {
                transform: translateY(-10px) translateX(-50%);
            }
        }

        @keyframes float {
            0% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
            100% {
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
            }
        }

        /* Эффекты частиц */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            background: var(--neon);
            border-radius: 50%;
            opacity: 0.5;
            animation: float 15s infinite linear;
        }

        /* Адаптивность */
        @media (max-width: 992px) {
            .about-content {
                flex-direction: column;
            }

            .portfolio-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 3rem;
            }

            header p {
                font-size: 1.2rem;
            }

            nav ul {
                flex-wrap: wrap;
                padding: 15px 0;
            }

            nav li {
                margin: 5px 15px;
            }

            section {
                padding: 70px 0;
            }

            section h2 {
                font-size: 2rem;
            }

            .skills-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        @media (max-width: 576px) {
            header h1 {
                font-size: 2.5rem;
            }

            .contact-form {
                padding: 30px 20px;
            }

            .portfolio-grid {
                grid-template-columns: 1fr;
            }
        }