* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;

    background:
            radial-gradient(circle at top left, #4f46e5, transparent 40%),
            radial-gradient(circle at bottom right, #06b6d4, transparent 40%),
            #0f172a;

    color: white;
}

/* ===== NAVBAR ===== */

.navbar {
    max-width: 1400px;
    margin: 0 auto;

    padding: 25px 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 32px;
    font-weight: 700;
}

.navbar nav {
    display: flex;
    gap: 20px;
}

.navbar nav a {
    width: 120px;
    text-align: center;

    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #60a5fa;
}

/* ===== HERO ===== */

.hero {
    max-width: 1000px;
    margin: 100px auto 50px;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1.1;

    min-height: 2.5em;

    margin-bottom: 25px;
}
.hero p {
    max-width: 700px;

    min-height: 3em;

    margin: 0 auto 40px;

    font-size: 20px;
    line-height: 1.6;

    color: #cbd5e1;
}

.hero button {
    width: 250px;
    height: 56px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(
            135deg,
            #4f46e5,
            #06b6d4
    );

    color: white;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    transform: translateY(-3px);
}

/* ===== SEARCH ===== */

.search-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;

    padding: 16px 20px;

    border: none;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.1);
    color: white;

    outline: none;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    width: 120px;
    height: 56px;

    border: none;
    border-radius: 14px;

    background: #4f46e5;
    color: white;

    cursor: pointer;
    transition: 0.3s;
}


.search-box button:hover {
    background: #4338ca;
}

/* ===== USERS ===== */

.users {
    max-width: 1200px;

    margin: 80px auto;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;

    padding: 0 20px;
}

.user-card {
    width: 280px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    transition: 0.3s;
}

.user-card:hover {
    transform: translateY(-8px);
}

.user-card img {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 50%;

    margin-bottom: 15px;
}

.user-card h3 {
    margin-bottom: 10px;
}

.user-card p {
    margin-bottom: 8px;
    color: #cbd5e1;
}


.users,
.search-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
}

.user-card span {
    color: #60a5fa;
}
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 12px;

    background: rgba(255,255,255,.08);

    backdrop-filter: blur(10px);

    font-size: 22px;

    cursor: pointer;

    transition: .3s;
}

.lang-btn:hover {
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(
            135deg,
            #4f46e5,
            #06b6d4
    );

    box-shadow:
            0 0 15px rgba(79,70,229,.4);
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .user-card {
        width: 100%;
        max-width: 320px;
    }
}