@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

    :root {
        --primary-color: #00faff;
        --secondary-color: #d0d8e0;
        --bg-color: #02040a;
        
        --container-bg: rgba(10, 25, 47, 0.75);
        --item-bg-color: rgba(22, 41, 66, 0.7);
        --item-hover-bg-color: rgba(30, 55, 80, 0.9);
        
        --border-color: rgba(0, 250, 255, 0.2);
        --border-hover-color: var(--primary-color);
        --glow-color: rgba(0, 250, 255, 0.5);
        --shadow-color: rgba(0, 0, 0, 0.5);
        --border-radius: 4px;
    }

    @keyframes pan-bg {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    @keyframes fadeIn-slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes glitch {
      0%, 20%, 22%, 25%, 53%, 55%, 100% {
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
        opacity: 1;
      }
      21%, 24%, 54% {
        color: var(--secondary-color);
        text-shadow: none;
        opacity: 0.8;
      }
    }

    @keyframes draw-corners {
        0% { width: 0; height: 0; }
        50% { width: 30px; height: 0; }
        100% { width: 30px; height: 30px; }
    }

    body {
        font-family: 'Roboto', sans-serif;
        margin: 0;
        padding: 40px 20px;
        background-color: var(--bg-color); 
        background-image: url('main.avif');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed; 
        color: var(--secondary-color);
        line-height: 1.6;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        overflow-x: hidden; 
        animation: pan-bg 60s ease-in-out infinite alternate;
    }

    .container {
        position: relative;
        background: radial-gradient(circle, rgba(10, 25, 47, 0.85) 0%, var(--container-bg) 70%);
        backdrop-filter: blur(10px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(120%); 
        border: 1px solid var(--border-color);
        padding: 30px 40px;
        border-radius: var(--border-radius);
        box-shadow: 0 0 40px var(--shadow-color), inset 0 0 15px rgba(0, 250, 255, 0.1);
        width: 90%;
        max-width: 800px;
        text-align: center;
        animation: fadeIn-slideUp 0.8s ease-out 0.2s forwards;
        opacity: 0;
    }

    .container::before, .container::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        border: 2px solid var(--primary-color);
        border-radius: var(--border-radius);
        animation: draw-corners 0.6s ease-out 0.5s forwards;
    }
    .container::before {
        top: -10px;
        left: -10px;
        border-right: none;
        border-bottom: none;
    }
    .container::after {
        bottom: -10px;
        right: -10px;
        border-left: none;
        border-top: none;
    }

    header {
        margin-bottom: 30px;
        position: relative;
    }

    .header-controls {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        animation: fadeIn-slideUp 0.8s ease-out 0.4s forwards;
        opacity: 0;
    }

    #lang-switcher, .button-link {
        background: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        padding: 6px 12px;
        border-radius: var(--border-radius);
        font-family: 'Orbitron', sans-serif;
        font-size: 0.9em;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        text-transform: uppercase;
        box-shadow: inset 0 0 5px rgba(0, 250, 255, 0.2);
    }

    #lang-switcher:hover, .button-link:hover {
        background-color: var(--primary-color);
        color: var(--bg-color);
        box-shadow: 0 0 15px var(--glow-color);
        transform: translateY(-2px);
    }

    #lang-switcher {
        background-color: var(--item-bg-color); 
    }

    header h1 {
        font-family: 'Orbitron', sans-serif;
        color: var(--primary-color);
        margin-bottom: 10px;
        font-weight: 700;
        font-size: 2.8em;
        text-transform: uppercase;
        animation: glitch 1.5s 1s both, fadeIn-slideUp 0.8s ease-out 0.6s forwards;
        opacity: 0;
    }

    header p {
        color: var(--secondary-color);
        font-size: 1.1em;
        opacity: 0; 
        animation: fadeIn-slideUp 0.8s ease-out 0.8s forwards;
        max-width: 500px;
        margin: 0 auto;
    }

    .search-container {
        margin-bottom: 30px;
        opacity: 0; 
        animation: fadeIn-slideUp 0.8s ease-out 1s forwards;
        position: relative;
    }

    #searchInput {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1em;
        border: none;
        border-bottom: 1px solid var(--border-color);
        box-sizing: border-box;
        background-color: transparent;
        color: var(--secondary-color);
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        font-family: 'Roboto', sans-serif;
        position: relative;
    }
    
    #searchInput::placeholder {
        color: var(--secondary-color);
        opacity: 0.6;
    }

    #searchInput:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 5px 20px -5px var(--glow-color);
    }

    .results-container {
        margin-top: 20px;
        text-align: left;
    }
    
    .result-item-wrapper {
        opacity: 0;
        transform: translateY(15px);
        animation: fadeIn-slideUp 0.4s ease-out forwards;
    }

    .result-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        margin-bottom: 12px;
        background-color: var(--item-bg-color);
        border: 1px solid transparent;
        border-left: 3px solid var(--border-color);
        border-radius: var(--border-radius);
        text-decoration: none;
        color: var(--secondary-color);
        transition: all 0.3s ease;
        position: relative; 
        overflow: hidden; 
    }
    
    .result-item:hover {
        background-color: var(--item-hover-bg-color);
        transform: translateX(10px);
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
        border-color: var(--border-hover-color);
    }
    
    .result-item::after {
        content: '→';
        font-size: 1.5em;
        color: var(--primary-color);
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .result-item:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    .no-results {
        color: var(--secondary-color);
        padding: 20px;
        background-color: var(--item-bg-color);
        border-radius: var(--border-radius);
        font-style: italic;
        border-left: 3px solid var(--secondary-color);
        opacity: 0.8;
        animation: fadeIn-slideUp 0.5s;
    }

    footer {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        font-size: 0.9em;
        color: var(--secondary-color);
        opacity: 0;
        animation: fadeIn-slideUp 0.8s ease-out 1.2s forwards;
    }

    @media (max-width: 600px) {
        body {
            padding: 20px 10px;
        }
        .container {
            padding: 20px;
            width: 95%;
        }
        .header-controls {
            position: static;
            justify-content: center;
        }
        header h1 {
            font-size: 2em;
        }
        .container::before, .container::after {
            display: none;
        }
    }
