:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glow-color: rgba(0, 255, 255, 0.6);
    --card-radius: 28px;
    --transition-default: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('Images/Без названия.jfif');
   
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0f0c1f; 
    color: #f0f0f0;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); 
    pointer-events: none;
    z-index: -1;
}

.glass-nav {
    background: rgba(15, 20, 35, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.navbar-brand, .nav-link {
    color: #eef !important;
    font-weight: 600;
    transition: var(--transition-default);
}

.nav-link:hover {
    color: #0ff !important;
    text-shadow: 0 0 8px #0ff;
    transform: translateY(-2px);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 35px -15px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.05);
    transition: var(--transition-default);
    padding: 2rem;
    margin-bottom: 2rem;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 40px -18px black, 0 0 0 1px rgba(0,255,255,0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.btn-glow {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 60px;
    transition: var(--transition-default);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-glow:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #0ff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.5);
    transform: scale(1.02);
    color: #fff;
}

.modern-input {
    background: rgba(20, 20, 40, 0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-default);
    width: 100%;
    backdrop-filter: blur(4px);
}

.modern-input:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 12px #0ff;
    background: rgba(0,0,0,0.5);
}

.result-box {
    background: rgba(0,0,0,0.45);
    border-radius: 24px;
    padding: 1.2rem;
    border-left: 5px solid #0ff;
    font-family: 'Fira Code', monospace;
    word-break: break-word;
    animation: fadeGlow 1s;
}

@keyframes fadeGlow {
    from { opacity: 0; border-left-color: #fff; }
    to { opacity: 1; border-left-color: #0ff; }
}
.avatar-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(145deg, #0ff, #2b2b5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 4px rgba(0,255,255,0.3), 0 15px 35px rgba(0,0,0,0.3);
    transition: transform 0.4s ease;
    overflow: hidden; 
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-circle:hover {
    transform: scale(1.03) rotate(2deg);
    box-shadow: 0 0 0 6px rgba(0,255,255,0.5), 0 20px 40px black;
}

.lab-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-lab {
    min-width: 150px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #0ff;
    font-size: 1.2rem;
    padding: 14px 0;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-lab i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.2rem;
    }
    .lab-buttons-grid {
        flex-direction: column;
        align-items: center;
    }
    .btn-lab {
        width: 80%;
    }
}

.glass-footer {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
}